CN108600832A - A method of TS streams are decrypted - Google Patents

A method of TS streams are decrypted Download PDF

Info

Publication number
CN108600832A
CN108600832A CN201810469172.1A CN201810469172A CN108600832A CN 108600832 A CN108600832 A CN 108600832A CN 201810469172 A CN201810469172 A CN 201810469172A CN 108600832 A CN108600832 A CN 108600832A
Authority
CN
China
Prior art keywords
data packets
streams
way
decrypted
queue
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
CN201810469172.1A
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201810469172.1A priority Critical patent/CN108600832A/en
Publication of CN108600832A publication Critical patent/CN108600832A/en
Priority to PCT/CN2019/087205 priority patent/WO2019219056A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • H04N21/43853Multiplex stream processing, e.g. multiplex stream decrypting involving multiplex stream decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4382Demodulation or channel decoding, e.g. QPSK demodulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention discloses a kind of method that TS streams are decrypted, and is related to Digital object identifier field, and feature is that two-way TS streams are decrypted using a CI card, realizes that two-way TS flows the broadcasting or recording of corresponding multimedia programming.It the treating method comprises:Get first via TS streams and the second road TS streams;Label is distinguished to coming from the first kind TS data packets of first via TS streams and coming from the second class TS data packets in the second road TS streams;Using a CI card, first kind TS data packets are decrypted in some periods, the second class TS data packets are decrypted in other periods;According to the rule of the separator, to after decryption first kind TS data packets and the second class TS data packets distinguish for forming the output of two-way program.

Description

A method of TS streams are decrypted
Technical field
The present invention relates to Digital object identifier field more particularly to a kind of TS method for stream processing and device.
Background technology
MPEG-2 (compression standard based on digital storage media moving image and voice) is ISO/IEC/JTC1/SC29/ The Standard of image compression that WG11 is formulated, it is to adapt to the generation of digital television program, editor, storage, transmission and display Composite request and research and develop, be widely used in digital television broadcasting and DVD.Currently, multimedia programming such as TV programme are substantially all It compressed, be packaged using Moving Picture Experts Group-2, form TS streams (Transport Stream, transport stream), TS streams are compiled by channel It is sent in channel, is transmitted after code and modulation.
When user watches multimedia programming, digital television is flowed according to the corresponding TS of the selected multimedia programming of user PID (Package Identification, packet identification code) is extracted from numerous TS streams corresponding to the selected more matchmakers of user Body segment purpose TS streams, and the programme content in TS streams is decrypted, programme content after decrypted can then play, for Family is watched.
With the development of digital multimedia, user (is broadcasting while watching multimedia programming to playing recording function Another way multimedia programming is recorded while putting multimedia programming all the way), picture-in-picture function (i.e. while the broadcasting at least more matchmakers of two-way Body segment mesh) etc. demand also gradually increase, when user proposes to play recording function or/and when picture-in-picture function, digital television It then needs the TS for extracting two-way multimedia programming to flow, and the programme content in two-way TS streams is decrypted, however, existing number Word television set can only be decrypted TS streams all the way in the same period, realize that TS flows the broadcasting of corresponding multimedia programming all the way Or record, and cannot use a CI card that two-way TS streams are decrypted respectively simultaneously, and then can not achieve two-way TS stream difference The broadcasting or recording of corresponding multimedia programming.
Invention content
The purpose of the present invention is to provide a kind of TS method for stream processing and devices, real for two-way TS streams to be decrypted Existing two-way TS flows the broadcasting or recording of corresponding multimedia programming.
To achieve the goals above, in a first aspect, the present invention provides a kind of decryption method for two-way TS streams, this method Including:
Get first via TS streams and the second road TS streams;
To coming from the first kind TS data packets of first via TS streams and coming from the second class TS data in the second road TS streams Packet distinguishes label;
Using a CI card, first kind TS data packets are decrypted in some periods, the second class TS numbers are decrypted in other periods According to packet;
According to the rule of the separator, to after decryption first kind TS data packets and the second class TS data packets carry out area Divide for forming the output of two-way program.
In the prior art, in order to realize that two-way TS flows the broadcasting or/and recording of corresponding multimedia programming, usually Two decryption cards (CI cards) are set in digital television, and target TS streams all the way are decrypted in each decryption unit.And it incite somebody to action this When the two-way TS stream decryption methods that inventive embodiments provide are applied to digital television, due to the two-way TS streams for exporting decoder In TS data packets distinguish label, and the TS data packets of separator are all sent to a CI card for decryption, into And further according to the rule of separator after a CI card is to TS packet decryptions, to the TS data packets of the separator after decryption It is redistricted to form the output of two-way program.It is equivalent to and two-way TS is flowed in a time multiplexed manner using a CI card It is decrypted, two-way TS streams is decrypted and is saved to which a CI card be omitted compared with prior art and can equally ensure Mesh exports;The structure that digital television can be simplified using technical solution of the present invention reduces the cost of digital television.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and constitutes the part of the present invention, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is TS flow data format description schematic diagrames;
Fig. 2 is a kind of schematic diagram that TS provided by the embodiments of the present application flows decryption hardware connection;
Fig. 3 is another schematic diagram that TS provided by the embodiments of the present application flows decryption hardware connection;
Fig. 4 is the step schematic diagram that two-way TS flows decryption method in the embodiment of the present application.
Specific implementation mode
The TS method for stream processing and digital television that embodiment provides in order to further illustrate the present invention, with reference to explanation Book attached drawing is described in detail.
In the prior art, when multiple decoders export encrypted two-way TS streams respectively, two CI cards of setting is needed to distinguish Different encrypted two-way TS is flowed;And scheme provided by the present application, a CI card can only be used only to encrypted two-way TS Stream is decrypted, and after decryption distinguishes the TS data after decryption to form two-way program.
First, a simple introduction is carried out to TS streams.What TS streaming digital TV set-top boxes received is a section code Stream, each TS stream carry some information, such as Video, Audio and we need PAT, PMT information learnt.
For the composition of TS streams as shown in Figure 1, TS streams are the bit stream formats based on packet (data packet), each packet is 188 bytes, (or 204 bytes, the CRC check data of 16 bytes are added after 188 bytes, extended formatting is the same).
Whole TS stream composition forms are as shown in Figure 1, wherein Packet Header (packet header) information explanation is as shown in table 1:
Table 1
Wherein, sync id is the transmission identifier under MPEG-2TS transmission standards, and it typically is fixed value 0x47;
Pid information is the unique mark in TS streams, and the content of data packet is determined by it during TS flows, for example, an if TS PID is 0x0000 in the header packet information of packet in stream, then the data of this packet are exactly the pat table in DVB.
The hardware frame figure of the application digital television is as shown in Figure 2.
The television set includes demodulator, memory module, CI cards and SOC chip;Wherein, the input terminal of memory module respectively with The output end of demodulator connects, and the output end of memory module is connect with the input terminal of CI cards, the output ends of CI cards and SOC chip Input terminal connects, and the control terminal of CI cards is connect by CMD interfaces with SOC chip.
It is input to memory module after the encrypted TS streams of two-way are decoded by Demond (decoder), in the memory module to coming Label is distinguished respectively from the TS data packets in two-way TS stream, and then by the TS data packets after separator, it can be according to The time sequencing of first in first out, and CI cards are sent to based on certain transmission rate, CI cards are right according to its preset decryption rule The TS data packets sent are decrypted, and the TS data packets after decryption are sent back memory module after decryption, in memory module The middle rule according to separator redistricts out the TS data packets for coming from two-way TS streams, that is, reverts to two original ways According to, then carry out it is subsequent processing with formed two-way program output.
Further, information exchange is carried out by IIC control protocols between each chip, specifically, SOC chip passes through IIC controls Demond (demodulator), and the channel that the data format and needs that setting output TS flows demodulate, Demond is controlled by IIC Tuner processed carries out the selection of channel, and the frequency point of Demond demands is transmitted to Demond by IF/IQ signals and demodulated by Tuner; Encrypted TS streams (TS1 and TS2 in such as figure) after demodulation are sent to memory module by Demond, and memory module will receive TS data packets in TS1 and TS2 distinguish label, and CI cards are sent to the new data stream that the TS data packets of separator are formed In, CI cards are again decrypted the TS data packets of separator, and the TS data packets after decryption are added according to separator rule It plays out or/and records to distinguish and be formed two-way program.
Further IF is intermediate-freuqncy signal, and IQ is baseband signal, and DVB-S2 is satellite-signal, and DVB-T2 believes for terrestrial broadcasting Number, DVB-C is wire signal, and tuner is sent for receiving above-mentioned DVB-S2, DVB-T2/C signal, and by the signal received It is demodulated to Demond.
It should be noted that as shown in Figures 2 and 3, which can be individual module, can also be built into In SOC chip, function is similar with effect, does not do excessive repeat herein.
Referring to Fig. 4, TS method for stream processing provided in an embodiment of the present invention includes:
Step S1, label is distinguished to the TS data packets in the two-way TS streams of acquisition.
For example, it is illustrated by taking DTV as an example, TV programme are compressed at present, the TS that is packed into stream is usual After channel is encoded and modulated, formation radiofrequency signal, which is sent in channel, to be transmitted, and is believed at this point, received signal is then radio frequency Number, each radiofrequency signal corresponds to TS all the way and flows, per road TS again including at least corresponding single-unit mesh TS streams of TV programme all the way in stream, Corresponding PID is all had per the corresponding single-unit mesh TS streams of road TV programme.In reality, when receiving multiple programme signals, often A programme signal corresponds to TS all the way and flows, and user may have while watch program and record the demand of another way program at this time, this is just It needs that two-way TS streams are decrypted simultaneously.Data packet in order to come from the TS not gone the same way streams after decrypting carries out effectively It distinguishes, needs that the TS data packets in TS streams of not going the same way are distinguished label before decryption.
Illustratively, the sync id in the header packet information of TS data packets can be changed.Intrinsic sync id is 0x47, can Sync id in being flowed respectively to different TS in TS packet header information does different changes.For example, the TS during TS flows all the way Data packet, sync id can be changed to 0x48 in header packet information;Another way can then be changed to 0x49.
For the sake of facilitating narration, the TS data packets for coming from wherein all the way TS streams can also be known as first kind TS data by us The TS data packets for coming from another way TS streams are known as the second class TS data packets by packet.
Step S2:The first kind TS data packets and the second class TS data packets of label will be distinguished, with serial side Formula is sent to a CI card;The CI cards are successively decrypted the data packet received;That is, the CI cards are at some Duan Xiemi first kind TS data packets decrypt the second class TS data packets in other periods;
A kind of particular situation is:The first kind TS data packets for having distinguished label are placed into first, The the second class TS data packets for distinguishing label are placed into second queue, are handed over from the first queue and the second queue It is decrypted for taking a TS data packet to be sent to one CI cards.It is time division multiplexing that the CI cards, which can be simply interpreted as,.
Due to demodulation speed of TS streams etc., it is possible that temporary TS flows discontinuous situation, this may result in First queue or second queue do not have TS data packets temporarily;For synchronous needs, if take TS data packets, the first queue Or the state of the second queue at that time is exactly sky, then adds to this empty first queue or the second queue at this time Add an empty packet with separator;Sky packet is after decryption without content.
Step S3:According to the rule of the separator, to the first kind TS data packets and the second class TS data after decryption Packet distinguishes to form the output of two-way program.
That is, according to the rule of the separator, to after decryption first kind TS data packets and the second class TS data packets into Row is distinguished, and is reverted to original two-way TS streams, is carried out subsequent processing and form the output of two-way program.This two-way program can be distinguished For living broadcast of programs and performance recording.
Specifically, SOC chip receives the TS data packets after the decryption of CI cards transmission, according to the distinguishing rule of TS data packets, To after decryption first kind TS data packets and the second class TS data packets distinguish, with formed two-way program output.Illustratively, if The sync id in change header packet information is taken, then is arranged in the TS packets in chronological order of identical sync id all the way Data flow forms program all the way.If for example, the two-way TS stream inputted before, sync id is more in packet header information all the way It is changed to 0x48, another way is changed to 0x49, then after decryption can re-form the TS data packets that sync id is 0x48 all the way Data flow exports, and the TS data packets that sync id is 0x49 are re-formed the output of another way data flow.
In two-way TS provided in an embodiment of the present invention flows decryption method, according to multimedia section needed for the two-way of user's selection Mesh obtains the corresponding TS streams of each multimedia programming respectively, to carrying out area respectively per TS data packets all the way in two-way TS streams Minute mark is remembered, to be distinguished to two-way TS streams;In turn, the TS data packets after separator are sent to a CI card, it should CI is stuck in the different periods and the TS data packets that different instructions mark is decrypted respectively;Finally, which will be after decryption TS data packets are split as multiple data flows to form corresponding two-way program again according to preset separator rule, for User meets while the function of viewing and recording different multimedia program, increases experience and the demand of user.
In compared with the prior art, in order to realize that two-way TS flows the broadcasting or/and recording of corresponding multimedia programming, Multiple decryption cards (CI cards) are usually set in digital television, and target TS streams all the way are decrypted in each decryption unit.And When two-way TS provided in an embodiment of the present invention stream decryption methods are applied to digital television, due to the two-way for exporting decoder The two class TS data packets that TS streams separately include are mixed and are separated after using the decryption of CI cards, therefore need to only be set in digital television It sets a CI card and achieves that and decryption is carried out at the same time to two-way TS streams, so as to simplify the structure of digital television, reduce number The cost of word television set.
In the description of the above embodiment, particular features, structures, materials, or characteristics can be at any one or more It can be combined in any suitable manner in a embodiment or example.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (3)

1. a kind of method that TS streams are decrypted, it is characterised in that include the following steps:
Get first via TS streams and the second road TS streams;
To come from the first kind TS data packets of first via TS stream and come from the second class TS data packets in the second road TS streams into Row separator;
Using a CI card, first kind TS data packets are decrypted in some periods, the second class TS data packets are decrypted in other periods;
The first kind TS data packets for having distinguished label are placed into first queue, have distinguished the described of label Second class TS data packets are placed into second queue, and a TS data packets hair is alternately taken from the first queue and the second queue One CI cards are given to be decrypted;
If take TS data packets, the first queue or the second queue are sky, then to the empty first queue or described Second queue adds an empty packet with separator;
According to the rule of the separator, to after decryption first kind TS data packets and the second class TS data packets distinguish with It is used to form the output of two-way program.
2. a kind of method that TS streams are decrypted according to claim 1, it is characterised in that the two-way program output In, wherein being used for living broadcast of programs all the way, another way is used for performance recording.
3. a kind of method that TS streams are decrypted according to claim 2, it is characterised in that the separator is specific For:Sync id in the header packet information of TS data packets during wherein all the way TS is flowed is changed to 0x48, the TS in another way TS streams Sync id in the header packet information of data packet is changed to 0x49.
CN201810469172.1A 2018-05-16 2018-05-16 A method of TS streams are decrypted Pending CN108600832A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810469172.1A CN108600832A (en) 2018-05-16 2018-05-16 A method of TS streams are decrypted
PCT/CN2019/087205 WO2019219056A1 (en) 2018-05-16 2019-05-16 Ts processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810469172.1A CN108600832A (en) 2018-05-16 2018-05-16 A method of TS streams are decrypted

Publications (1)

Publication Number Publication Date
CN108600832A true CN108600832A (en) 2018-09-28

Family

ID=63631472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810469172.1A Pending CN108600832A (en) 2018-05-16 2018-05-16 A method of TS streams are decrypted

Country Status (1)

Country Link
CN (1) CN108600832A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019219056A1 (en) * 2018-05-16 2019-11-21 青岛海信电器股份有限公司 Ts processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001043444A2 (en) * 1999-12-13 2001-06-14 Scientific-Atlanta, Inc. Method of identifying multiple digital streams within a multiplexed signal
CN1543216A (en) * 2003-03-26 2004-11-03 Common interface controller and method of descrambling transport stream channels
CN1684524A (en) * 2005-03-16 2005-10-19 西安电子科技大学 Multiple channel complex method for MPEG-2 single programme transmission
CN103763579A (en) * 2014-01-22 2014-04-30 深圳国微技术有限公司 Method for recognizing multichannel transmission streams based on USB interface
CN103875230A (en) * 2011-10-07 2014-06-18 晶像股份有限公司 Identification and handling of data streams using coded preambles

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001043444A2 (en) * 1999-12-13 2001-06-14 Scientific-Atlanta, Inc. Method of identifying multiple digital streams within a multiplexed signal
CN1543216A (en) * 2003-03-26 2004-11-03 Common interface controller and method of descrambling transport stream channels
CN1684524A (en) * 2005-03-16 2005-10-19 西安电子科技大学 Multiple channel complex method for MPEG-2 single programme transmission
CN103875230A (en) * 2011-10-07 2014-06-18 晶像股份有限公司 Identification and handling of data streams using coded preambles
CN103763579A (en) * 2014-01-22 2014-04-30 深圳国微技术有限公司 Method for recognizing multichannel transmission streams based on USB interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019219056A1 (en) * 2018-05-16 2019-11-21 青岛海信电器股份有限公司 Ts processing method and device

Similar Documents

Publication Publication Date Title
CN1210948C (en) Formation of performance specific information processed by digital data
CN100358345C (en) Block data form for digital data storage medium
CN1294741C (en) Process for digital data and performance guide information
CN1166179C (en) Decoding to digital data containing performance specific information
US7359620B2 (en) Information transmitting method, information processing method and apparatus, and information recording and reproducing method and apparatus
CN1698376B (en) Content delivery system, content delivery apparatus, content recording/playback apparatus, content recording/playback method
US20090228928A1 (en) Method of receiving broadcast signals and apparatus for receiving broadcast signals
KR100993977B1 (en) Data processing device and method, and digital broadcast receiver
CN101416483A (en) Transport stream dejittering
KR20130029369A (en) Method and apparatus for processing non-real-time broadcast service and content transmitted by broadcast signal
JP3435398B2 (en) Content distribution method and content data recording / reproducing method and apparatus
US7865064B2 (en) Recording/output apparatus and recording/output method
US7908639B2 (en) Information transfer apparatus and method, information processing apparatus and method, and information processing system
CN108551590A (en) TS method for stream processing and device are received for broadcast receiver
CN108600832A (en) A method of TS streams are decrypted
CN108429928A (en) A method of TS streams are decrypted
CN108712679A (en) A kind of broadcast receiver
CN108650548A (en) A method of TS streams are decrypted
US6654809B1 (en) Data processing device
US20070165621A1 (en) System and method for transport PID broadcast scheme
JPH11224462A (en) Broadcast signal recording method and device
JP4649900B2 (en) Program display device
KR100760105B1 (en) Method for offering and displaying subtitle news of digital broadcasting
US7206502B2 (en) Apparatus and method for recording and reproducing digital data
JP2002125179A (en) Network storage device and storage method

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
CB02 Change of applicant information

Address after: 266000, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20180928

RJ01 Rejection of invention patent application after publication