CN108551590A - TS method for stream processing and device are received for broadcast receiver - Google Patents

TS method for stream processing and device are received for broadcast receiver Download PDF

Info

Publication number
CN108551590A
CN108551590A CN201810471962.3A CN201810471962A CN108551590A CN 108551590 A CN108551590 A CN 108551590A CN 201810471962 A CN201810471962 A CN 201810471962A CN 108551590 A CN108551590 A CN 108551590A
Authority
CN
China
Prior art keywords
data packets
streams
decryption
distinguishing identifier
data
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
CN201810471962.3A
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 CN201810471962.3A priority Critical patent/CN108551590A/en
Publication of CN108551590A publication Critical patent/CN108551590A/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 MPEG 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 MPEG packets from an IP network
    • H04N21/4382Demodulation or channel decoding, e.g. QPSK demodulation

Abstract

The present invention discloses a kind of TS method for stream processing and device, is related to Digital object identifier field, for multichannel TS streams to be decrypted, realizes that multichannel TS flows the broadcasting or recording of corresponding multimedia programming.The TS method for stream processing includes:Signal is received, and original TS is generated according to the signal received and is flowed;According to the PID of the corresponding TS streams of each required multimedia programming, the extraction target TS streams from original TS streams;The packet header for redefining target TS streams forms the TS data packets of corresponding distinguishing identifier, and is the TS data packets of distinguishing identifier all the way by the TS packet combinings of distinguishing identifier, wherein the packet header of the TS data packets of each distinguishing identifier is all different;The TS data packets of distinguishing identifier are decrypted;According to the packet header of the TS data packets of distinguishing identifier, the TS data packets of the distinguishing identifier in the TS data packets of distinguishing identifier are shunted.

Description

TS method for stream processing and device are received for broadcast receiver
Technical field
The present invention relates to Digital object identifier fields, more particularly to a kind of broadcast receiver that is used for receive multichannel TS streams Decryption method 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 multimedia reception device is corresponded to according to the selected multimedia programming of user TS stream PID (Package Identification, packet identification code), from numerous TS stream in extract corresponding to selected by user The TS of the multimedia programming selected flows, and the programme content in being flowed to the TS is decrypted, and programme content after decrypted then can be with It plays, is watched for user.
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 multimedia Reception device then needs to extract the TS streams of multichannel multimedia programming, and the programme content in multichannel TS streams is decrypted, however, Existing digital multimedia reception device usually can only once be decrypted TS streams all the way, realize that TS flows corresponding more matchmakers all the way Body segment purpose is played or is recorded, and multichannel TS streams cannot be decrypted respectively, realizes that multichannel TS flows corresponding multimedia The broadcasting or recording of program.
Invention content
The purpose of the present invention is to provide a kind of TS method for stream processing and devices, real for multichannel TS streams to be decrypted Existing multichannel TS flows the broadcasting or recording of corresponding multimedia programming.
To achieve the goals above, the present invention provides a kind of decryption side receiving multichannel TS streams for broadcast receiver Method, this method include:
Mark is distinguished respectively to the TS data packets in the multichannel TS streams of acquisition, for identifying each TS data packets institute Which TS stream belonged to, in case the TS data packets after decryption can be Resealed by TS streams belonging to original;
The TS data packets of distinguishing identifier are sent to a decryption unit, the decryption unit is in timesharing to distinguishing identifier TS data packets are decrypted, and will decryption after TS data packet backs;
The TS data packets of passback are received, and according to the rule of the distinguishing identifier, TS data packets after the decryption are carried out It distinguishes to form multiplexed program.
In compared with the prior art, in order to realize that multichannel TS flows the broadcasting or/and recording of corresponding multimedia programming, Multiple decryption cards (decryption unit) are usually set in digital multimedia reception device, and each decryption unit flows target TS all the way It is decrypted.And multichannel TS provided in an embodiment of the present invention is flowed into decryption method, in being flowed due to each road TS for exporting decoder TS data packets distinguish mark, and the TS data packets of distinguishing identifier are constituted to data transmission stream new all the way, by the new number It is sent to the decryption unit for decryption according to transport stream, and then after decryption unit decryption, the distinguishing identifier after receiving and deciphering TS data packets, and according to distinguishing identifier rule, the TS data packets of the distinguishing identifier after decryption are distinguished to form multichannel Program.It, only need to be in digital multimedia reception device thus when the TS data packets in the road new data transmission stream are decrypted One decryption unit of middle setting achieves that the TS streams inputted to each road are carried out at the same time decryption, so as to simplify digital multimedia The structure of reception device reduces the cost of digital multimedia reception device.
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 of broadcast receiver provided by the embodiments of the present application;
Fig. 3 a are a kind of transmission schematic diagram of TS data packets in the embodiment of the present application two-way TS streams;
Fig. 3 b are that TS data packet another kinds transmit schematic diagram in the embodiment of the present application two-way TS streams;
Fig. 3 c are that TS packet combinings transmit schematic diagram in the embodiment of the present application two-way TS streams
Fig. 4 is another schematic diagram of broadcast receiver provided by the embodiments of the present application;
Fig. 5 is the third schematic diagram of broadcast receiver provided by the embodiments of the present application;
Fig. 6 is the step schematic diagram that multichannel TS flows decryption method in the embodiment of the present application;
Fig. 7 is that the transmission rate of the TS data packets of distinguishing identifier in the embodiment of the present application determines step schematic diagram;
Fig. 8 is that the first transmission rate of the TS data packets of distinguishing identifier in the embodiment of the present application determines schematic diagram;
Fig. 9 is that second of transmission rate of the TS data packets of distinguishing identifier in the embodiment of the present application determines schematic diagram;
Figure 10 is CI mode decision flow diagrams in the embodiment of the present application.
Specific implementation mode
The TS method for stream processing and digital multimedia reception device that embodiment provides in order to further illustrate the present invention, below It is described in detail in conjunction with Figure of description.
Embodiment 1
In the prior art, it when multiple decoders export encrypted multichannel TS streams respectively, needs that multiple decryption units are arranged (such as CI cards) respectively flows different encrypted multichannel TS;And scheme provided by the present application, a decryption can only be used only Encrypted multichannel TS streams are decrypted in unit, and after decryption distinguish the TS data after decryption to form multichannel section Mesh.
It in the embodiment of the present application, is illustrated with two-way TS streams, the case where multichannel TS stream is similar with two-way, does not do More repeats.
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-2 TS 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 broadcast receiver is as shown in Figure 2.
The multimedia reception device includes demodulator 10, storage unit 20, mark unit 30, TS streams reconfiguration unit 40, solution Close unit 50 and decoder 60;Wherein,
Demodulator 10 is multiple, and each demodulator 10 receives broadcast television signal for demodulating it, to form multichannel TS streams;
Storage unit 20, for storing the multichannel TS streams exported from multiple demodulators 10;
Unit 30 is identified, any road TS stream be respectively originated from for TS data packets in distinguishing identifier multichannel TS streams;
The TS data packets of the distinguishing identifier are decrypted decryption unit 50 respectively;
TS flows reconfiguration unit 40, for according to distinguishing identifier rule, the TS data packets after decryption to be belonged to from same TS The TS data packets of stream are re-packaged into TS streams all the way;
Decoder 60, the multichannel TS stream decodings for will Reseal are to form multiplexed program.
After the encrypted TS streams of multichannel are demodulated by demodulator 10, multichannel TS streams are input to storage unit 20, mark is single The TS data packets for the multichannel TS streams for being stored in storage unit 20 are distinguished mark by member 30, to determine the TS numbers in multichannel TS streams It is respectively originated from any road TS stream according to packet, and then by the TS data packets after distinguishing identifier, according to the time sequencing of first in first out, and is based on one Fixed transmission rate is sent to decryption unit 50, and decryption unit 50 is according to its preset decryption rule, to the TS after distinguishing identifier Stream decryption, and the TS data packets after decryption are sent to TS after decryption and flow reconfiguration unit 40, TS flows reconfiguration unit 40 according to area Minute mark knowledge distinguishes the TS data packets after decryption, and is re-packaged into all the way the TS data packets from same TS streams are belonged to TS flows, and final decoder 60 is decoded to form multiplexed program the TS data packets Resealed.
Further, as best shown in figures 3 a and 3b, it is only necessary to be flowed into TS all the way for middle decryption unit compared with the existing technology Road TS data packets directly can be sent to decryption unit and carry out real time decrypting by row decryption in real time;And in the present solution, due to one A TS data packet can only be decrypted in a decryption unit synchronization, as shown in Figure 3a, in t moment, a TS number of TS1 When reaching decryption unit simultaneously according to a TS data packets Packet2-1 of packet Packet1-1 and TS2, decryption unit cannot be simultaneously The data packet Packet1-1 and Packet2-1 that receive are decrypted;Or as shown in Figure 3b, at the t1 moment, decryption unit Data packet Packet1-1 is received, if at the t2 moment, decryption unit is connected to the TS data packet Packet2-1 of TS2 again, at this point, To TS data packet Packet1-1 processing, decryption unit can not receive data packet Packet2-1 decryption unit And handle, then the processing conflict between the data packet will necessarily be caused, leads to partial data packet loss or can not decrypt, in turn The integrality for influencing TS flow datas influences user's viewing or recording TV program.
Therefore, for avoid different TS stream data packet conflict, and then the loss of TS data packets is avoided, in 10 He of demodulator Increase storage unit 20 between decryption unit 50, the TS data packets that storage unit 20 flows the multichannel TS received are by receiving time Sequential storage simultaneously sorts, and then the TS data packets of storage are sent to by the sequence of storage and identify unit 30 and to the TS data packets Mark is distinguished, and then is avoided due to the time conflict problem in TS data packets transmission in TS streams of not going the same way.
It should be noted that when two TS data packets reach storage unit 20 simultaneously just, then two TS data packets For two data packets of adjacent storage, but stores and do not require successively.Person of ordinary skill in the field can also take other Judgment mechanism pair is in this case, the storage order of two TS data packets is made stipulations.
Further, illustrative as described in Fig. 3 c, the TS data packets of multichannel TS streams are by the TS data for receiving sequential storage Packet constitutes data flow new all the way, and then is sent to decryption unit after the data flow is identified and is decrypted.Illustratively, As shown in Figure 3c, decryption unit is according to distinguishing identifier, in the data flow that newly constitutes, to from the Packet1- with the streams of TS all the way 1, the data packets such as Packet1-2, Packet1-3 are decrypted by same decryption rule;To what is flowed from another way TS Packet2-1, Packet2-2, Packet2-3 are decrypted according to another kind decryption rule.
Correspondingly, when the TS data packets in multichannel TS streams reconstitute new data stream all the way, the new data stream is corresponding Transmission rate needs do corresponding adjustment and variation, and the adjustment and variation can provide in the following to be illustrated and example, Excessive description is not done herein.
Further, mark unit 30 is specifically used for:The sync id in the header packet information of TS data packets is changed, change is made It is identical with the sync id of TS data packets of the streams of TS all the way afterwards.Intrinsic sync id is 0x47, in being flowed respectively to different TS Sync id in TS packet header information does different changes.By taking two-way as an example, the TS data packets in TS streams, are wrapped all the way Sync id can be changed to 0x48 in header;Another way can then be changed to 0x49.
Corresponding, TS reconfiguration units 40 are specifically used for:TS data packets after decrypting are identified according to the sync id after change It is flowed from which TS, and the sync id of TS data packets after all decryption is changed to former sync id, and then after decryption After TS data packets are changed to former sync id, TS streams all the way will be re-packaged into from the TS data packets with the streams of TS all the way.
Specifically, under existing protocol, decoder is only capable of the TS data packets that identification sync id is eigenvalue 0x47, to change Sync id is that the TS data packets of 0x48 and 0x49 do not identify afterwards.Therefore, 40 receiving and deciphering unit 50 of TS reconfiguration units is sent out TS data packets after the decryption sent, according to the distinguishing rule (sync id after changing of TS data packets:Such as 0x48,0x49 Deng), the TS data packets of distinguishing identifier after decryption are distinguished, and by the sync id of TS data packets (such as 0x48,0x49) It is changed to original sync id (0x47), intrinsic consensus standard can be met and is exported into decoder 60, it is more to be formed Road program.
Further, the channel with mutual transfer data information between unit 30 and TS stream reconfiguration units 40 is identified, with So that TS is flowed the distinguishing rule that reconfiguration unit 40 obtains TS data packets from mark unit 30, and according to the distinguishing rule, knows Not Xie Mi after TS data packets be respectively originated from which TS stream, and then Resealed the TS data packets that opisthogenesis is flowed from same TS are decrypted It is flowed for TS all the way.
Illustratively, as described above, when the sync id of TS1 data packets is changed to 0x48 by mark unit 30 by 0x47, The sync id of TS2 data packets is changed to 0x49 by 0x47;And then TS stream reconfiguration unit by information channel from mark unit The mark rule is obtained in 30, and the data packet that sync id in the TS data packets after decryption is 0x48 is changed to 0x47 and is laid equal stress on It newly is encapsulated as TS1, the data packet that sync id is 0x49 is changed to 0x47 and is re-packaged into TS2.
Further, as shown in figure 4, the function of storage unit 20, mark unit 30 and TS stream reconfiguration units 40 can be by one A integrated chip (i.e. TS data processing chips 70) is realized.
Further, above-mentioned multichannel TS streams are encrypted TS streams, the multimedia reception device that this programme provides, Neng Goushi Decryption unit TS streams encrypted to multichannel are now based on to carry out while decrypting.
It is worth mentioning, in the TS streams that demodulator 10 is generated according to the signal received, and TS streams in part are encryption TS Stream, when TS streams in part are non-encrypted TS streams, the scheme of the application remains unchanged and can the TS data packets in multichannel TS streams be distinguished mark Know, and then the TS data packets of distinguishing identifier are sent to decryption unit in chronological order, decryption unit has choosing according to distinguishing identifier The TS data packets decrypted to needs to selecting property are decrypted, and the TS data packets of distinguishing identifier again change its sync id after decryption For sync id intrinsic under existing standard agreement, to form multiplexed program.Obviously, judgement can also be increased before distinguishing identifier Module, and then judge whether the TS received streams are encryption stream, it is flowed if it is encryption, then distinguishes mark, it otherwise, directly will be non- Encryption TS streams are output in decoder, and this programme does not do this excessive restriction.
Further, information exchange is carried out by IIC control protocols between each chip, specifically, System on Chip/SoC passes through IIC controls demodulator 10, and the channel that the data format and needs that setting output TS flows demodulate, demodulator 10 is controlled by IIC Tuner carries out the selection of channel, and the frequency point of 10 demand of demodulator is transmitted to demodulator 10 by IF/IQ signals and solved by Tuner It adjusts;Encrypted TS streams (TS1 and TS2 in such as figure) after demodulation are sent to storage unit 20 by demodulator 10;And then System on Chip/SoC Mark unit 30 is controlled by IIC so that the TS data packets in TS1 and TS2 that mark unit 30 receives storage unit 20 Mark is distinguished, the new data stream (MS i.e. in Fig. 2 and Fig. 3 flows) formed with the TS data packets of distinguishing identifier is sent to decryption In unit 50, decryption unit 50 is again decrypted the TS data packets of distinguishing identifier, and by the TS data packets after decryption according to area Point mark rule, is distinguish and forms multiplexed program and play out or/and record.
Further, decryption unit 50 can be CI cards, and CI cards are also CAM cards, refer to one for the more matchmakers of number The module that body programme signal is decrypted, in a kind of existing widely used scheme, television operator is demodulated by licensing to CAM Device manufacturer, makes CAM manufacturers according to certain mode Reinforced turf, and encryption and decryption pattern pays to the encryption of operators issue Signal carries out descrambling scrambling, decryption encryption.Different operators distribution can be watched to realize that user replaces different CAM cards Payment signal.CI cards are that DTV card or high-grade set-top box are special, can be used for cable digital TV card, satellite digital TV Card.It can also be used for set-top box, the digital TV integrated machine etc. of separation between machine and card.
Further, decoder 60 is according to pid information in the header packet information of TS data packets, simultaneously by the TS streams decoding after decryption It is split as video data, audio data and other data.Illustratively, it is provided according to TS flow standard agreements, if some TS data The PID=45 of packet, then the TS data packets are video data;If the PID=78 of some TS data packet, which is audio Data;If the PID=69 of some TS data packet, this section of TS data are filling data.Decoder, which flows the TS after decryption, to be split For video data and audio data, to be respectively used to show and play.
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 demodulator 10.
Specifically, tuner receives signal (DVB-S2, DVB-T2/C), and the signal is sent out in a manner of IQ, IF signal Give demodulator 10, the multimedia that demodulator 10 is flowed according to the corresponding TS of the signal acquisition received, while being selected according to user The PID of TS streams corresponding to programme information, determines the TS data packets to be decrypted for needing to be sent to decryption unit 50;With demodulator The connected storage unit 20 of 10 output end receives the TS data packets, and by mark unit 30 to the TS in the multichannel TS streams of acquisition Data packet distinguishes mark respectively;The TS data packets for the distinguishing identifier that the reception of decryption unit 50 storage unit is sent, and The TS data packets of distinguishing identifier are decrypted respectively in different time sections;Further, decryption unit 50 will by output end The TS data packets of distinguishing identifier after decryption are sent to TS stream reconfiguration units 40, and TS stream reconfiguration units 40 are advised according to distinguishing identifier Then, the multichannel TS streams after decryption are distinguished and formed to the TS data packets of the distinguishing identifier after decryption, are sent to decoder 60 To form multiplexed program, the multiplexed program is for playing or/and recording.
Further, as shown in figure 5, storage unit, mark unit and TS stream reconfiguration units and decoder are integrated into system In chip SOC.System on Chip/SoC SOC includes function and the effect of above-mentioned each unit, specifically, when the encrypted TS streams of multichannel are by solving After adjusting device 10 to demodulate, multichannel TS streams are inputted and are stored in System on Chip/SoC SOC, System on Chip/SoC SOC flows multichannel TS TS data packets distinguish mark, to determine that the TS data packets in multichannel TS stream are respectively originated from which road TS flows, and then by distinguishing identifier TS data packets afterwards are sent to decryption unit 50 according to the time sequencing of first in first out, and based on certain transmission rate, decryption Unit 50 flows decryption, and the TS data packet backs after decryption are given according to its preset decryption rule to the TS after distinguishing identifier System on Chip/SoC SOC, System on Chip/SoC SOC distinguish the TS data packets after decryption according to distinguishing identifier, and are originated from together belonging to The TS data packets of one TS streams are re-packaged into TS streams all the way, are finally decoded the TS data packets Resealed to form multichannel Program.
Referring to Fig. 6, TS method for stream processing provided in an embodiment of the present invention includes:
Step S1, mark is distinguished respectively to the TS data packets in the multichannel TS streams of acquisition, for identifying each TS Which TS stream belonging to data packet, in case the TS data packets after decryption can be Resealed by TS streams belonging to original.
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 actual life, when receiving multiple programme signals When, each 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 just needs that two-way even multichannel TS streams are decrypted simultaneously.In order to can be in the corresponding TS streams of program that will be different after decrypting Data packet is efficiently differentiated, and needs that the TS data packets in TS streams of not going the same way are distinguished mark before decryption.Specifically Each TS data packet in the TS streams that receive is identified, belong to which TS flows with each TS data packets of determination, And then the TS data packets after decrypting can be Resealed according to TS streams affiliated before distinguishing identifier.
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.By taking two-way as an example, first via TS TS data packets in stream, sync id can be changed to 0x48 in header packet information;The synchronization of TS data packets in second road TS streams Mark can be changed to 0x49.After the TS data packets after distinguishing identifier are decrypted in decryption unit, according to sync id The TS data packets that sync id is 0x48 are re-packaged into first via TS streams, by the TS data that sync id is 0x49 by difference Packet is re-packaged into the second road TS streams.
Step S2:The TS data packets of distinguishing identifier are sent to a decryption unit, the decryption unit is in timesharing to distinguishing The TS data packets of mark are decrypted, and will decryption after TS data packet backs.
Majority TV is digital cable TV all-in-one machine at present, supports cable digital TV to receive, but current number has Line TV has encipherment protection, needs to decrypt using the specified decryption unit (i.e. digital television intelligent card) of local radio and television departments.
TS data packets after above-mentioned distinguishing identifier are sent in the decryption unit for decrypting program TS streams, the decryption list Member encrypted TS data packets can be decrypted respectively, in turn according to the preset decryption rule of radio and television departments or relevant manufactures TS data packets after decryption are sent in SOC chip, to form corresponding program.
Step S3:The TS data packets of passback are received, and according to the rule of distinguishing identifier, TS data packets after decryption are divided Class wrapper is to form multiplexed program.
Since under existing protocol, SOC chip is only capable of receiving and identifying the TS flow datas that sync id is eigenvalue 0x47, The TS data packets that sync id after change is 0x48 and 0x49 are not identified, and then SOC chip is also just difficult to export normally Program for user watch or/and record.Therefore, the TS data packets after the decryption that storage unit receiving and deciphering unit is sent, According to the distinguishing rule of TS data packets, the TS data packets after decryption are distinguish, meanwhile, which is changed to original Mark, specifically, when the TS data of distinguishing identifier are decrypted decryption unit and pass back to storage unit, storage unit root Rule is changed according to sync id and determines the original affiliated TS streams of TS data packets, by the original belonging TS data packets flowed with TS all the way It is encapsulated as TS streams all the way again, while restoring the sync id of TS streams before changing, i.e., (such as by the sync id of TS data packets 0x48,0x49 etc.) be changed to change before TS streams intrinsic sync id (0x47), intrinsic consensus standard and defeated can be met Go out into SOC chip, to form multiplexed program.It should be pointed out that it refers to TS under existing standard agreement that intrinsic sync id, which is, The sync id of the packet header information of stream is a fixed value 0x47.
Illustratively, if the sync id in change header packet information is taken, by the TS data packets of identical sync id It is sequentially arranged into data flow all the way, forms program all the way.If for example, input two-way TS streams, the data flow after decryption It can be split as two paths of data stream according to the difference of sync id;Wherein, the TS data of 0x48 are changed to for sync id all the way Packet, and then the sync id in the TS data packets of the road is changed to eigenvalue 0x47 again, to form the TS1 after decrypting;Another way It is changed to the TS data packets of 0x49 for sync id, and then the sync id in the TS data packets of the road is changed to eigenvalue again 0x47, to form the TS2 after decrypting;TS1 and TS2 after decrypting in turn are respectively formed corresponding program for playing or recording.
In multichannel TS provided in an embodiment of the present invention flows decryption method, according to multimedia section needed for the multichannel 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 multichannel TS streams Minute mark is known, to be distinguished to multichannel TS streams;In turn, the TS data packets after distinguishing identifier are sent to a decryption list Member, section is respectively decrypted the TS data packets of different instructions mark the decryption unit in different times;Finally, the decryption list For member by the TS data packets after decryption according to preset distinguishing identifier rule, it is corresponding more to be formed to be split as multiple data flows again Road program increases experience and the demand of user so that user meets while watching and recording the function of different multimedia program.Cause This, multichannel TS provided in an embodiment of the present invention flow decryption method in, will the TS that exported in decoder stream in include TS data Packet re-forms data flow new all the way sequentially in time, and then to the road, new data stream is transmitted to the solution for decrypting TS streams In close unit, and then the decryption flowed to multichannel TS using a decryption unit is realized, to realize that multichannel TS streams are corresponding The broadcasting or/and recording of multimedia programming.
In compared with the prior art, in order to realize that multichannel TS flows the broadcasting or/and recording of corresponding multimedia programming, Multiple decryption cards (decryption unit) are usually set in digital multimedia reception device, and each decryption unit flows target TS all the way It is decrypted.And multichannel TS provided in an embodiment of the present invention is flowed into decryption method, in being flowed due to each road TS for exporting decoder TS data packets distinguish mark, and the TS data packets of distinguishing identifier are constituted to data transmission stream new all the way, by the new number It is sent to the decryption unit for decryption according to transport stream, and then after decryption unit decryption, the distinguishing identifier after receiving and deciphering TS data packets, and according to distinguishing identifier rule, the TS data packets of the distinguishing identifier after decryption are distinguished to form multichannel Program.It, only need to be in digital multimedia reception device thus when the TS data packets in the road new data transmission stream are decrypted One decryption unit of middle setting achieves that the TS streams inputted to each road are carried out at the same time decryption, so as to simplify digital multimedia The structure of reception device reduces the cost of digital multimedia reception device.
Further, when user chooses the multimedia programming needed, then it can learn that required multimedia programming corresponds to respectively The PID of TS streams the TS data packets needed for decryption are obtained according to the PID of required multimedia programming corresponding TS stream. For example, the TS for input flows signal, multiple programs are likely corresponded to, such as TS streams correspond to CCTV1 and CCTV5 all the way;And User selects the program of viewing CCTV5, then the TS data packets in being flowed to TS according to the pid information corresponding to CCTV5 programs.
Below by taking two-way TS streams as an example, TS stream decryption methods provided by the embodiments of the present application of satisfying the need are described in detail. Assuming that the quantity that user chooses the multimedia programming needed is two (such as CCTV1 and CCTV2), this two different program difference Corresponding TS data packets are that TS-1 and TS-2, TS-1 and TS-2 are respectively provided with corresponding PID, then according to the PID of TS-1 and TS-2 PID, obtain TS-1 and TS-2 from TS streams, wherein TS-1 and TS-2 is likely located in same TS stream, and TS-1 and TS-2 also may be used It can be located in different TS streams.
Further, need the TS data packets decrypted after being extracted in TS streams by each, to each TS data packets packet The sync id of header is modified or redefines, and forms the TS data packets of distinguishing identifier, then by the TS of distinguishing identifier Packets in chronological order forms data flow new all the way.For example, the TS data decrypted are needed to be surrounded by two-way, respectively TS-1 and TS-2 is changed the sync id of TS-1, forms distinguishing identifier by TS-1 and TS-2 after TS streams extract respectively TS data packet TS-1 ', change the sync id of TS-2, form the TS data packet TS-2 ' of corresponding distinguishing identifier, then will distinguish The TS data packets TS-1 ' of the mark and TS data packets TS-2 ' of distinguishing identifier, which merges, forms data flow new all the way.It is worth mentioning It is that when being modified to the header packet information of TS data packets, the distinguishing rule followed can carry out according to actual needs, for example, Currently, the sync byte in the header packet information of TS streams is usually using 0x47 as starting, then, the sync id of change TS data packets When, formed distinguishing identifier after TS data packets when, then can by the sync id of the TS data packets after distinguishing identifier with 0x48, 0x49,0x50 ... are waited as beginning, wherein the sync id of the TS data packets after each distinguishing identifier is different.For example, It is illustrated so that TS data packets include two as an example, TS data packets are respectively TS-1 and TS-2, then the sync id of TS-1 can be with It is changed to 0x48, and the sync id of TS-2 can be changed to 0x49.It should be noted that more to the header packet informations of TS data packets When changing, only the sync id of TS data packet middle wrapping head information is modified or is redefined, and not changed in target TS streams Programme content PID.
Further, after the sync id of TS data packets being modified to distinguishing identifier, a decryption is sent it to Unit and when being decrypted, the sync id after can then being changed according to different TS data packets distinguishes it and solves It is close.When detect the sync id of TS data packets of certain distinguishing identifier using 0x48 as start when, show the TS numbers of current decryption It is that TS-1 ' is decrypted the programme content in TS-1 ' then according to the cipher mode of the programme content in TS-1 ' according to packet, when Detect that the sync id of the TS data packets of certain distinguishing identifier using 0x49 as when starting, shows that the TS data packets of current decryption are TS-2 ' is decrypted the programme content in TS-2 ' then according to the cipher mode of the programme content in TS-2 '.
After completing the decryption to the corresponding programme content of TS data packets, advised according to preset distinguishing identifier in step S2 Then, i.e., according to the sync id of the TS data packets of distinguishing identifier, it is split as multiple data flows again to form corresponding multichannel section Mesh.For example, it is illustrated by taking two-way TS streams as an example, two-way TS streams are respectively TS-1 and TS-2, change the packet of TS-1 respectively The sync id of sync id and TS-2 in header, to form TS the data packets TS-1 ' and TS-2 ' of corresponding distinguishing identifier When, the sync id of the TS data packets TS-1 ' of distinguishing identifier using 0x48 as starting, the TS data packets TS-2's ' of distinguishing identifier Sync id is using 0x49 as starting.To the TS of programme content and distinguishing identifier in the TS data packets TS-1 ' of distinguishing identifier After programme content in data packet TS-2 ' is decrypted respectively, TS the data packets TS-1 ' and TS-2 ' of distinguishing identifier are carried out with data Packet is that unit is split, and the sync id of TS the data packets TS-1 ' and TS-2 ' of the distinguishing identifier after fractionation are changed to admittedly again There is sync id i.e. 0x47, and then be sent to SOC chip to form corresponding program, broadcasting or recording further according to user need It is transmitted to corresponding unit.For example, when user needs TS the data packets TS-1 ' and TS-2 ' of distinguishing identifier to play out, then TS the data packets TS-1 ' and TS-2 ' of distinguishing identifier are transmitted to decoder, can be played out after decoded;When user needs The TS data packets TS-1 ' of distinguishing identifier is played and TS-2 ' when recording, then TS-1 ' is transmitted to decoder, is broadcast after decoded It puts, TS-2 ' is then recorded through OTG (OnTheGo) interface;When user needs TS the data packets TS-1 ' and TS-2 ' of distinguishing identifier When being recorded, then TS-1 ' and TS-2 ' is recorded through OTG (On The Go) interface.
Further, when distinguishing mark respectively to TS data packets, need the multichannel TS data packets that will be got according to In time sequencing storage to storage unit.In the TS stream decrypting processes of the prior art, since single decryption unit only needs pair TS streams are decrypted all the way, only need to ensure that the rate of decryption unit decryption is consistent with the transmission rate that TS flows at this time, i.e., The TS streams of transmission need not be stored, it can be achieved that TS streams decryption in real time.But for the multichannel TS decryption methods of the application and Speech due to the transmission rate per the streams of TS all the way in the multichannel TS streams of input and differs, and the different periods may also occur that Therefore variation is just difficult to ensure that the rate of the TS data packets of distinguishing identifier is a constant value, while this programme is also needed to TS The sync id of data packet middle wrapping head information is modified;Therefore it needs first first to store the data packet in the multichannel TS streams of input To a storage unit, and then change the sync id of TS data packets.
Further, " time sequencing " can be according to actually being set, for example, each multimedia can be selected according to user Chronological order when program is set, alternatively, can also be set according to the sequencing of the multichannel TS streams of acquisition, herein Excessive restriction is not done.Correspondingly, when the TS data packets of distinguishing identifier are sent to decryption unit, the principle based on first in, first out, According to the sequencing of each TS data packets in the memory unit, each TS data packets are extracted from storage unit successively, it is right The sync ids of each TS data packets is changed to form the TS data packets of corresponding distinguishing identifier, and by the TS data packets of distinguishing identifier It is sent to decryption unit successively.So design, can prevent entanglement occur when being merged to the TS data packets of distinguishing identifier.
Further, as shown in fig. 7, needs determine the transmission rate of the TS data packets of distinguishing identifier according to following steps, And then according to the transmission rate, the TS data packets of distinguishing identifier are transmitted to decryption unit and are decrypted.
Step S110, the sum of the transmission rate of parsing multichannel TS streams.
Specifically, it according to the PID of the corresponding TS streams of each required multimedia programming, is extracted from multichannel TS streams to be decrypted TS data packets, the roads Ze Ge TS stream in data packet to be decrypted transmission rate it was determined that in the synchronization to the TS data packets After mark change forms the TS data packets of distinguishing identifier, since the TS data packets of distinguishing identifier flow phase with corresponding and acquisition TS Than the sync id of only TS data packets differs, other all sames, thus parses the sum of the transmission rate of the multichannel TS streams obtained Afterwards, you can the sum of the transmission rate for learning the TS data packets of distinguishing identifier, so as to subsequently to the TS data packets of distinguishing identifier are sent out The transmission rate to decryption unit is sent to be configured.
Step S120, according to the sum of transmission rate of multichannel TS streams of acquisition, the serial parallel transmission mode of TS streams and/or area The serial parallel transmission mode for the TS data packets that minute mark is known, determines the transmission rate of the TS data packets of distinguishing identifier.
In the prior art, the TS data packets of distinguishing identifier are usually transmitted in a serial fashion, therefore, for being passed in this programme The setting of defeated rate can not consider the transmission mode of the TS data packets of distinguishing identifier, naturally it is also possible to consider, not limit herein It is fixed.
For convenience of description, simple signal is carried out so that the TS data packets of distinguishing identifier are transmitted in a serial fashion as an example below to say It is bright.
When the TS of acquisition streams are using serial transmission mode, the transmission rates of the TS data packets of distinguishing identifier numerically with The sum of the transmission rate of TS data packets to be decrypted obtained is identical;When the TS of acquisition streams are using parallel transmission mode, distinguish The transmission rate of the TS data packets of mark is numerically the sum of transmission rate of TS data packets to be decrypted obtained parallel Line sum is averaged.As an example it is assumed that getting two-way programme signal, two-way TS streams, the two-way TS of acquisition are corresponded to respectively Stream is respectively TS1 and TS2, wherein referring to Fig. 8, TS1 includes two single-unit mesh TS streams again, each single-unit mesh TS streams corresponding one Road multimedia programming, two single-unit mesh TS streams are respectively TS1-1 and TS1-2, and the transmission rate of single-unit mesh TS streams TS1-1 is The transmission rate of 12Mbps, single-unit mesh TS streams TS1-2 are 28Mbps, then the transmission rate of original TS streams TS1 is 40Mbps, TS2 Including three single-unit mesh TS streams, each corresponding multimedia programming all the way of single-unit mesh TS streams, three single-unit mesh TS streams are respectively TS2- 1, the transmission rate of TS2-2 and TS2-3, single-unit mesh TS streams TS2-1 are 10Mbps, and the transmission rate of single-unit mesh TS streams TS2-2 is The transmission rate of 14Mbps, single-unit mesh TS streams TS2-3 are 24Mbps, then the transmission rate of TS2 is 48Mbps.When user's selection When required multimedia programming is respectively single-unit mesh TS stream TS1-1 and single-unit mesh TS stream TS2-1, i.e. user's corresponding selection two-way mesh Mark TS streams, the sum of transmission rate of each TS that respectively TS1-1 and TS2-1 are parsed stream be then TS1-1 transmission rate with The sum of transmission rate of TS2-1, as 22Mbps.At this point, the sum of transmission rate of TS data packets of distinguishing identifier is also TS1-1 Transmission rate and TS2-1 the sum of transmission rate.When setting the transmission rate of TS data packets of distinguishing identifier, according to TS1- The serial parallel transmission mode of the sum of 1 and the transmission rate of TS2-1 and the TS streams obtained is set, i.e., when TS streams are using serial When transmission mode, the sum of transmission rate of each target TS stream is 22Mbps, i.e., the transmission rate of the TS data packets of distinguishing identifier it Also it is 22Mbps;At this point, the new data flow that the TS data packets of distinguishing identifier are formed needs the number of transmission each second 22Mbit According to therefore, the clock frequency of the TS data packets of distinguishing identifier is then set as 22MHz.Parallel transmission mode is used when TS flows, and simultaneously When line sum is 8, the sum of the transmission rate of TS streams is 22Mbps, i.e. the sum of the transmission rate of the TS data packets of distinguishing identifier Also it is 22Mbps;At this point, the TS data packets for the distinguishing identifier that the TS packet combinings of distinguishing identifier are formed are on every parallel line It is 2.75MHz to need the clock frequency of the TS data packets of distinguishing identifier.Correspondingly, when the other a variety of required multimedia sections of user's selection When mesh, the setting means of the clock frequency of the TS data packets of distinguishing identifier also uses aforesaid way to carry out.
Further, the determination of the transmission rate of the TS data packets of distinguishing identifier can be divided into following two modes.
In transmission rate method of determination one, first the sum of the transmission rate of the multichannel TS streams of acquisition is parsed, then According to the transmission rate of multichannel TS stream it, the serial parallel of the TS data packets of the serial parallel transmission mode of TS streams and/or distinguishing identifier Transmission mode sets the clock frequency of the TS data packets of distinguishing identifier.That is, in transmission rate method of determination one, area The clock frequency for the TS data packets that minute mark is known is set according to the sum of the transmission rate of the multichannel TS stream of acquisition, can prevent because The clock frequency set of the TS data packets of distinguishing identifier is too small and causes the TS data packets of distinguishing identifier that cannot completely pass in time It is defeated, while can prevent from causing digital multimedia to receive dress since the clock frequency set of the TS data packets of distinguishing identifier is too big Set the interior wasting of resources.
Transmission rate method of determination two, referring to Fig. 9, being sent out the TS data packets of distinguishing identifier based on fixed transmission rate It send to decryption unit, which is more than the transmission rate of multichannel TS stream and value.
Specifically, it is a relatively-stationary value by the clock frequency set of the TS data packets of distinguishing identifier, which is more than Or the sum of the transmission rate of the multichannel TS streams equal to acquisition, wherein the setting side of the clock frequency of the TS data packets of distinguishing identifier Formula can there are many, those skilled in the art can refer to the prior art and TS stream manner of decryption be changed, do not did herein It repeats more.
For example, can be according to the TS of the sum of the transmission rate of all single-unit mesh TS streams existing at present setting distinguishing identifier The clock frequency of data packet, it is assumed that all single-unit mesh TS streams existing at present include the TS obtained flow TS1-1 in TS1, TS2-1, TS2-2, TS2-3 in TS1-2 and TS streams TS2, wherein the transmission rate of single-unit mesh TS streams TS1-1 is 12Mbps, The transmission rate of single-unit mesh TS streams TS1-2 is 28Mbps, and the transmission rate of single-unit mesh TS streams TS2-1 is 10Mbps, single-unit mesh TS The transmission rate for flowing TS2-2 is 14Mbps, and the transmission rate of single-unit mesh TS streams TS2-3 is 24Mbps, and existing at present is all The sum of the transmission rate of single-unit mesh TS streams is then 88Mbps, when using serial transmission mode, the TS data packets of distinguishing identifier Clock frequency is numerically equal with the sum of the transmission rate of all single-unit mesh TS streams existing at present, then can set differentiation The clock frequency of the TS data packets of mark is 88MHz, when using parallel transmission mode, the clock of the TS data packets of distinguishing identifier Frequency is numerically average value of the sum of the transmission rate of all single-unit mesh TS streams existing at present to parallel line sum, it is assumed that When parallel line sum is 8, then the clock frequency of the TS data packets of distinguishing identifier can be set as 11MHz.Using this kind of mode The clock frequency of the TS data packets of distinguishing identifier is set, no matter which user selects plant multimedia programming, the TS numbers of distinguishing identifier Clock frequency according to packet is always the value.
Alternatively, the TS of distinguishing identifier can also be set according to the maximum capacity per the streams of TS all the way of defined in TS stream protocols The clock frequency of data packet, for example, it is assumed that the maximum capacity per the streams of TS all the way of defined is in TS stream protocols at present 108Mbps, when using serial transmission mode, then using the maximum capacity per the streams of TS all the way of defined in TS stream protocols as area The clock frequency for the TS data packets that minute mark is known, then set the clock frequency of the TS data packets of distinguishing identifier as 108MHz;Work as use When parallel transmission mode, the maximum capacity per the streams of TS all the way of defined in TS stream protocols makees the average value of parallel line sum For the clock frequency of the TS data packets of distinguishing identifier, such as assume that parallel line sum is 8, then sets the TS data packets of distinguishing identifier Clock frequency be 13.5MHz.The clock frequency of the TS data packets of distinguishing identifier is set using this kind of mode, no matter user selects Which kind multimedia programming, the clock frequency of the TS data packets of distinguishing identifier is always the value.
Alternatively, the TS data of distinguishing identifier can also be determined according to the quantity of the selected required multimedia programming of user The clock frequency of packet specifically first according to the transmission rate of all single-unit mesh TS streams existing at present, determines all single-unit mesh The maximum value of the sum of transmission rate of two single-unit mesh TS streams in TS streams, using the maximum value as the selected required more matchmakers of user The reference of the clock frequency of the TS data packets of setting distinguishing identifier when body segment purpose quantity is two.When using serial transmission mode When, when can be directly two using the maximum value as the quantity of the selected required multimedia programming of user, distinguishing identifier The clock frequency of TS data packets can make the average value of parallel line sum the maximum value when using parallel transmission mode When quantity for the selected required multimedia programming of user is two, the clock frequency of the TS data packets of distinguishing identifier.At this point, When the quantity of the selected required multimedia programming of user is two, the clock frequency of the TS data packets of distinguishing identifier is always The maximum value.Similarly, it according to the transmission rate of all single-unit mesh TS streams existing at present, determines three in all single-unit mesh TS streams The maximum value of the sum of the transmission rate of a single-unit mesh TS streams, using the maximum value as the selected required multimedia programming of user When quantity is three, the reference of the clock frequency of the TS data packets of distinguishing identifier is set, it, can be with when using serial transmission mode When being directly three using the maximum value as the quantity of the selected required multimedia programming of user, the TS data packets of distinguishing identifier Clock frequency;When using parallel transmission mode when, can using the maximum value to the average value of parallel line sum as user institute When the quantity of the required multimedia programming selected is three, the clock frequency of the TS data packets of distinguishing identifier, at this point, working as user institute When the quantity of the required multimedia programming selected is three, the clock frequency of the TS data packets of distinguishing identifier is always the maximum It is worth, in this way, the maximum value of the sum of transmission rate corresponding to the quantity for the required multimedia programming that successively may select user It calculates, the clock frequency of the TS data packets of distinguishing identifier is set with this.
It, will be to the packet header of the multichannel TS streams got after completing the setting to the clock frequency of the TS data packets of distinguishing identifier The TS data packets of the distinguishing identifier formed after sync id change in information form data flow new all the way and are sent to decryption list In member, the clock frequency of the TS data packets of the distinguishing identifier is the clock frequency set in above-mentioned steps, the distinguishing identifier Distinguishing identifier is the sync id after being changed in header packet information in TS data packets.
Further, it is a relatively-stationary value by the clock frequency set of the TS data packets of distinguishing identifier, thus, it will The TS data packets of the road distinguishing identifier are sent to when being decrypted in decryption unit, and decryption unit need not change rate dynamic The clock frequency of TS data packets of distinguishing identifier judged simultaneously to adjust in real time, receive dress so as to improve digital multimedia The job stability and reliability set.
Further, in a transmission cycle, it is single that the TS data packets of distinguishing identifier in storage unit are sent to decryption Member, when the TS data packets of distinguishing identifier in the storage unit are sent, and storage unit does not receive new distinguishing identifier When TS data packets, the TS data packets of distinguishing identifier are filled in the form of empty wrap, until the storage unit receives new data.
For sending the TS data packets of distinguishing identifier with fixed transmission rate, extremely by the TS packet combinings of distinguishing identifier All the way when new data flow, when the TS data packet consecutive hourss of two adjacent distinguishing identifiers, then directly by the TS of each distinguishing identifier Data packet is continuously incorporated into the TS data packets of distinguishing identifier successively, the TS data packets of adjacent two distinguishing identifiers it Between be not present gap;When the TS data packets of two adjacent distinguishing identifiers are discontinuous, i.e., the differentiation mark that is cached in storage unit The TS data packets of knowledge have been sent, and when storage unit not yet receives the TS data packets of other new distinguishing identifiers, are needed The new data stream to be formed to the TS data packets of distinguishing identifier does specially treated, to prevent the TS because of two adjacent distinguishing identifiers Existing gap causes that interrupting occurs in the transmission of the TS data packets of distinguishing identifier or other influences user watches section between data packet Purpose situation;For example, when the TS data packets for the distinguishing identifier that can be used for transmission in the memory unit, in new data stream The empty packet of filling, the filling forms of sky packet can there are many.
For example, referring to Fig. 9, when the TS data packets of two adjacent distinguishing identifiers are discontinuous, in the TS of distinguishing identifier Empty packet of the filling not comprising useful information, makes the clock signal of the TS data packets of distinguishing identifier in the new data stream that data packet is formed Continue output data, which is hash.
Specifically, after the TS data packets of preceding distinguishing identifier all the way being sent to decryption unit, target TS flows all the way due to after Storage unit is not reached;Thus for the transmitting continuous property of the TS data packets of distinguishing identifier, in the TS numbers of the distinguishing identifier of transmission The empty packet not comprising useful signal is filled in the new data stream formed according to packet, sky packet can not include for 0x00 or 0xff etc. to be had With the sky packet of signal, the clock signal of the TS data packets of distinguishing identifier is made to continue output data;At this point, the TS data of distinguishing identifier The data of packet output are hash, when the TS data packets of distinguishing identifier reach all the way after, then stop filling empty packet, will be latter The TS data packets of road distinguishing identifier are sent in decryption unit.
Alternatively, referring to Fig. 9, when the TS data packets of two adjacent distinguishing identifiers are discontinuous, interrupt clock signal Output stops transmission data.
Specifically, after the TS data packets of preceding distinguishing identifier all the way being sent to decryption unit, target TS flows all the way due to after Storage unit is not reached;At this point, empty packet of the filling not comprising useful signal in the TS data packets of distinguishing identifier, makes distinguishing identifier TS data packets clock signal stop output data, when after all the way distinguishing identifier TS data packets reach after, then stop filling Sky packet, according to the clock frequency of the TS data packets of distinguishing identifier, the TS data packets of distinguishing identifier are sent to decryption list all the way by after In member.
Further, as shown in Figure 10, when being inserted into the decryption unit for decryption, decryption unit (is decrypted by CMD Unit control command) information is transmitted to SOC chip, and then SOC can judge whether to support multichannel TS according to the information of decryption unit Stream while the function of decryption.If detecting that decryption unit does not support TS mixed flow functions, SOC chip handle information flow when It waits, the merging action of TS streams would not be carried out.Specifically, when input decryption unit is two-way encoded information stream, it only can be right The information flow of current channel is decrypted, and can not then be decrypted to another way information flow;It is flowed if it is encryption all the way, all the way clear stream, It then encrypts stream to be decrypted by IC card, clear stream then needs not move through decryption unit and is decrypted.
If detecting that decryption unit does not support TS mixed flow functions, SOC chip is when handling information flow, no matter defeated Whether the roads Ru Ji information flow is encrypted, and the merging action of TS streams is all carried out to it, and the TS streams after merging enter decryption unit, encryption Stream is decrypted, and after clear stream is then without any processing, returns to SOC chip, and merging of the SOC chip then before basis is former Then, the TS streams exported after decryption unit being decrypted shunt.
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 (8)

1. a kind of decryption method receiving multichannel TS stream for broadcast receiver, which is characterized in that this method includes:
Mark is distinguished respectively to the TS data packets in the multichannel TS stream of acquisition, for identify belonging to each TS data packets where TS flows all the way, in case the TS data packets after decryption can be Resealed by TS streams belonging to original;
The TS data packets of distinguishing identifier are sent to a decryption unit, the decryption unit is in timesharing to the TS numbers of distinguishing identifier Be decrypted according to packet, and will decryption after TS data packet backs;
The TS data packets of passback are received, and according to the rule of the distinguishing identifier, are classified to TS data packets after the decryption Encapsulation is to form multiplexed program.
2. TS as described in claim 1 flows decryption method, which is characterized in that the TS data in the multichannel TS streams of described pair of acquisition Packet distinguishes mark respectively, specially:The sync id in the header packet information of the TS data packets is changed, makes to flow with TS all the way TS data packets sync id it is identical.
3. TS as claimed in claim 2 flows decryption method, which is characterized in that described to divide TS data packets after the decryption Class wrapper is specifically included with forming multiplexed program:
Rule is changed according to sync id and determines TS streams belonging to TS data packet originals, by the TS data envelopes of the same streams of TS all the way belonging to original Dress all the way, and restores TS stream sync ids before change, to form multiplexed program.
4. TS as described in claim 1 flows decryption method, which is characterized in that described to be sent to the TS data packets of distinguishing identifier One decryption unit, specifically includes:
The sum of transmission rate according to multichannel TS streams, the serial parallel transmission mode of TS streams and/or the distinguishing identifier TS data packets serial parallel transmission mode, determine the transmission rate of the TS data packets of the distinguishing identifier, with the transmission speed The TS data packets of the distinguishing identifier are sent to a decryption unit by rate.
5. TS as described in claim 1 flows decryption method, which is characterized in that described to be sent to the TS data packets of distinguishing identifier One decryption unit, specifically includes:
The TS data packets of the distinguishing identifier are sent to a decryption unit, the fixed biography based on fixed transmission rate Defeated rate be more than the multichannel TS stream transmission rate and value.
6. TS as claimed in claim 5 flows decryption method, which is characterized in that described to be based on fixed transmission rate by the area The TS data packets that minute mark is known are sent to decryption unit, specifically include:
In a transmission cycle, the TS data packets of distinguishing identifier described in the storage unit are sent to decryption unit, when The TS data packets of distinguishing identifier described in the storage unit are sent, and the storage unit does not receive the new area When the TS data packets that minute mark is known, the data flow that the TS data packets of the distinguishing identifier are formed is filled in the form of empty wrap, until institute It states storage unit and receives new data.
7. TS as claimed in claim 6 flows decryption method, which is characterized in that the differentiation mark of the filling in the form of sky wraps The TS data packets of knowledge, specifically include:Clock signal persistently exports, and sends the empty packet not comprising useful information.
8. TS as claimed in claim 6 flows decryption method, which is characterized in that the differentiation mark of the filling in the form of sky wraps The TS data packets of knowledge, specifically include:Clock signal interrupt output stops transmission data.
CN201810471962.3A 2018-05-16 2018-05-16 TS method for stream processing and device are received for broadcast receiver Pending CN108551590A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810471962.3A CN108551590A (en) 2018-05-16 2018-05-16 TS method for stream processing and device are received for broadcast receiver
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
CN201810471962.3A CN108551590A (en) 2018-05-16 2018-05-16 TS method for stream processing and device are received for broadcast receiver

Publications (1)

Publication Number Publication Date
CN108551590A true CN108551590A (en) 2018-09-18

Family

ID=63495155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810471962.3A Pending CN108551590A (en) 2018-05-16 2018-05-16 TS method for stream processing and device are received for broadcast receiver

Country Status (1)

Country Link
CN (1) CN108551590A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640121A (en) * 2018-12-21 2019-04-16 深圳创维-Rgb电子有限公司 A kind of television system, programme signal processing method, device, equipment and medium
WO2019219056A1 (en) * 2018-05-16 2019-11-21 青岛海信电器股份有限公司 Ts processing method and device
CN114630007A (en) * 2020-12-11 2022-06-14 华为技术有限公司 Display synchronization method, electronic device and readable storage medium

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 (4)

* 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
CN109640121A (en) * 2018-12-21 2019-04-16 深圳创维-Rgb电子有限公司 A kind of television system, programme signal processing method, device, equipment and medium
WO2020124965A1 (en) * 2018-12-21 2020-06-25 深圳创维-Rgb电子有限公司 Television system, program signal processing method and apparatus, device and medium
CN114630007A (en) * 2020-12-11 2022-06-14 华为技术有限公司 Display synchronization method, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN100358345C (en) Block data form for digital data storage medium
CN1210948C (en) Formation of performance specific information processed by digital data
CN101355640A (en) Multi-display digital television set-top box
US9749681B2 (en) Non-real-time broadcast service processing system and processing method thereof
US7461396B2 (en) System and method for providing a secure environment for performing conditional access functions for a set top box
CN100353745C (en) Method of constructing MPEG program streams from encrypted MPEG transport streams
US9986287B2 (en) Transport stream provider, DAB signal provider, transport stream analyzer, DAB receiver, method, computer program, and transport stream signal
CN101416483A (en) Transport stream dejittering
CN1833216A (en) Universal bidirectional serial data transmission interface and data transmission method thereof
HRP20000821A2 (en) Decoder for, and method of, processing a transport packet stream
CN108551590A (en) TS method for stream processing and device are received for broadcast receiver
CN106231396B (en) A kind of set-top box of the shared processing of program resource, system and method
CN102685591A (en) Digital set-top box
CN102957961A (en) Method and device for sharing encrypted digital television programs and digital television receiver
CN101325684B (en) Method and system for transmitting ciphering control message based on mobile multimedia broadcast
CN108712679A (en) A kind of broadcast receiver
CN201298872Y (en) Multi-display digital TV set-top box
CN103702173B (en) System of encrypting and controlling digital television recorded program segments
CN101309120B (en) Method and apparatus for terminal acquiring decrypt and de-disturbing information
CN113727159A (en) System and method for processing multi-repeater programs by integrated conditional access module
RU2608586C2 (en) Transmission device, transmission method, reception device, reception method, program and electronic device
CN108600832A (en) A method of TS streams are decrypted
CN108429928A (en) A method of TS streams are decrypted
CN108737889A (en) A kind of TS method for stream processing and digital multimedia reception device
CN108650548A (en) A method of TS streams are decrypted

Legal Events

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

Application publication date: 20180918

RJ01 Rejection of invention patent application after publication