CN106790132A - Based on RTMP without plug-in unit preview video method - Google Patents

Based on RTMP without plug-in unit preview video method Download PDF

Info

Publication number
CN106790132A
CN106790132A CN201611230833.2A CN201611230833A CN106790132A CN 106790132 A CN106790132 A CN 106790132A CN 201611230833 A CN201611230833 A CN 201611230833A CN 106790132 A CN106790132 A CN 106790132A
Authority
CN
China
Prior art keywords
client
rtmp
data
plug
preview video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611230833.2A
Other languages
Chinese (zh)
Inventor
戴林
陈文敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Tiandi Weiye Productivity Promotion Co Ltd
Original Assignee
Tianjin Tiandi Weiye Productivity Promotion Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin Tiandi Weiye Productivity Promotion Co Ltd filed Critical Tianjin Tiandi Weiye Productivity Promotion Co Ltd
Priority to CN201611230833.2A priority Critical patent/CN106790132A/en
Publication of CN106790132A publication Critical patent/CN106790132A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8549Creating video summaries, e.g. movie trailer

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides it is a kind of based on RTMP without plug-in unit preview video method, comprise the following steps:Handshake data to RTMP is encrypted using AES;Service end obtains the data type of client request by interactive command;RTMP service ends are judged the type after Video coding, and are selectively accepted or rejected, and encapsulate audio, video data, are only sent and the related coding unit of broadcasting pictures to client.Beneficial effect of the present invention:Browser can be realized under different operating system without plug-in unit preview video, and the network bandwidth can be reduced, while reducing the workload of client decoding, and then reduce the broadcast time-delay of client;The encryption of the handshake data avoids the connection of illegitimate client, improves the security of service end.

Description

Based on RTMP without plug-in unit preview video method
Technical field
The invention belongs to preview video technical field, more particularly, to it is a kind of based on RTMP without plug-in unit preview video side Method.
Background technology
RTMP agreements (real time message protocol, real-time messages agreement) be by adobe companies formulate with A kind of Streaming transfer protocol safeguarded, request is connected to service end and sends correct data to client since client, This process is related to the shaking hands (simply shake hands, complexity is shaken hands) of RTMP, the encapsulation of command interaction, audio, video data.FLASH PLAYER is currently the built-in module of many browsers, and itself also can be cross-platform with browser-cross, so adaptability is non- Chang Qiang.The use of RTMP collocation FLASH PLAYER is to solve current video monitoring device and chrome browsers, safri browsers Optimal case, compatible PC, android, ios system without plug-flow software, but is related to the security of service end and asks among these Topic.
The content of the invention
In view of this, the present invention is directed to propose it is a kind of based on RTMP without plug-in unit preview video method, with different operating Browser is realized under system without plug-in unit preview video, and avoids the connection of illegitimate client, improve the security of service end.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
Based on RTMP without plug-in unit preview video method, comprise the following steps:
A. the handshake data to RTMP is encrypted using AES;
B. service end obtains the data type of client request by interactive command;
C.RTMP service ends are judged the type after Video coding, and are selectively accepted or rejected, and encapsulate audio frequency and video Data, only send and the related coding unit of broadcasting pictures to client.
Further, the handshake procedure in the step A is comprised the following steps:
A1. client sends C0, C1 data block, and server sends S0 and S1 after receiving C0 or C1;
A2. client sends C2 after collecting S0 and S1, and server sends S2 after collecting C0 and C1;
A3. after client and server receives S2 and C2 respectively, completion of shaking hands.
Further, the encryption method of handshake data is comprised the following steps in the step A:
A. the data S1 of server authentication client, the public key of generation is stored in the rear 4B of 1536B;
B. the data S2 of client validation server, the wherein generating process of S2 is:
B1. the genuineFMSKey that the KeyC1, KeyC1 and 68B of 32B are first found from C1 is generated by SHA256 algorithms The pTempHash of 32B;
The pTempHash of the data and 32B that b2. take the preceding 1536B-32B in S2 generates the pLastHash of 32B, PLastHash has been placed on the last 32B of S2.
It is of the present invention to be had the advantage that without plug-in unit preview video method based on RTMP relative to prior art:
(1) it is of the present invention can be realized under different operating system without plug-in unit preview video method based on RTMP it is clear Device is look at without plug-in unit preview video, and the network bandwidth can be reduced, while reducing the workload of client decoding, and then reduced The broadcast time-delay of client;The encryption of described handshake data avoids the connection of illegitimate client, improves the peace of service end Quan Xing.
(2) RTMP agreements collocation FLASH PLAYER of the present invention are to solve current video monitoring device and chrome The optimal case of browser, safri browsers, compatible PC, android, ios system, without plug-flow software, with other scheme phases Than time delay is smaller, and user is more understood that and receives, and so as to reduce the operating procedure of user, improves Consumer's Experience.
Brief description of the drawings
The accompanying drawing for constituting a part of the invention is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate, for explaining the present invention, not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 be the embodiment of the present invention described in based on RTMP without plug-in unit preview video method flow diagram;
Fig. 2 is the schematic diagram of the handshake procedure described in the embodiment of the present invention.
Specific embodiment
It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment can phases Mutually combination.
Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in figure 1, being comprised the following steps without plug-in unit preview video method based on RTMP:
A. the handshake data to RTMP is encrypted using AES, if client does not use AES, clothes Business end can directly close the connection of client, it is to avoid the connection of illegitimate client, improve the security of service end;
B. service end obtains the data type of client request by interactive command;
C.RTMP service ends are judged the type after Video coding, and are selectively accepted or rejected, and encapsulate audio frequency and video Data, audio, video data is encapsulated according to the official regulations of Adobe companies offer, is only sent and the related coding of broadcasting pictures Unit reduces the broadcast time-delay of client to client, enables the client to timely playing video data.
As shown in Fig. 2 the handshake procedure in the step A is comprised the following steps:
A1. client sends C0, C1 data block, and server sends S0 and S1 after receiving C0 or C1;
A2. client sends C2 after collecting S0 and S1, and server sends S2 after collecting C0 and C1;
A3. after client and server receives S2 and C2 respectively, completion of shaking hands.
The encryption method of handshake data is comprised the following steps in the step A:
A. the data S1 of server authentication client, the public key of generation is stored in the rear 4B of 1536B;
B. the data S2 of client validation server, the wherein generating process of S2 is:
B1. the genuineFMSKey that the KeyC1, KeyC1 and 68B of 32B are first found from C1 is generated by SHA256 algorithms The pTempHash of 32B;
The pTempHash of the data and 32B that b2. take the preceding 1536B-32B in S2 generates the pLastHash of 32B, PLastHash has been placed on the last 32B of S2.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention Within god and principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (3)

1. based on RTMP without plug-in unit preview video method, it is characterised in that comprise the following steps:
A. the handshake data to RTMP is encrypted using AES;
B. service end obtains the data type of client request by interactive command;
C.RTMP service ends are judged the type after Video coding, and are selectively accepted or rejected, and encapsulate audio, video data, Only send and the related coding unit of broadcasting pictures to client.
2. it is according to claim 1 based on RTMP without plug-in unit preview video method, it is characterised in that:In the step A Handshake procedure comprise the following steps:
A1. client sends C0, C1 data block, and server sends S0 and S1 after receiving C0 or C1;
A2. client sends C2 after collecting S0 and S1, and server sends S2 after collecting C0 and C1;
A3. after client and server receives S2 and C2 respectively, completion of shaking hands.
3. it is according to claim 1 based on RTMP without plug-in unit preview video method, it is characterised in that:In the step A The encryption method of handshake data is comprised the following steps:
A. the data S1 of server authentication client, the public key of generation is stored in the rear 4B of 1536B;
B. the data S2 of client validation server, the wherein generating process of S2 is,
B1. the genuineFMSKey that the KeyC1, KeyC1 and 68B of 32B are first found from C1 generates 32B by SHA256 algorithms PTempHash;
The pTempHash of the data and 32B that b2. take the preceding 1536B-32B in S2 generates the pLastHash, pLastHash of 32B It has been placed on the last 32B of S2.
CN201611230833.2A 2016-12-28 2016-12-28 Based on RTMP without plug-in unit preview video method Pending CN106790132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611230833.2A CN106790132A (en) 2016-12-28 2016-12-28 Based on RTMP without plug-in unit preview video method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611230833.2A CN106790132A (en) 2016-12-28 2016-12-28 Based on RTMP without plug-in unit preview video method

Publications (1)

Publication Number Publication Date
CN106790132A true CN106790132A (en) 2017-05-31

Family

ID=58922400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611230833.2A Pending CN106790132A (en) 2016-12-28 2016-12-28 Based on RTMP without plug-in unit preview video method

Country Status (1)

Country Link
CN (1) CN106790132A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337528A (en) * 2018-01-17 2018-07-27 浙江大华技术股份有限公司 A kind of method and apparatus of preview video
CN110620959A (en) * 2018-06-20 2019-12-27 杭州海康威视数字技术股份有限公司 Data processing method, device, electronic equipment, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694819A (en) * 2012-06-13 2012-09-26 苏州大学 Streaming media transmission method based on broadcast encryption
CN103108173A (en) * 2013-03-05 2013-05-15 胡茂林 Intelligent video monitoring system with privacy protection function
CN103281539A (en) * 2013-06-07 2013-09-04 华为技术有限公司 Method, device and terminal for image encoding and decoding processing
CN105763831A (en) * 2014-12-16 2016-07-13 中国移动通信集团公司 Method of realizing video conference, apparatus and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694819A (en) * 2012-06-13 2012-09-26 苏州大学 Streaming media transmission method based on broadcast encryption
CN103108173A (en) * 2013-03-05 2013-05-15 胡茂林 Intelligent video monitoring system with privacy protection function
CN103281539A (en) * 2013-06-07 2013-09-04 华为技术有限公司 Method, device and terminal for image encoding and decoding processing
CN105763831A (en) * 2014-12-16 2016-07-13 中国移动通信集团公司 Method of realizing video conference, apparatus and system thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FLYINGPENGUIN: "《解决直播或点播失败的问题》", 《HTTPS://WWW.JIANSHU.COM/P/2AA5EAFC0960?》 *
雷霄骅: "《RTMP流媒体播放过程》", 《HTTPS://BLOG.CSDN.NET/LEIXIAOHU1020/ARTICLE/DETAILS/11704355》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337528A (en) * 2018-01-17 2018-07-27 浙江大华技术股份有限公司 A kind of method and apparatus of preview video
CN108337528B (en) * 2018-01-17 2021-04-16 浙江大华技术股份有限公司 Method and equipment for previewing video
CN110620959A (en) * 2018-06-20 2019-12-27 杭州海康威视数字技术股份有限公司 Data processing method, device, electronic equipment, system and storage medium
CN110620959B (en) * 2018-06-20 2020-12-25 杭州海康威视数字技术股份有限公司 Data processing method, device, electronic equipment, system and storage medium
US11470384B2 (en) 2018-06-20 2022-10-11 Hangzhou Hikvision Digital Technology Co., Ltd. Data processing method and apparatus, electronic device, system, and storage medium

Similar Documents

Publication Publication Date Title
US10341692B2 (en) Live streaming-TV content, acquisition, transformation, encryption, and distribution system, and method for its use
CN102143133B (en) Method, device and system for supporting advertisement content in hyper text transport protocol (HTTP) stream playing manner
US10162943B2 (en) Streamlined digital rights management
CN102571979B (en) Multi-screen interactive equipment and its binding method
CN102143129B (en) Method and system for realizing service protection in hyper text transmission protocol (HTTP) streaming transmission
GB2517834A (en) Scalable web real-time communications (webRTC) media engines, and related methods, systems and computer-readable media
RU2602244C1 (en) Inheritance of uniform resource identifier (uri) parameters
WO2017000720A1 (en) Multicast transmission method, apparatus, and system for ott media
CN104255010A (en) Support for short cryptoperiods in template mode
CN106331751A (en) Online encrypted slice video playing method based on iOS operating system
CN104618738B (en) A kind of smart television program broadcasting method and device
KR20080103599A (en) Method, system, subscriber equipment and multi-media server for digital copylight protection
WO2018103644A1 (en) Live stream sharing method and device, home media apparatus, and data storage medium
CN108989886A (en) A kind of method and system playing encrypted video
CN107925798B (en) Receiving apparatus, transmitting apparatus, and data processing method
WO2019128692A1 (en) Media processing architecture and method
CN106790132A (en) Based on RTMP without plug-in unit preview video method
CN102196304B (en) Method, system and equipment for generating secrete key in video monitoring
CN114679608B (en) VR video encryption playing method, server, user, system, electronic device and medium
CN105163138B (en) Video gateway ca authentication method and system
CN108810658B (en) HLS video live broadcast anti-theft chain method and system
CN105635850B (en) A kind of method that IP terminal obtains DVB standard digital television on-demand resource from gateway
CN112261040B (en) Online audio and video anti-theft method and system
CN113286202A (en) Set top box network program customization method based on http protocol
CN110677693A (en) Android system-based encrypted video offline playing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531