CN107547915A - A kind of IPTV video contents tamper resistant method - Google Patents

A kind of IPTV video contents tamper resistant method Download PDF

Info

Publication number
CN107547915A
CN107547915A CN201710997096.7A CN201710997096A CN107547915A CN 107547915 A CN107547915 A CN 107547915A CN 201710997096 A CN201710997096 A CN 201710997096A CN 107547915 A CN107547915 A CN 107547915A
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.)
Granted
Application number
CN201710997096.7A
Other languages
Chinese (zh)
Other versions
CN107547915B (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
JIANGSU PUBLIC INFORMATION 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 JIANGSU PUBLIC INFORMATION CO Ltd filed Critical JIANGSU PUBLIC INFORMATION 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 contents tamper resistant method, and it has increased two signature generation, signature check functional modules newly in original flow;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, do not allow to play the video.Present invention is generally directed to existing IPTV video contents tamper resistant method to be difficult to meet IPTV video contents anti-tamper the problem of requiring under the Internet model, it is proposed a kind of new IPTV video content tamper resistant methods, it not only increases the anti-tamper security of IPTV video contents, and realize simple, it is smaller to the transformation of existing IPTV system, also improve video and broadcast speed.

Description

A kind of IPTV video contents tamper resistant method
Technical field
The invention belongs to IPTV Web TV technical fields, and in particular to a kind of IPTV video contents tamper resistant method.
Background technology
With the continuous propulsion of the integration of three networks and the continuous speed-raising in broadband, the network mode of IPTV service just from private network to Internet changes.Internet is that IPTV service brings abundant content and application, also brings the risk of safe broadcast.
IPTV video content tamper-resistance techniques are to take precautions against the important means that IPTV Video securities broadcast risk, traditional IPTV Video content tamper resistant method has two kinds:
(1) video-encryption.This method realizes that video content is anti-tamper by video-encryption, there is a higher security, but by Hardware is all relied in the encryption and decryption of video, very flexible and transformation to IPTV platforms and terminal is too big, it is difficult to meet mutual IPTV video contents tamper-proof requirement under networked mode.
(2) signing messages is inserted in video flowing.This method is extracted video signatures information and inserted in video flowing, is broadcasting afterwards End is put to verify video signatures information.Because independent of 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 to signing messages download, verified It can be played after, cause video to be broadcast slower.
As seen from the above analysis, existing IPTV video contents tamper resistant method still Shortcomings, it is difficult to meet internet mould The anti-tamper requirement of IPTV video contents under formula.
The content of the invention
It is difficult to meet under the Internet model that IPTV video contents are anti-tamper for existing IPTV video contents tamper resistant method It is required that the problem of, the present invention proposes a kind of new IPTV video content tamper resistant methods, not only increases IPTV video contents Anti-tamper security, and realize simply, it is smaller to the transformation of existing IPTV system, also improve video and broadcast speed.
The present invention adopts the technical scheme that:A kind of IPTV video contents tamper resistant method, this method video segment, CDN distribution, terminal plays link in newly added signature generation, two functional modules of signature check, two of which module it is specific Realize as follows:
The signature generation comprises the following steps:
Step A, generation signature 1,1024 bytes and MD5 signature values are calculated before reading video segment file, generation signature 1;
Step B, generation signature 2, reads whole video segment file and calculates MD5 signature values, generation signature 2;
Step C, encrypted signature, signature 1 and signature 2 are encrypted respectively;
Step D, signature is preserved, and the signature 1 after encryption and signature 2 are stored in into video segment file name as character string In;
The signature check comprises the following steps:
Step A:Video segment file download thread is initiated after asking and receiving the HTTP packet header that CDN is responded to CDN, is opened Begin this flow;
Step B:The first packet data of video segment file are received, that is, receive first TCP bag;
Step C:The MD5 values 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 flow, otherwise into next link;
Step D:Receive video segment file to play multicast data and be stored in player buffering area, because buffer data fills Foot, player have started to broadcast and export picture;
Step E:The remaining data of video segment file are continued to, the data wouldn't be stored in player buffer;
Step F:The MD5 values of whole video segment file, and signature verification 2 are calculated, if verification failure, directly terminates to regard Frequency section file download flow, otherwise into next link;
Step G:By the remaining data deposit player buffering area of video segment file, player continues to play remaining picture Face;
Step H:Terminate this video segment file download.
Preferably, in the step C of the signature generation, encrypted signature and decryption are carried out using TEA algorithms.
Preferably, in the step D of the signature generation, the form of video segment file name is:Key version number _ signature 1 ciphertext _ 2 ciphertexts of signature _ file identification .ts.
Preferably, in the step D of the signature check, play multicast data and estimated that calculation formula was by playable 1 second: Video segment file size/video segment media duration, wherein video segment file size obtain from HTTP packet header, video segment Media duration obtains from M3U8 files.
Compared to prior art, main advantages of the present invention include:
1st, a kind of new IPTV video content tamper resistant methods are proposed, it is anti-tamper to not only increase IPTV video contents Security, and realize simply, it is smaller to the transformation of existing IPTV system, also improve video and broadcast speed., can using the present invention Effectively meet the anti-tamper requirement of IPTV video contents under the Internet model.
2nd, the method for proposing file signature twice, improved on the basis of the anti-tamper security of video content is ensured The speed broadcast.
3rd, the method for proposing to be stored in signing messages in file name, without separately building signature dissemination system, reduce The complexity that system is realized, and safeguard protection is carried out to signature using TEA algorithms, improved on the basis of safety of signing is ensured The speed of decryption, signature decryption is set to play without influence user.
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
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.
Embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.
Under the Internet model, IPTV system generally provides Video service using video segment technology.Video is broadcast from being injected into Put, the links such as video segment, CDN distributions, terminal plays need to be passed through.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 Signature is extracted in section file, the effect of signature check module is to carry out signature check and according to school to the video file received Test result to decide whether to allow to play, if video content is illegally distorted, signature check failure, do not allow to play the video.
Two modules are implemented as follows:
1st, signature generation
The present invention realizes the flow of signature systematic function as shown in Fig. 2 comprising the following steps:
Step A, generation signature 1.1024 bytes and MD5 signature values are calculated before reading video segment file, generation signature 1.
Step B, generation signature 2.Read whole video segment file and calculate MD5 signature values, generation signature 2.
Step C, encrypted signature.Signature 1 and signature 2 are encrypted respectively, to improve encryption/decryption speed, the present invention uses TEA algorithms.
Step D, signature preserves.Signature 1 after encryption and signature 2 are stored in video segment file name as character string In, the form of video segment file name is:Key version number _ 1 ciphertext of signature _ 2 ciphertexts of signature _ file identification .ts.
2nd, signature check
The present invention realizes that signature check flow is as shown in Figure 3.Comprise the following steps:
Step A:Video segment file download thread is initiated after asking and receiving the HTTP packet header that CDN is responded to CDN, is opened Begin this flow.
Step B:The first packet data of video segment file are received, that is, receive first TCP bag.
Step C:Calculate the MD5 values 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 flow, otherwise into next link.
Step D:Receive video segment file to play multicast data and be stored in player buffering area, because buffer data fills Foot, player have started to broadcast and export picture.
Play multicast data and estimated that calculation formula was by playable 1 second:Video segment file size/video segment media Duration.Video segment file size obtains from HTTP packet header, and video segment media duration obtains from M3U8 files.
Step E:The remaining data of video segment file are continued to, the data wouldn't be stored in player buffer.
Step F:Calculate the MD5 values of whole video segment file, and signature verification 2.If verification failure, directly terminates to regard Frequency section file download flow, otherwise into next link.
Step G:By the remaining data deposit player buffering area of video segment file.Player continues to play remaining picture Face.
Step H:Terminate this video segment file download.
Module is increased newly by two above, the present invention realizes the IPTV video contents such as signature generation, signature check and prevents usurping Change technology.Main innovation point includes:
(1) use and sign twice
Signature 2 is that the MD5 carried out to complete video section file signs, and be can be achieved to the anti-tamper of video segment file, But verifying the signature needs could carry out after the completion of whole video segment file download, reduce and broadcast speed (player is raising Rise broadcast speed, typically key frame of video download after i.e. display broadcasting pictures, without whole video segment file completely under Carry).
Speed is broadcast to have improved, the present invention has also been proposed signature 1, i.e., 1024 bytes before video segment file is carried out MD5 signs.Signature verification 1 can be completed after the completion of the first packet of video segment file is downloaded, and 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, speed is broadcast to have improved.But the remaining data of video segment are not stored in player buffering area immediately, but wait until video Section file, which is all downloaded, to be completed and is just stored in after being verified successfully by signature 2, 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 utilize the distribution capability of CDN directly to obtain A.L.S. Breath, without separately building signature dissemination system, the complexity of system realization is reduced, is advantageous to the fast of the anti-tamper function of video Speed is reached the standard grade.
In addition, the present invention carries out safeguard protection using TEA algorithms to signature, improved on the basis of safety of signing is ensured The speed of decryption, signature decryption is set to play without influence user.
The basic principles, principal features and advantages of the present invention have been shown and described above.One of ordinary skill in the art It should be appreciated that above-described embodiment protection domain that the invention is not limited in any way, all to be obtained using modes such as equivalent substitutions The technical scheme obtained, falls within protection scope of the present invention.
Part that the present invention does not relate to is same as the prior art or can be realized using prior art.

Claims (4)

  1. A kind of 1. IPTV video contents 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 which module are implemented as follows:
    The signature generation comprises the following steps:
    Step A, generation signature 1,1024 bytes and MD5 signature values are calculated before reading video segment file, generation signature 1;
    Step B, generation signature 2, reads whole video segment file and calculates MD5 signature values, generation signature 2;
    Step C, encrypted signature, signature 1 and signature 2 are encrypted respectively;
    Step D, signature is preserved, and the signature 1 after encryption and signature 2 are stored in video segment file name as character string;
    The signature check comprises the following steps:
    Step A:Video segment file download thread is initiated after asking and receiving the HTTP packet header that CDN is responded to CDN, starts this Flow;
    Step B:The first packet data of video segment file are received, that is, receive first TCP bag;
    Step C:The MD5 values 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 flow, otherwise into next link;
    Step D:Receive video segment file to play multicast data and be stored in player buffering area, because buffer data is sufficient, broadcast Device is put to have started to broadcast and export picture;
    Step E:The remaining data of video segment file are continued to, the data wouldn't be stored in player buffer;
    Step F:The MD5 values of whole video segment file, and signature verification 2 are calculated, if verification failure, directly terminates video and cut Piece file download flow, otherwise into next link;
    Step G:By the remaining data deposit player buffering area of video segment file, player continues to play remaining picture;
    Step H:Terminate this video segment file download.
  2. 2. a kind of IPTV video contents tamper resistant method according to claim 1, it is characterised in that the signature generation In step C, encrypted signature and decryption are carried out using TEA algorithms.
  3. 3. a kind of IPTV video contents tamper resistant method according to claim 1, it is characterised in that the signature generation In step D, the form of video segment file name is:Key version number _ 1 ciphertext of signature _ 2 ciphertexts of signature _ file identification .ts.
  4. 4. a kind of IPTV video contents tamper resistant method according to claim 1, it is characterised in that the signature check In step D, play multicast data and estimated that calculation formula was by playable 1 second:Video segment file size/video segment media Duration, wherein video segment file size obtain from HTTP packet header, and video segment media duration obtains from M3U8 files.
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 true CN107547915A (en) 2018-01-05
CN107547915B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494732A (en) * 2018-02-09 2018-09-04 浙江新再灵科技股份有限公司 A kind of intelligence screen video playing tamper resistant systems based on digital finger-print
CN110324682A (en) * 2019-07-10 2019-10-11 中国联合网络通信集团有限公司 VOD method and system based on block chain
CN110719499A (en) * 2019-09-19 2020-01-21 北京字节跳动网络技术有限公司 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
CN111200741A (en) * 2020-04-02 2020-05-26 上海商魁信息科技有限公司 Video processing method and device and machine-readable storage medium
CN111314742A (en) * 2020-04-02 2020-06-19 上海商魁信息科技有限公司 Video processing method and device and machine-readable storage medium
CN111866547A (en) * 2020-07-30 2020-10-30 北京万协通信息技术有限公司 Novel video tamper-proofing method
CN112040275A (en) * 2020-07-31 2020-12-04 上海幻维数码创意科技有限公司 Video encryption and decryption method
CN113840162A (en) * 2021-09-27 2021-12-24 中通服创立信息科技有限责任公司 IPTV video file tamper-proof method
CN115514991A (en) * 2022-09-22 2022-12-23 中国电信股份有限公司 Tamper-proof method of IPTV video, server and client

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006071395A2 (en) * 2004-12-28 2006-07-06 General Instrument Corporation Digital video recorder for automatically recording an upcoming program that is being advertised
CN101431415A (en) * 2008-12-12 2009-05-13 天柏宽带网络科技(北京)有限公司 Bidirectional authentication method
CN102075790A (en) * 2009-11-20 2011-05-25 上海电机学院 Method for distributing and encrypting streaming media

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006071395A2 (en) * 2004-12-28 2006-07-06 General Instrument Corporation Digital video recorder for automatically recording an upcoming program that is being advertised
CN101431415A (en) * 2008-12-12 2009-05-13 天柏宽带网络科技(北京)有限公司 Bidirectional authentication method
CN102075790A (en) * 2009-11-20 2011-05-25 上海电机学院 Method for distributing and encrypting streaming media

Cited By (14)

* 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
CN108494732A (en) * 2018-02-09 2018-09-04 浙江新再灵科技股份有限公司 A kind of intelligence screen video playing tamper resistant systems based on digital finger-print
CN110324682A (en) * 2019-07-10 2019-10-11 中国联合网络通信集团有限公司 VOD method and system based on block chain
CN110719499A (en) * 2019-09-19 2020-01-21 北京字节跳动网络技术有限公司 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
CN111200741A (en) * 2020-04-02 2020-05-26 上海商魁信息科技有限公司 Video processing method and device and machine-readable storage medium
CN111314742A (en) * 2020-04-02 2020-06-19 上海商魁信息科技有限公司 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
CN111866547A (en) * 2020-07-30 2020-10-30 北京万协通信息技术有限公司 Novel video tamper-proofing method
CN112040275A (en) * 2020-07-31 2020-12-04 上海幻维数码创意科技有限公司 Video encryption and decryption method
CN113840162A (en) * 2021-09-27 2021-12-24 中通服创立信息科技有限责任公司 IPTV video file tamper-proof method
CN113840162B (en) * 2021-09-27 2023-07-25 中通服创立信息科技有限责任公司 IPTV video file tamper-proof method
CN115514991A (en) * 2022-09-22 2022-12-23 中国电信股份有限公司 Tamper-proof method of IPTV video, server and client
CN115514991B (en) * 2022-09-22 2024-05-14 中国电信股份有限公司 IPTV video tamper-proof method, server and client

Also Published As

Publication number Publication date
CN107547915B (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN107547915B (en) A kind of IPTV video content tamper resistant method
EP1652383B1 (en) Content identification for broadcast media
WO2018001193A1 (en) Method, device and system for secure playback on internet protocol television channel
US9038147B2 (en) Progressive download or streaming of digital media securely through a localized container and communication protocol proxy
CN101051906B (en) Method for transmitting and receiving stream type media and certifying system for stream type media
CN108769742A (en) A kind of IPTV multicast contents tamper resistant method
CN100576795C (en) Public security broadcast control media management and its complete authentication method of not distorted of identification
CN106331751B (en) A kind of online encrypted slice video broadcasting method based on iOS operating system
CN104506503B (en) A kind of security certification system based on broadcasting and TV one-way transport network
CN106604023B (en) A kind of video flowing authenticity verification methods and system
CN109151508B (en) Video encryption method
KR20090000228A (en) Method of providing and using contents enabled to verify integrity and apparatus thereof
CN102523495A (en) IPTV system and method for realizing playing hotlinking prevention
CN110809191B (en) Video tamper-proofing method and system based on index verification and real-time package conversion
CN107316182A (en) A kind of generation method of electronic contract chain of evidence and generation system
CN108989886A (en) A kind of method and system playing encrypted video
CN110505049A (en) A kind of text information transmission method, apparatus and system
CN110868413A (en) Video and audio credible playing method for generating associated abstract based on intra-frame extraction
CN110868641B (en) Method and system for detecting validity of live broadcast source
CN106330461B (en) A kind of optical label method for anti-counterfeit and system based on one-way hash function
CN102917252B (en) IPTV (internet protocol television) program stream content protection system and method
CN115550328A (en) Digital copyright protection method based on auxiliary enhancement information of H.264 video code stream
CN110324682A (en) VOD method and system based on block chain
CN112188240B (en) Private transmission method of video data
CN111105777B (en) Voice data acquisition and playing method and device, key package updating method and device and storage medium

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

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
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.

CP02 Change in the address of a patent holder
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.

TR01 Transfer of patent right