CN101188750A - An encryption method for transfer stream file - Google Patents

An encryption method for transfer stream file Download PDF

Info

Publication number
CN101188750A
CN101188750A CNA2007102030105A CN200710203010A CN101188750A CN 101188750 A CN101188750 A CN 101188750A CN A2007102030105 A CNA2007102030105 A CN A2007102030105A CN 200710203010 A CN200710203010 A CN 200710203010A CN 101188750 A CN101188750 A CN 101188750A
Authority
CN
China
Prior art keywords
stream file
program source
encryption method
transfer stream
file
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
CNA2007102030105A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CNA2007102030105A priority Critical patent/CN101188750A/en
Publication of CN101188750A publication Critical patent/CN101188750A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to an encryption technology, in particular to a copyright protecting encryption method for an audio/video file. The invention discloses a DRM technology, and a method for encrypting a TS file and protecting the copyright of the TS file. The invention adopts the technical proposal that the encryption method aiming to a transmission flow file comprises the following steps: firstly, the transmission flow file is analyzed, a program source associative list is searched and analyzed, the identification character of a package corresponding to a program source map is acquired; secondly, according to the MPEG2 standard specification, DRM information is enclosed and packed; thirdly, according to a certain period interval, the DRM information is embedded in the transmission flow file; fourthly, the data of the program source map are updated. The invention has the advantages that the structure and the identification character of the package of the transmission flow file cannot be damaged, and are independent of each bearing protocol, the invention not only can be applied to the content protection of a downloading broadcasting way, but also can be applied to the protection of the on-demand way, etc., and the invention can be applied to various DRM systems.

Description

A kind of encryption method at transfer stream file
Technical field
The present invention relates to encryption technology, particularly a kind of copyright protection encryption method of audio-video document.
Background technology
Along with economic globalization deepen continuously, information digitalization develops rapidly, the intellectual property protection of digital content becomes the burning hot topic of near period.Digital copyright management (Digital Right Management abbreviates DRM as) is by digital content being encrypted and additional service regeulations are protected a kind of technology to digital content.At present, China is also in an organized way making great efforts to create, improve one's own DRM standard, as ChinaDRM forum.
MPEG2 is the standard of International Standards Organization about video coding, is mainly used on DVD (digital video disc) and the DVB (digital video broadcasting), and PS (Program Stream) abbreviates program stream as, is the data format that adopts among the DVD; TS (Transport Stream) abbreviates transport stream as, is the data format that the DVB data broadcasting adopts.Than PS, the TS file format has very strong error correction feature, is fit to transmission.The DVB data broadcasting can adopt the mode of wireless, wired and satellite to transmit, and DVB data broadcasting broad covered area makes that the copyright protection of TS file is more urgent.
Summary of the invention
Technical problem to be solved by this invention just provides a kind of DRM of utilization technology, the TS file is encrypted, so that it is carried out the method for copyright protection.
The present invention solve the technical problem, and the technical scheme of employing is that a kind of encryption method at transfer stream file may further comprise the steps:
A. transfer stream file is analyzed, sought and parsing program source contingency table, obtain the identifier of the bag of program source mapping table correspondence;
B. according to the MPEG2 standard criterion, encapsulate packing DRM information;
C. according to certain all period interval, in transfer stream file, embed described DRM information;
D. upgrade program source mapping table data.
Further, also comprise step:
E. according to the identifier of the bag that obtains among the step a, to the audio frequency and video packet encryption.
Further, among the step e, the audio frequency and video bag is carried out part encrypt or all encrypt.
Concrete, in the steps d, described renewal program source mapping table data are meant: identifier, data type and the related description information of adding the bag of load DRM information; Change load length mark; Upgrade the CRC32 check value.
Concrete, among the step c, after each program source mapping table, embed DRM information.
The invention has the beneficial effects as follows; do not destroy the pack arrangement and the Packet Identifier of transfer stream file, be independent of each bearing protocol, both can use the content protecting of downloading and playing mode; also go for the protection of modes such as program request, the present invention can be applied in the various DRM system.
Embodiment
Describe technical scheme of the present invention in detail below in conjunction with embodiment.
Transport stream (TS) file is based on the bit stream format of bag (packet), each bag is that 188 bytes (generally are 188 bytes, 204 bytes just add the check code of 16 bytes behind the bag of 188 bytes, utilization is more in the high definition program), because the uniform format of each bag is made up of packet header and bag data two parts.The present invention is a kind of encryption method based on packet, by the parsing to feature packet, obtains audio, video data, is base unit with packet, adopts corresponding cryptographic algorithm, encrypts.This cipher mode, strictness are followed the standard of MPEG2TS part, only audio, video data in the TS file are encrypted, do not change any header packet information except that encryption identification, thereby the complete conformance with standard of TS file after guaranteeing to encrypt can not be subjected to the constraint of each host-host protocol, is convenient to terminal parses.Simultaneously, after the encryption, the player identification that still can be supported is under lawful authority, while can realize deciphering playing.
A TS file be made up of a plurality of corresponding independently packet, and the structure of each packet is relatively uniform, fixes and is made up of packet header and bag data.The bag data as its name suggests, are used for depositing corresponding effective information, can be audio, video datas, also can be other relevant informations, and the bag data division maximum length of each packet is 184 bytes.Each packet header length is 4 bytes, and the concrete structure in packet header is as shown in the table:
Figure A20071020301000041
Judge the attribute of each packet, be that packet is that what to deposit is audio-frequency information, video information, still relevant PSI (Program Specific Information) information can be according to program source contingency table (Program AssociationTable PAT), has in each TS file and only has one, is used to define the program source mapping table, PID in the packet header is fixed as 0, its bag deposit data the pid information of program source mapping table, by resolving PAT, can obtain the PID of program source mapping table.Perhaps program source mapping table (Program Map Table PMT), in the TS file, all corresponding PMT of each program source, its pid information is to parse by the program number among the PAT that packs into.Relation all leaves among the corresponding PMT between the pid information of ES of each program source (Elementary Stream) and correspondence thereof, the character of data, the data flow.The PID of audio, video data is exactly according to the parsing of PMT, judges and gets according to the MPEG213818 standard.
Implementation step of the present invention is described below:
The first step is searched PAT information.With packet is unit, resolves packet header, and searching PID is 0, and load unit begins to be designated 1 bag, search successfully after, according to the parsing form of PAT pay(useful) load, obtain the pid information of PMT.If the valid data of PAT are longer than 184 bytes, can leave in automatically among a plurality of packet, so when resolving the PAT pay(useful) load, discovery information is not intact, then needing further to search PID is 0, and load unit begins to be designated 0 bag, continues the uncompleted analyzing step of previous step.
In second step, packing DRM information is packaged into the packet of the one or more MPEG2 of meeting standard criterions, and DRM information all leaves among the load of packet.For packet header, each parameter is selected to leave user-defined field in the standard, in order to avoid cause conflict all as the case may be.With certain all period interval, in the TS file, insert the packet of subsidiary DRM information, as, after each PMT, intert once.
In the 3rd step, read PMT information, according in PMT, resolving the information of obtaining, search PMT according to PID, the load of PMT is resolved, reading of data type and corresponding pid information, judge the also PID of record tone video packet, present judgement mainly is to determine according to the value of data type:
Audio frequency 0x03,0x04,0x11,0x0f, 0x81,0x83,0x84,0x85,0x91,0x94;
Video 0x01,0x02,0x80,0x10,0xa0;
The 4th step, PMT is upgraded, for saving time, raising the efficiency, this step and the 5th goes on foot the encryption synchronisation of audio frequency and video packet.Mainly be to deposit the PID and relevant descriptive information of the packet of DRM information, to add in the load of PMT, revise the length mark of load and the check value of CRC32 (a kind of cyclic redundancy check (CRC) code) simultaneously.
Because PAT and PMT all are that property repeats in the TS file at interval, so resolve the operation of its pay(useful) load, only need carry out once getting final product.But, require to relate to each PMT to the renewal of PMT.
The 5th step, search and encrypt audio frequency and video packet, according to the audio frequency and video pid information of record, the audio frequency and video packet of whole file is searched and encrypts.At first, judge the attribute of packet, if PMT upgrades its data content, and the packet of interspersed band DRM information; Be audio, video data, encrypt and (can carry out part and encrypt or all encrypt as the case may be; Increase to encrypt requirement, as the length restriction of load etc.), and the scrambling sign position in the change packet header; The packet of other attributes does not change data in this way, directly reads and judges next packet.
Above method is applicable to the encryption of the data of TS form based on packet.Because encapsulated DRM information in the file, terminal can be resolved according to corresponding rule, thereby reaches the final purpose of digital copyright protecting.

Claims (6)

1. encryption method at transfer stream file may further comprise the steps:
A. transfer stream file is analyzed, sought and parsing program source contingency table, obtain the identifier of the bag of program source mapping table correspondence;
B. according to the MPEG2 standard criterion, encapsulate packing DRM information;
C. according to certain all period interval, in transfer stream file, embed described DRM information;
D. upgrade program source mapping table data.
2. a kind of encryption method at transfer stream file according to claim 1 is characterized in that, also comprises step:
E. according to the identifier of the bag that obtains among the step a, to the audio frequency and video packet encryption.
3. a kind of encryption method at transfer stream file according to claim 2 is characterized in that, among the step e, the audio frequency and video bag is carried out part encrypt.
4. a kind of encryption method at transfer stream file according to claim 2 is characterized in that, among the step e, the audio frequency and video bag is all encrypted.
5. a kind of encryption method at transfer stream file according to claim 1 is characterized in that, in the steps d, described renewal program source mapping table data are meant: identifier, data type and the related description information of adding the bag of load DRM information; Change load length mark; Upgrade the CRC32 check value.
6. according to the described a kind of encryption method of above-mentioned any claim, it is characterized in that, among the step c, after each program source mapping table, embed DRM information at transfer stream file.
CNA2007102030105A 2007-12-12 2007-12-12 An encryption method for transfer stream file Pending CN101188750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007102030105A CN101188750A (en) 2007-12-12 2007-12-12 An encryption method for transfer stream file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007102030105A CN101188750A (en) 2007-12-12 2007-12-12 An encryption method for transfer stream file

Publications (1)

Publication Number Publication Date
CN101188750A true CN101188750A (en) 2008-05-28

Family

ID=39480900

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007102030105A Pending CN101188750A (en) 2007-12-12 2007-12-12 An encryption method for transfer stream file

Country Status (1)

Country Link
CN (1) CN101188750A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254127A (en) * 2011-08-11 2011-11-23 华为技术有限公司 Method, device and system for encrypting and decrypting files
CN102595197A (en) * 2012-01-19 2012-07-18 北京数码视讯软件技术发展有限公司 Transfer system protection method and device
CN103155454A (en) * 2010-05-19 2013-06-12 弗兰霍菲尔运输应用研究公司 Transport stream provider, dab signal provider, transport stream analyzer, dab receiver, method, computer program and transport stream signal
CN106454408A (en) * 2016-10-20 2017-02-22 天脉聚源(北京)传媒科技有限公司 Method, device and system for realizing safe transmission of video streams

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103155454A (en) * 2010-05-19 2013-06-12 弗兰霍菲尔运输应用研究公司 Transport stream provider, dab signal provider, transport stream analyzer, dab receiver, method, computer program and transport stream signal
US9307287B2 (en) 2010-05-19 2016-04-05 Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. Transport-stream provider, DAB signal provider, transport stream analyzer, DAB receiver, method, computer program, and transport stream signal
CN103155454B (en) * 2010-05-19 2017-04-26 弗劳恩霍夫应用研究促进协会 Digital multimedia broadcast with valid data transmission for restricting access in transmission stream packet including program association table (PAT)
US9986287B2 (en) 2010-05-19 2018-05-29 Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. Transport stream provider, DAB signal provider, transport stream analyzer, DAB receiver, method, computer program, and transport stream signal
CN102254127A (en) * 2011-08-11 2011-11-23 华为技术有限公司 Method, device and system for encrypting and decrypting files
CN102595197A (en) * 2012-01-19 2012-07-18 北京数码视讯软件技术发展有限公司 Transfer system protection method and device
CN102595197B (en) * 2012-01-19 2014-10-01 北京数码视讯软件技术发展有限公司 Transfer system protection method and device
CN106454408A (en) * 2016-10-20 2017-02-22 天脉聚源(北京)传媒科技有限公司 Method, device and system for realizing safe transmission of video streams

Similar Documents

Publication Publication Date Title
JP7015617B2 (en) Content transmission / reception method and equipment
US8565583B2 (en) Content transmission/reception system
US7874003B2 (en) Information processing apparatus, information recording medium, information processing method, and computer program
CN100353450C (en) Processing method of multi-media data
CN103155454B (en) Digital multimedia broadcast with valid data transmission for restricting access in transmission stream packet including program association table (PAT)
KR101920439B1 (en) Apparatus and method for sending encrypted data to a conditional access module over a common interface, Conditional access module, and System thereof
EP2380307A1 (en) Multiple content protection systems in a file
KR20060116255A (en) Storage of content-location information
US20110154504A1 (en) Management server device, content reproduction device, and recording medium
CN101243687A (en) Protecting elementary stream content
CN101842786A (en) Fast and editing-friendly sample association method for multimedia file formats
CN102160071A (en) Technique for content management using group rights
CN101212267A (en) FTP service data based method, system, and device for broadcast system
CN102474588B (en) Transmission control device, receiving control device, sending control method, acceptance control method
JP6798585B2 (en) Transmitter, transmitter and receiver
EP2628120B1 (en) Compression and decompression technique for DRM license information delivery
CN105915493A (en) Audio and video real-time transmission method and device and audio and video real-time playing method and device
CN101188750A (en) An encryption method for transfer stream file
CN103546765A (en) Transport stream packaging method, transport stream, and analysis method of transport stream
CN109660866A (en) A kind of decryption of video method based on H5
CN101980238B (en) Method for encrypting RM/RMVB file
WO2018190122A1 (en) Information processing device, information processing method, and program
KR20080028673A (en) Apparatus and method of packaging/unpackaging h.264 movie file streamed or downloaded
CN101184223A (en) Method for encrypting WMA/WMV/ASF/ASX files
CN110679143A (en) Information processing apparatus, information recording medium, information processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080528