1、BSI Standards PublicationVideo surveillance systems for use in security applicationsPart 2-2: Video transmission protocols IP interoperability implementation based on HTTP and REST servicesBS EN 62676-2-2:2014National forewordThis British Standard is the UK implementation of EN 62676-2-2:2014. It is
2、 identical to IEC 62676-2-2:2013.The UK participation in its preparation was entrusted by TechnicalCommittee GW/1, Electronic security systems, to Subcommittee GW/1/10,Closed circuit television (CCTV).A list of organizations represented on this committee can be obtained onrequest to its secretary.Th
3、is publication does not purport to include all the necessary provisions ofa contract. Users are responsible for its correct application. The British Standards Institution 2014.Published by BSI Standards Limited 2014ISBN 978 0 580 79913 6ICS 13.320Compliance with a British Standard cannot confer immu
4、nity fromlegal obligations.This British Standard was published under the authority of theStandards Policy and Strategy Committee on 31 May 2014.Amendments/corrigenda issued since publicationDate Text affectedBRITISH STANDARDBS EN 62676-2-2:2014EUROPEAN STANDARD EN 62676-2-2 NORME EUROPENNE EUROPISCH
5、E NORM January 2014 CENELEC European Committee for Electrotechnical Standardization Comit Europen de Normalisation Electrotechnique Europisches Komitee fr Elektrotechnische Normung CEN-CENELEC Management Centre: Avenue Marnix 17, B - 1000 Brussels 2014 CENELEC - All rights of exploitation in any for
6、m and by any means reserved worldwide for CENELEC members. Ref. No. EN 62676-2-2:2014 E ICS 13.320 English version Video surveillance systems for use in security applications - Part 2-2: Video transmission protocols - IP interoperability implementation based on HTTP and REST services (IEC 62676-2-2:
7、2013) Systmes de vidosurveillance destins tre utiliss dans les applications de scurit - Partie 2-2: Protocoles de transmission vido - Mise en oeuvre de linteroprabilit IP en fonction des services HTPP et REST (CEI 62676-2-2:2013) Videoberwachungsanlagen fr Sicherungsanwendungen - Teil 2-2: Videobert
8、ragungsprotokolle - IP-Interoperabilitt auf Basis von HTTP- und REST-Diensten (IEC 62676-2-2:2013) This European Standard was approved by CENELEC on 2013-12-12. CENELEC members are bound to comply with the CEN/CENELEC Internal Regulations which stipulate the conditions for giving this European Stand
9、ard the status of a national standard without any alteration. Up-to-date lists and bibliographical references concerning such national standards may be obtained on application to the CEN-CENELEC Management Centre or to any CENELEC member. This European Standard exists in three official versions (Eng
10、lish, French, German). A version in any other language made by translation under the responsibility of a CENELEC member into its own language and notified to the CEN-CENELEC Management Centre has the same status as the official versions. CENELEC members are the national electrotechnical committees o
11、f Austria, Belgium, Bulgaria, Croatia, Cyprus, the Czech Republic, Denmark, Estonia, Finland, Former Yugoslav Republic of Macedonia, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia
12、, Spain, Sweden, Switzerland, Turkey and the United Kingdom. BS EN 62676-2-2:2014EN 62676-2-2:2014 - 2 - Foreword The text of document 79/436/FDIS, future edition 1 of IEC 62676-2-2, prepared by IEC TC 79 “Alarm and electronic security systems“ was submitted to the IEC-CENELEC parallel vote and appr
13、oved by CENELEC as EN 62676-2-2:2014. The following dates are fixed: latest date by which the document has to be implemented at national level by publication of an identical national standard or by endorsement (dop) 2014-09-12 latest date by which the national standards conflicting with the document
14、 have to be withdrawn (dow) 2016-12-12 Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. CENELEC and/or CEN shall not be held responsible for identifying any or all such patent rights. Endorsement notice The text of the Internationa
15、l Standard IEC 62676-2-2:2013 was approved by CENELEC as a European Standard without any modification. BS EN 62676-2-2:2014- 3 - EN 62676-2-2:2014 Annex ZA (normative) Normative references to international publications with their corresponding European publications The following documents, in whole
16、or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. NOTE When an international publication ha
17、s been modified by common modifications, indicated by (mod), the relevant EN/HD applies. Publication Year Title EN/HD Year ISO 10918-1 - Information technology - Digital compression and coding of continuous-tone still images: Requirements and guidelines - - ISO/IEC 11172-3 1993 Information technolog
18、y - Coding of moving pictures and associated audio for digital storage media at up to about 1,5 Mbit/s - Part 3: Audio - - ISO/IEC 13818-2 - Information technology - Generic coding of moving pictures and associated audio information - Part 2: Video - - ISO/IEC 14496-2 2004 Information Technology Cod
19、ing of audio-visual objects - Part 2: Visual - - ISO/IEC 14496-3 - Information technology - Coding of audio-visual objects - Part 3: Audio - - ISO/IEC 14496-10 2012 Information technology - Coding of audio-visual objects - Part 10: Advanced Video Coding - - IETF RFC 1213 - Management Information Bas
20、e for Network Management of TCP/IP-based Internets: MIB-II - - IETF RFC 1945 - Hypertext Transfer Protocol HTTP/1.0, T. Berners-Lee, MIT/LCS, R. Fielding, UC Irvine, H. Frystyk - - IETF RFC 2046 - Multipurpose Internet Mail Extensions (MIME) - Part 2: Media Types - - IETF RFC 2250 - RTP Payload Form
21、at for MPEG1/MPEG2 Video - - IETF RFC 2326 - Real time Streaming protocol (RTSP) - - IETF RFC 2435 - RTP Payload Format for JPEG-compressed Video - - IETF RFC 2616 - Hypertext Transfer Protocol HTTP/1.1. - - IETF RFC 2617 - HTTP Authentication: Basic and Digest Access Authentication - - BS EN 62676-
22、2-2:2014EN 62676-2-2:2014 - 4 - Publication Year Title EN/HD Year IETF RFC 2818 - HTTP Over TLS - - IETF RFC 3016 - RTP Payload Format for MPEG-4 Audio/Visual Streams - - IETF RFC 3550 - A Transport Protocol for Real-Time Applications - - IETF RFC 3551 - RTP Profile for Audio and Video Conferences w
23、ith Minimal Control - - IETF RFC 3629 - UTF-8, a transformation format of ISO 10646 - - IETF RFC 3640 - RTP Payload Format for Transport of MPEG-4 Elementary Streams - - IETF RFC 3984 - RTP Payload Format for H.264 Video - - IETF RFC 4566 - SDP: Session Description Protocol - - ITU-T Recommendation
24、G.726 - 40, 32, 24, 16 kbit/s Adaptive Differential Pulse Code Modulation (ADPCM) - - ITU-T Recommendation H.264 - Advanced video coding for generic audiovisual services - - ITU-T Recommendation T.81 - Information technology - Digital compression and coding of continuous-tone still images - Requirem
25、ents and guidelines - - BS EN 62676-2-2:2014 2 62676-2-2 IEC:2013 CONTENTS INTRODUCTION . 6 1 Scope . 7 2 Normative references . 7 3 Abbreviations . 8 4 Overview 10 5 Design considerations 10 5.1 General . 10 5.2 REST overview 11 5.3 Conformance . 11 General . 11 5.3.1Minimum API set . 11 5.3.2XML r
26、equirements . 11 5.3.3Protocol requirements 12 5.3.45.4 HTTP methods and REST . 12 5.5 HTTP status codes and REST . 12 5.6 Unique identifiers 14 5.7 ID encoding . 14 6 Architecture and namespace 15 7 System flow 17 7.1 General . 17 7.2 Service discovery 18 7.3 Persistent connections 18 7.4 Authentic
27、ation . 19 7.5 Access restrictions 19 7.6 Setting configurations 20 7.7 Getting configurations . 20 7.8 Getting capabilities 21 7.9 Uploading data 22 7.10 Receiving data 22 7.11 Operations 22 7.12 Diagnostics . 23 7.13 Response status 23 General . 23 7.13.1Status code . 23 7.13.2Status string 24 7.1
28、3.3ID 24 7.13.47.14 Processing rules 24 8 XML modeling 24 8.1 File format . 24 8.2 Data structures 24 8.3 Lists 24 8.4 Capabilities . 24 9 Custom services and resources 26 10 Interface design 26 10.1 General . 26 BS EN 62676-2-2:201462676-2-2 IEC:2013 3 10.2 Protocol . 26 10.3 Hostname 27 10.4 Port
29、. 27 10.5 URI . 27 10.6 Query string 27 10.7 Resource description . 27 11 Standard resource descriptions 28 11.1 General . 28 11.2 index . 28 11.3 indexr 28 11.4 description 29 11.5 capabilities 29 11.6 Schemas . 29 General . 29 11.6.1ResourceDescription . 30 11.6.2ResourceList . 30 11.6.3QueryStrin
30、gParameterList . 30 11.6.4responseStatus . 30 11.6.5service.xsd 31 11.6.6Annex A (normative) IP Media Device API Specification Version 1.0 34 Bibliography 122 Figure 1 PSIA service architecture example . 15 Figure A.1 Motion detection grid with two detection regions . 108 Table 1 HTTP methods 12 Tab
31、le 2 HTTP status codes and REST . 13 Table 3 Resource names . 16 Table 4 Service URLs 16 Table 5 HTTP requests 23 Table 6 Capability attributes 25 BS EN 62676-2-2:2014 6 62676-2-2 IEC:2013 INTRODUCTION The IEC Technical Committee 79 in charge of alarm and electronic security systems together with ma
32、ny governmental organisations, test houses and equipment manufacturers have defined a common framework for video surveillance transmission in order to achieve interoperability between products. The IEC 62676 series of standards on video surveillance system is divided into 4 independent parts: Part 1
33、 System requirements Part 2: Video transmission protocols Part 3: Analog and digital video interfaces Part 4 : Application guidelines (to be published) Each part has its own clauses on scope, references, definitions and requirements This IEC 62676-2 series consists of 3 subparts, numbered parts 2-1,
34、 2-2 and 2-3 respectively: IEC 62676-2-1, Video transmission protocols General requirements IEC 62676-2-2, Video transmission protocols IP interoperability implementation based on HTTP and REST services IEC 62676-2-3, Video transmission protocols IP interoperability implementation based on Web servi
35、ces This second subpart of this IEC 62676-2 series covers IP interoperability implementation based on HTTP and REST services. It is based on the requirements for IP video transmission protocols covered in IEC 62676-2-1, which defines protocol requirements to be fulfilled by any high-level IP video d
36、evice interface. BS EN 62676-2-2:201462676-2-2 IEC:2013 7 VIDEO SURVEILLANCE SYSTEMS FOR USE IN SECURITY APPLICATIONS Part 2-2: Video transmission protocols IP interoperability implementation based on HTTP and REST services 1 Scope This part of IEC 62676 specifies a compliant IP video protocol based
37、 on HTTP and REST services. Video transmission devices are often equipped with web servers that respond to HTTP requests. The HTTP response may contain XML content (for GET actions), XML response information (for SET actions), or various text/binary content (for retrieval of configuration data, etc.
38、). REST is an approach to creating services that expose all information as resources in a uniform way. The ease of using REST is its uniform interface for operations. Since everything is represented as a resource, create, retrieve, update, and delete (CRUD) operations use the same URI. This specific
39、ation leverages the features of HTTP and REST for IP video transmission. A video transmission device supporting compliance to the requirements of this standard based on HTTP and REST Services as described in this document is declared as compatible to IEC 62676-2 HTTP and REST interoperability. 2 Nor
40、mative references The following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments
41、) applies. ISO/IEC 10918-1, Information technology Digital compression and coding of continuous-tone still images: Requirements and guidelines ISO/IEC 11172-3:1993, Information technology Coding of moving pictures and associated audio for digital storage media at up to about 1,5 Mbit/s Part 3: Audio
42、 ISO/IEC 13818-2, Information technology Generic coding of moving pictures and associated audio information: Video ISO/IEC 14496-2:2004, Information technology Coding of audio-visual objects Part 2: Visual ISO/IEC 14496-3, Information technology Coding of audio-visual objects Part 3: Audio ISO/IEC 1
43、4496-10:2012, Information technology Coding of audio-visual objects Part 10: Advanced video coding IETF RFC 1213, Management Information Base for Network Management of TCP/IP-based internets: MIB-II BS EN 62676-2-2:2014 8 62676-2-2 IEC:2013 IETF RFC 1945, Hypertext Transfer Protocol HTTP/1.0 IETF RF
44、C 2046, Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types IETF RFC 2250, Format de charge utile RTP pour la video MPEG1/MPEG2 IETF RFC 2326, Real Time Streaming Protocol (RTSP) IETF RFC 2435, Format de charge utile RTP pour l video JPEG IETF RFC 2616, Hypertext Transfer Protocol HTT
45、P/1.1 IETF RFC 2617, HTTP Authentication: Basic and Digest Access Authentication IETF RFC 2818, HTTP Over TLS IETF RFC 3016, Format de charge utile RTP pour flux audio/video MPEG-4 IETF RFC 3550, RTP: A Transport Protocol for Real-Time Applications IETF RFC 3551, RTP Profile for Audio and Video Conf
46、erences with Minimal Control IETF RFC 3629, UTF-8 un format de transformation de lISO 10646 IETF RFC 3640, Format de charge utile RTP pour le transport de flux lmentaires MPEG-4 IETF RFC 3984, Format de charge utile RTP pour video H.264 IETF RFC 4566, SDP: Session Description Protocol ITU-T Recommen
47、dation G.726, 40, 32, 24, 16 kbit/s Adaptive Differential Pulse Code Modulation (ADPCM) ITU-T Recommendation H.264, Advanced video coding for generic audiovisual services ITU-T Recommendation T.81, Information technology Digital compression and coding of continuous-tone still images Requirements and
48、 guidelines 3 Abbreviations For the purposes of this document, the following abbreviations apply. AAC Advanced Audio Coding API Application Program Interface AVP Audio/Video Profile DHCP Dynamic Host Configuration Protocol DNS Domain Name System HTTP Hypertext Transfer Protocol HTTPS Hypertext Trans
49、fer Protocol over Secure Socket Layer IETF Internet Engineering Task Force IO I/O Input/Output IP Internet Protocol BS EN 62676-2-2:201462676-2-2 IEC:2013 9 IPv4 Internet Protocol Version 4 IPv6 Internet Protocol Version 6 ISO International Standards Organization ITU International telecommunications Union JFIF JPEG File Interchange Format JPEG Joint Photographic Expert Group MPEG Moving Pictures Experts Group NTP Network Time Protocol NVS Network Video St