CN107547915B - A kind of IPTV video content tamper resistant method - Google Patents

A kind of IPTV video content tamper resistant method Download PDF

Info

Publication number
CN107547915B
CN107547915B CN201710997096.7A CN201710997096A CN107547915B CN 107547915 B CN107547915 B CN 107547915B CN 201710997096 A CN201710997096 A CN 201710997096A CN 107547915 B CN107547915 B CN 107547915B
Authority
CN
China
Prior art keywords
signature
video segment
video
segment file
iptv
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.)
Active
Application number
CN201710997096.7A
Other languages
Chinese (zh)
Other versions
CN107547915A (en
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.)
Tianyi Digital Life Technology Co Ltd
Original Assignee
Tianyi Smart Family Technology 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 Tianyi Smart Family Technology Co Ltd filed Critical Tianyi Smart Family Technology Co Ltd
Priority to CN201710997096.7A priority Critical patent/CN107547915B/en
Publication of CN107547915A publication Critical patent/CN107547915A/en
Application granted granted Critical
Publication of CN107547915B publication Critical patent/CN107547915B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of IPTV video content tamper resistant methods, have increased two signature generation, signature check functional modules newly in original process;The effect of signature generation module is that signature is extracted from video segment file, the effect of signature check module is to carry out signature check to the video file received and decide whether to allow to play according to check results, if video content is illegally distorted, signature check failure does not allow to play the video.Present invention is generally directed to existing IPTV video content tamper resistant methods to be difficult to meet IPTV video content anti-tamper the problem of requiring under the Internet model, it is proposed a kind of new IPTV video content tamper resistant method, it not only increases the anti-tamper safety of IPTV video content, and it realizes simple, it is smaller to the transformation of existing IPTV system, it also improves video and broadcasts speed.

Description

A kind of IPTV video content tamper resistant method
Technical field
The invention belongs to IPTV Web TV technical fields, and in particular to a kind of IPTV video content tamper resistant method.
Background technique
Continuous with the integration of three networks promotes and the continuous speed-raising in broadband, the network mode of IPTV service just from private network to Internet transformation.Internet is that IPTV service brings content abundant and application, also brings the risk of safe broadcast.
IPTV video content tamper-resistance techniques are the important means taken precautions against IPTV Video security and broadcast risk, traditional IPTV There are two types of video content tamper resistant methods:
(1) video-encryption.This method realizes that video content is anti-tamper by video-encryption, there is a higher safety, but by Hardware is all relied in the encryption and decryption of video, flexibility is poor and too big to the transformation of IPTV platform and terminal, it is difficult to meet mutual IPTV video content tamper-proof requirement under networked mode.
(2) signing messages is inserted into video flowing.This method is extracted video signatures information and is inserted into video flowing, is broadcasting later End is put to verify video signatures information.Due to not depending on hardware, this method is high compared with video encryption method flexibility, but its school Video signatures are tested to decapsulate based on video, it is relative complex in realization, and because video and corresponding signing messages download, has verified It can be played after, cause video to rise and broadcast relatively slowly.
As seen from the above analysis, existing IPTV video content tamper resistant method still has deficiency, it is difficult to meet internet mould The anti-tamper requirement of IPTV video content under formula.
Summary of the invention
It is anti-tamper to be difficult to meet IPTV video content under the Internet model for existing IPTV video content tamper resistant method It is required that the problem of, the invention proposes a kind of new IPTV video content tamper resistant methods, not only increase IPTV video content Anti-tamper safety, and realize simply, it is smaller to the transformation of existing IPTV system, it also improves video and broadcasts speed.
The technical solution adopted by the present invention is that: a kind of IPTV video content tamper resistant method, this method video segment, CDN distribution, terminal plays link in newly added signature generate, two functional modules of signature check, two of them module it is specific It is accomplished by
The signature generate the following steps are included:
Step A, signature 1 is generated, 1024 bytes and calculates MD5 signature value before reading video segment file, generates signature 1;
Step B, signature 2 is generated, entire video segment file is read and calculates MD5 signature value, generates signature 2;
Step C, encrypted signature encrypts signature 1 and signature 2 respectively;
Step D, signature saves, and encrypted signature 1 and signature 2 are stored in video segment file name as character string In;
The signature check the following steps are included:
Step A: video segment file download thread is initiated after requesting and receiving the packet header HTTP that CDN is responded to CDN, is opened Begin this process;
Step B: receiving the first packet data of video segment file, that is, receives first TCP packet;
Step C: calculating the MD5 value of preceding 1024 byte of video segment file first packet data, and signature verification 1, if verification Failure, then directly terminate video segment file download process, otherwise enters next link;
Step D: it receives video segment file and plays multicast data and be stored in player buffer area, since buffer data fills Foot, player have started to broadcast and have exported picture;
Step E: continuing to the remaining data of video segment file, which wouldn't be stored in player buffer;
Step F: calculating the MD5 value of entire video segment file, and signature verification 2, if verification failure, directly terminates to regard Frequency slice file download process, otherwise enters next link;
Step G: the remaining data of video segment file are stored in player buffer area, player continues to play remaining picture Face;
Step H: terminate this video segment file download.
Preferably, in the step C that the signature generates, encrypted signature and decryption are carried out using TEA algorithm.
Preferably, in the step D that the signature generates, the format of video segment file name is: key version number _ signature 1 ciphertext _ 2 ciphertexts of signature _ file identification .ts.
Preferably, it in the step D of the signature check, plays multicast data and was estimated by playable 1 second, calculation formula are as follows: Video segment file size/video segment media duration, wherein video segment file size is obtained from the packet header HTTP, video segment Media duration is obtained from M3U8 file.
Compared with the prior art, main advantages of the present invention include:
1, a kind of new IPTV video content tamper resistant method is proposed, it is anti-tamper to not only increase IPTV video content Safety, and realize simply, it is smaller to the transformation of existing IPTV system, it also improves video and broadcasts speed.It, can using the present invention Effectively meet the anti-tamper requirement of IPTV video content under the Internet model.
2, the method for file signature twice is proposed, has been improved on the basis of the anti-tamper safety of guarantee video content The speed broadcast.
3, it proposes signing messages being stored in the method in file name, without separately construction signature dissemination system, reduce The complexity that system is realized, and safeguard protection is carried out to signature using TEA algorithm, it is improved on the basis of signing safety ensureing The speed of decryption plays signature decryption without influence on user.
Additional aspect and advantage of the invention will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Fig. 1 is present system module architectures schematic diagram.
Fig. 2 is present invention signature product process figure.
Fig. 3 is signature check flow chart of the present invention.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.
Under the Internet model, IPTV system generallys use video segment technology and provides Video service.Video is broadcast from being injected into It puts, it need to be by links such as video segment, CDN distribution, terminal plays.To realize the anti-tamper function of video, the present invention is in original stream Two signature generation, signature check functional modules (as shown in Figure 1) are increased in journey newly.The effect of signature generation module is from video It is sliced in file and extracts signature, the effect of signature check module is to carry out signature check to the video file received and according to school It tests result to decide whether to allow to play, if video content is illegally distorted, signature check failure does not allow to play the video.
Two modules are implemented as follows:
1, signature generates
The present invention realizes that the process of signature systematic function is as shown in Figure 2, comprising the following steps:
Step A, signature 1 is generated.1024 bytes and MD5 signature value is calculated before reading video segment file, generates signature 1.
Step B, signature 2 is generated.It reads entire video segment file and calculates MD5 signature value, generate signature 2.
Step C, encrypted signature.Signature 1 and signature 2 are encrypted respectively, to improve encryption/decryption speed, the present invention is used TEA algorithm.
Step D, signature saves.Encrypted signature 1 and signature 2 are stored in video segment file name as character string In, the format of video segment file name is: key version number _ 1 ciphertext of signature _ 2 ciphertexts of signature _ file identification .ts.
2, signature check
The present invention realizes that signature check process is as shown in Figure 3.The following steps are included:
Step A: video segment file download thread is initiated after requesting and receiving the packet header HTTP that CDN is responded to CDN, is opened Begin this process.
Step B: receiving the first packet data of video segment file, that is, receives first TCP packet.
Step C: the MD5 value of preceding 1024 byte of video segment file first packet data, and signature verification 1 are calculated.If verification Failure, then directly terminate video segment file download process, otherwise enters next link.
Step D: it receives video segment file and plays multicast data and be stored in player buffer area, since buffer data fills Foot, player have started to broadcast and have exported picture.
It plays multicast data to be estimated by playable 1 second, calculation formula are as follows: video segment file size/video segment media Duration.Video segment file size is obtained from the packet header HTTP, and video segment media duration is obtained from M3U8 file.
Step E: continuing to the remaining data of video segment file, which wouldn't be stored in player buffer.
Step F: the MD5 value of entire video segment file, and signature verification 2 are calculated.If verification failure, directly terminates to regard Frequency slice file download process, otherwise enters next link.
Step G: the remaining data of video segment file are stored in player buffer area.Player continues to play remaining picture Face.
Step H: terminate this video segment file download.
Module is increased newly by two above, and the present invention realizes the IPTV video contents such as signature generation, signature check and prevents usurping Change technology.Main innovation point includes:
(1) it uses and signs twice
Signature 2 is the MD5 signature that carries out to complete video slice file, it can be achieved that the anti-tamper of video segment file, But verifying the signature needs just can be carried out after the completion of entire video segment file download, has reduced and has broadcast speed (player is raising Rise broadcast speed, generally key frame of video downloading after i.e. display broadcasting pictures, without entire video segment file completely under It carries).
Speed is broadcast to have improved, the present invention has also been proposed signature 1, i.e., carries out to 1024 bytes before video segment file MD5 signature.Signature verification 1 can be completed after the completion of the downloading of the first packet of video segment file, improve the speed of signature check. After the success of video segment file download thread signature verification 1, the multicast data deposit player that rises of video segment file is delayed immediately Area is rushed, broadcasts speed to have improved.But the remaining data of video segment are not stored in player buffer area immediately, but wait until video Slice file all complete and be just stored in after being verified successfully by signature 2 by downloading, to improve the anti-tamper safety of video content Property.
(2) by signing messages encrypting storing in file name
Signing messages is stored in file name, terminal can directly acquire A.L.S. using the distribution capability of CDN network Breath reduces the complexity of system realization, is conducive to the fast of the anti-tamper function of video without separately building signature dissemination system Speed is online.
In addition, the present invention carries out safeguard protection to signature using TEA algorithm, improved on the basis of signing safety ensureing The speed of decryption plays signature decryption without influence on user.
The basic principles, main features and advantages of the invention have been shown and described above.Those skilled in the art It should be appreciated that the protection scope that the above embodiments do not limit the invention in any form, all to be obtained using modes such as equivalent replacements The technical solution obtained, falls in protection scope of the present invention.
Part that the present invention does not relate to is the same as those in the prior art or can be realized by using the prior art.

Claims (4)

1. a kind of IPTV video content tamper resistant method, it is characterised in that video segment, CDN distribution, terminal plays link Two middle newly added signature generation, signature check functional modules, two of them module are implemented as follows:
The signature generate the following steps are included:
Step A: 1024 bytes and calculating MD5 signature value before reading video segment file, generates signature 1;
Step B: reading entire video segment file and calculates MD5 signature value, generates signature 2;
Step C: signature 1 and signature 2 are encrypted respectively;
Step D: encrypted signature 1 and signature 2 are stored in video segment file name as character string;
The signature check the following steps are included:
Step A: video segment file download thread is initiated after requesting and receiving the packet header HTTP that CDN is responded to CDN, starts this Process;
Step B: receiving the first packet data of video segment file, that is, receives first TCP packet;
Step C: calculating the MD5 value of preceding 1024 byte of video segment file first packet data, and signature verification 1, if verification failure, Then directly terminate video segment file download process, otherwise enters next link;
Step D: it receives video segment file and plays multicast data and be stored in player buffer area, player has started to broadcast and exported picture Face;
Step E: continue to receive the remaining data of video segment file, which wouldn't be stored in player buffer area;
Step F: calculating the MD5 value of entire video segment file, and signature verification 2, if verification failure, directly terminates video and cut Otherwise piece file download process enters next link;
Step G: the remaining data of video segment file are stored in player buffer area, player continues to play remaining picture;
Step H: terminate this video segment file download.
2. a kind of IPTV video content tamper resistant method according to claim 1, it is characterised in that the signature generated In step C, encrypted signature is carried out using TEA algorithm.
3. a kind of IPTV video content tamper resistant method according to claim 1, it is characterised in that the signature generated In step D, the format of video segment file name is: key version number _ 1 ciphertext of signature _ 2 ciphertexts of signature _ file identification .ts.
4. a kind of IPTV video content tamper resistant method according to claim 1, it is characterised in that the signature check In step D, plays multicast data and estimated by playable 1 second, calculation formula are as follows: play multicast data file size=video segment file Length/video segment media duration, wherein video segment file size from the packet header HTTP obtain, video segment media duration from It is obtained in M3U8 file.
CN201710997096.7A 2017-10-23 2017-10-23 A kind of IPTV video content tamper resistant method Active CN107547915B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710997096.7A CN107547915B (en) 2017-10-23 2017-10-23 A kind of IPTV video content tamper resistant method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710997096.7A CN107547915B (en) 2017-10-23 2017-10-23 A kind of IPTV video content tamper resistant method

Publications (2)

Publication Number Publication Date
CN107547915A CN107547915A (en) 2018-01-05
CN107547915B true CN107547915B (en) 2019-11-19

Family

ID=60968114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710997096.7A Active CN107547915B (en) 2017-10-23 2017-10-23 A kind of IPTV video content tamper resistant method

Country Status (1)

Country Link
CN (1) CN107547915B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494732B (en) * 2018-02-09 2021-07-06 浙江新再灵科技股份有限公司 Intelligent screen video playing tamper-proof system based on digital fingerprints
CN110324682A (en) * 2019-07-10 2019-10-11 中国联合网络通信集团有限公司 VOD method and system based on block chain
CN110719499B (en) * 2019-09-19 2022-04-05 北京字节跳动网络技术有限公司 Video downloading method, system, medium and electronic device
CN111182336A (en) * 2019-10-28 2020-05-19 腾讯科技(深圳)有限公司 Video data playing processing method and device, server and terminal
CN111314742B (en) * 2020-04-02 2023-02-03 上海商魁信息科技有限公司 Video processing method and device and machine-readable storage medium
CN111200741B (en) * 2020-04-02 2022-04-15 上海商魁信息科技有限公司 Video processing method and device and machine-readable storage medium
CN111866547B (en) * 2020-07-30 2022-07-15 北京万协通信息技术有限公司 Novel video tamper-proofing method
CN112040275A (en) * 2020-07-31 2020-12-04 上海幻维数码创意科技有限公司 Video encryption and decryption method
CN113840162B (en) * 2021-09-27 2023-07-25 中通服创立信息科技有限责任公司 IPTV video file tamper-proof method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9210368B2 (en) * 2004-12-28 2015-12-08 Google Technology Holdings LLC Digital video recorder for automatically recording an upcoming program that is being advertised
CN101431415B (en) * 2008-12-12 2011-12-21 天柏宽带网络科技(北京)有限公司 Bidirectional authentication method
CN102075790A (en) * 2009-11-20 2011-05-25 上海电机学院 Method for distributing and encrypting streaming media

Also Published As

Publication number Publication date
CN107547915A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107547915B (en) A kind of IPTV video content tamper resistant method
US9038147B2 (en) Progressive download or streaming of digital media securely through a localized container and communication protocol proxy
CN105659240B (en) It is a kind of for sending and authentication URL is signed to carry out URL certifications in self adaptation stream and the system and method for the content access authorization based on URL
CN100576795C (en) Public security broadcast control media management and its complete authentication method of not distorted of identification
US8688991B1 (en) Media player embodiments and secure playlist packaging
CN101051906B (en) Method for transmitting and receiving stream type media and certifying system for stream type media
CN104506503B (en) A kind of security certification system based on broadcasting and TV one-way transport network
KR101541911B1 (en) Apparatus and method for providing security service of User Interface
CN108769742B (en) IPTV multicast content tamper-proofing method
CN107547918A (en) The methods, devices and systems that a kind of IPTV channel plays safely
CN102523495A (en) IPTV system and method for realizing playing hotlinking prevention
CN108989886A (en) A kind of method and system playing encrypted video
KR20100000299A (en) Apparatus and method for transmitting a plurality of key data
CN110381334A (en) Anti-stealing link method, apparatus and system
CN110868641B (en) Method and system for detecting validity of live broadcast source
KR20180048618A (en) Receiving device, transmitting device, and data processing method
CN106572052B (en) Verification method, set top box and system for Internet television playing content
CN106604023A (en) Video stream authenticity verification method and video stream authenticity verification system
CN110012260A (en) A kind of video conference content guard method, device, equipment and system
CN110324682A (en) VOD method and system based on block chain
CN107465938A (en) The method, apparatus and media server system of a kind of media preview
CN115550328A (en) Digital copyright protection method based on auxiliary enhancement information of H.264 video code stream
KR101098828B1 (en) Method for providing contents management in bidirectional digital broadcasting system
CN105635850B (en) A kind of method that IP terminal obtains DVB standard digital television on-demand resource from gateway
US9609279B2 (en) Method and system for providing secure CODECS

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190321

Address after: 210006 Tongyu Building, 501 Zhongshan South Road, Nanjing City, Jiangsu Province

Applicant after: Tianyi Smart Family Technology Co.,Ltd.

Address before: 210037 No. 260 Central Road, Xuanwu District, Nanjing City, Jiangsu Province 1901

Applicant before: JIANGSU PROVINCE PUBLIC INFORMATION CO.,LTD.

GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 201702 3rd floor, 158 Shuanglian Road, Qingpu District, Shanghai

Patentee after: Tianyi Smart Family Technology Co.,Ltd.

Address before: 210006 Tongyu Building, 501 Zhongshan South Road, Nanjing City, Jiangsu Province

Patentee before: Tianyi Smart Family Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220224

Address after: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200072

Patentee after: Tianyi Digital Life Technology Co.,Ltd.

Address before: 201702 3rd floor, 158 Shuanglian Road, Qingpu District, Shanghai

Patentee before: Tianyi Smart Family Technology Co.,Ltd.