[go: up one dir, main page]

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
packets
stream
distinguishing
data
streams
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 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

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 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

Method and device for processing TS (transport stream) receiving of broadcast receiving device
Technical Field
The present invention relates to the field of digital multimedia technologies, and in particular, to a decryption method and apparatus for a broadcast receiving apparatus to receive multiple TS streams.
Background
MPEG-2 (compression standard based on digital storage media moving picture and voice) is an image compression standard established by ISO/IEC/JTC1/SC29/WG11, which has been developed to meet the comprehensive requirements of generation, editing, storage, transmission, and display of digital television programs, and is widely used for digital television broadcasting and DVD. At present, multimedia programs such as television programs are basically compressed and packetized by using the MPEG-2 standard to form a Transport Stream (TS), and the TS is transmitted to a channel after being channel coded and modulated.
When a user watches a multimedia program, the digital multimedia receiving device extracts a TS stream corresponding to the multimedia program selected by the user from a plurality of TS streams according to a PID (packet Identification code) of the TS stream corresponding to the multimedia program selected by the user, decrypts the program content in the TS stream, and can play the decrypted program content for the user to watch.
With the development of digital multimedia, users have gradually increased demands for playing and recording functions (i.e., playing one multimedia program and recording another multimedia program) and picture-in-picture functions (i.e., playing at least two multimedia programs simultaneously) while watching the multimedia programs, and when the users propose the playing and recording functions or/and the picture-in-picture functions, the digital multimedia receiving device needs to extract TS streams of the multiple multimedia programs and decrypt program contents in the multiple TS streams.
Disclosure of Invention
The invention aims to provide a method and a device for processing a TS (transport stream), which are used for decrypting a plurality of TS streams and realizing the playing or recording of multimedia programs corresponding to the plurality of TS streams respectively.
In order to achieve the above object, the present invention provides a decryption method for a broadcast receiving apparatus to receive a plurality of TS streams, the method comprising:
respectively distinguishing and identifying TS data packets in the obtained multiple TS streams, and identifying which TS stream each TS data packet belongs to so that the decrypted TS data packets can be repackaged according to the original TS stream to which the TS data packets belong;
the TS data packets with the distinguishing identifications are sent to a decryption unit, the decryption unit decrypts the TS data packets with the distinguishing identifications in a time-sharing mode, and the decrypted TS data packets are returned;
and receiving the returned TS data packet, and distinguishing the decrypted TS data packet according to the rule of the distinguishing identification to form a multi-path program.
Compared with the prior art, in order to realize the playing or/and recording of the multimedia programs respectively corresponding to the multiple TS streams, a plurality of decryption cards (decryption units) are usually arranged in the digital multimedia receiving apparatus, and each decryption unit decrypts one path of target TS stream. In the multi-channel TS stream decryption method provided in the embodiment of the present invention, since the TS data packets in each of the TS streams output by the decoder are identified by differentiation, and the identified TS data packets form a new data transport stream, the new data transport stream is sent to the decryption unit for decryption, and then the decrypted identified TS data packets are received after the decryption unit decrypts the new data transport stream, and the decrypted identified TS data packets are distinguished according to the identification rule to form a multi-channel program. Therefore, when the TS data packets in the new data transmission stream are decrypted, the TS streams input by all paths can be decrypted simultaneously only by arranging one decryption unit in the digital multimedia receiving device, so that the structure of the digital multimedia receiving device can be simplified, and the cost of the digital multimedia receiving device can be reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram illustrating a TS stream data format;
fig. 2 is a schematic diagram of a broadcast receiving apparatus according to an embodiment of the present application;
fig. 3a is a schematic diagram of transmission of TS packets in two TS streams according to the embodiment of the present application;
fig. 3b is a schematic diagram of another transmission of TS packets in two TS streams according to the embodiment of the present application;
FIG. 3c is a schematic diagram of the inclusion and transmission of TS data in two TS streams according to the embodiment of the present application
Fig. 4 is another schematic diagram of a broadcast receiving apparatus according to an embodiment of the present application;
fig. 5 is a third schematic diagram of a broadcast receiving apparatus according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating steps of a method for decrypting multiple TS streams in the embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a transmission rate determination procedure of TS packets with differentiated identifiers according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a first transmission rate determination of TS packets identified by differentiation in an embodiment of the present application;
FIG. 9 is a diagram illustrating a second transmission rate determination for TS packets identified by differentiation in an embodiment of the present application;
fig. 10 is a schematic diagram of a CI mode determination process in the embodiment of the present application.
Detailed Description
To further explain the TS stream processing method and the digital multimedia receiving device provided by the embodiment of the present invention, the following detailed description is made with reference to the accompanying drawings.
Example 1
In the prior art, when a plurality of decoders output encrypted multiple TS streams respectively, a plurality of decryption units (such as CI cards) need to be arranged to respectively encrypt different multiple TS streams; the scheme provided by the application can decrypt the encrypted multi-channel TS stream by using only one decryption unit, and distinguish the decrypted TS data after decryption to form a multi-channel program.
In the embodiment of the present application, two TS streams are exemplified, and the situation of multiple TS streams is similar to that of two TS streams, which is not described in detail.
First, a simple description is given of a TS stream. The TS stream digital television set top box receives a section of code stream, and each TS stream carries some information, such as Video, Audio, PAT, PMT and the like which need to be learned.
The TS stream is constructed in a bit stream format based on packets (data packets) of 188 bytes each (or 204 bytes with 16 bytes of CRC check data added after 188 bytes, as shown in fig. 1, but in the same format).
The overall TS stream group forming formula is shown in fig. 1, where Packet Header information description is shown in table 1:
TABLE 1
Wherein, the synchronization identifier is a transport identifier under the MPEG-2 TS transmission standard, which is usually a fixed value of 0x 47;
the PID information is a unique identifier in the TS stream, and the content of the data packet in the TS stream is determined by it, for example, if the PID in the packet header information of a packet in a TS stream is 0x0000, the data of this packet is the PAT table in DVB.
Fig. 2 shows a hardware block diagram of the broadcast receiving apparatus according to the present invention.
The multimedia receiving apparatus includes a demodulator 10, a storage unit 20, an identification unit 30, a TS stream reconstruction unit 40, a decryption unit 50, and a decoder 60; wherein,
the demodulator 10 is multiple, each demodulator 10 is used for demodulating its receiving broadcast television signal, so as to form multiple TS flows;
a storage unit 20 for storing the multiple TS streams output from the plurality of demodulators 10;
an identification unit 30, configured to distinguish and identify a TS stream from which each TS packet in the multiple TS streams originates;
a decryption unit 50, for decrypting the TS packets of the distinguishing mark respectively;
a TS stream reconstructing unit 40, configured to repackage, according to the distinguishing identification rule, the decrypted TS packets belonging to the TS packets originating from the same TS stream into a TS stream;
and a decoder 60 for decoding the repackaged multiple TS streams to form multiple programs.
When the multiple encrypted TS streams are demodulated by the demodulator 10 and then input to the storage unit 20, the identification unit 30 discriminates and identifies the TS packets of the multiple TS streams stored in the storage unit 20 to determine from which TS stream the TS packets in the multiple TS streams each originate, the identified TS packets are sent to the decryption unit 50 according to a first-in first-out time sequence and based on a certain transmission rate, the decryption unit 50 decrypts the identified TS packets according to a preset decryption rule, decrypts the TS stream identified by the distinguishing identifier and sends the decrypted TS packets to the TS stream reconstructing unit 40, the TS stream reconstructing unit 40 distinguishes the decrypted TS packets according to the distinguishing identifier, and repackages TS packets belonging to the same TS stream into one TS stream, and finally the decoder 60 decodes the repackaged TS packets to form a multi-channel program.
Further, as shown in fig. 3a and 3b, compared with the prior art in which the decryption unit only needs to decrypt one TS stream, the TS data packet can be directly transmitted to the decryption unit in real time for decryption in real time; in the scheme, since one decryption unit can only decrypt one TS Packet at the same time, as shown in fig. 3a, at time t, when one TS Packet1-1 of TS1 and one TS Packet2-1 of TS2 reach the decryption unit at the same time, the decryption unit cannot decrypt the received packets Packet1-1 and Packet2-1 at the same time; or as shown in fig. 3b, at time t1, the decryption unit receives the Packet1-1, and if at time t2, the decryption unit receives the TS Packet2-1 of the TS2 again, at this time, the decryption unit is processing the TS Packet1-1, and the decryption unit cannot receive and process the Packet2-1, so that processing collision between the packets is inevitable, which results in a loss of part of the packets or inability to decrypt, and further affects integrity of TS stream data, and affects users to watch or record tv programs.
Therefore, in order to avoid collision of data packets of different TS streams and further avoid loss of TS data packets, a storage unit 20 is added between the demodulator 10 and the decryption unit 50, the storage unit 20 stores and sequences the received TS data packets of multiple TS streams according to the receiving time sequence, and further sends the stored TS data packets to the identification unit 30 according to the stored sequence and distinguishes and identifies the TS data packets, thereby avoiding the problem of time collision in transmission of TS data packets in different TS streams.
It should be noted that, when two TS packets arrive at the storage unit 20 at the same time, the two TS packets are two packets stored adjacently, but the storage is not required successively. Other decision mechanisms may be used by those skilled in the art to specify the order in which the two TS packets are stored in this case.
Further, as exemplarily shown in fig. 3c, the TS packets of the multiple TS streams stored in the receiving sequence constitute a new data stream, and the new data stream is identified and then sent to the decryption unit for decryption. For example, as shown in fig. 3c, the decryption unit decrypts, according to the differentiation identifier, packets 1-1, 1-2, 1-3, and other packets from the same TS stream in the newly configured data stream according to the same decryption rule; and decrypting the packets 2-1, 2-2 and 2-3 from the other TS stream according to another decryption rule.
Accordingly, when TS packets in a plurality of TS streams are reconstructed into a new data stream, the corresponding transmission rate of the new data stream needs to be adjusted and changed accordingly, and the adjustment and change will be specifically described and exemplified in the following, which will not be described herein too much.
Further, the identification unit 30 is specifically configured to: and changing the synchronous identification in the header information of the TS data packet to ensure that the synchronous identifications of the TS data packets of the same TS flow are the same after changing. The inherent synchronization mark is 0x47, and different changes can be made to the synchronization mark in the TS packet header information in different TS streams. Taking two paths as an example, the synchronization identifier in the packet header information of a TS packet in one TS stream may be changed to 0x 48; the other path may be changed to 0x 49.
Correspondingly, the TS reconstructing unit 40 is specifically configured to: and identifying which TS stream the decrypted TS data packet originates from according to the changed synchronous identifier, changing the synchronous identifiers of all the decrypted TS data packets into the original synchronous identifier, and then repackaging the TS data packets originating from the same TS stream into one TS stream after the decrypted TS data packets are changed into the original synchronous identifiers.
Specifically, under the existing protocol, the decoder can only recognize TS packets with sync marks of 0x47, and cannot recognize TS packets with sync marks of 0x48 and 0x49 after being changed. Therefore, the TS reconstructing unit 40 receives the decrypted TS packets sent by the decrypting unit 50, distinguishes the decrypted TS packets according to the distinguishing rule of the TS packets (i.e. the modified sync identifier: e.g. 0x48, 0x49, etc.), and changes the sync identifier of the TS packets (e.g. 0x48, 0x49, etc.) to the original sync identifier (0x47), so that the original sync identifier can satisfy the inherent protocol standard and output to the decoder 60, thereby forming the multi-channel program.
Further, the identifier unit 30 and the TS stream reconstructing unit 40 have a channel for transmitting data information to each other, so that the TS stream reconstructing unit 40 can obtain the differentiation rule of the TS packets from the identifier unit 30, and according to the differentiation rule, identify which TS stream the decrypted TS packets originate from, and further repackage the decrypted TS packets originating from the same TS stream into one TS stream.
Illustratively, as described above, when the identification unit 30 changes the synchronization identifier of the TS1 packet from 0x47 to 0x48, the synchronization identifier of the TS2 packet from 0x47 to 0x 49; and the TS stream reconstructing unit obtains the identification rule from the identification unit 30 through the information channel, changes the packet identified as 0x48 from the decrypted TS packets to 0x47 and repackages the packet into TS1, and changes the packet identified as 0x49 to 0x47 and repackages the packet into TS 2.
Further, as shown in fig. 4, the functions of the storage unit 20, the identification unit 30, and the TS stream reconstruction unit 40 may be implemented by one integrated chip (i.e., the TS data processing chip 70).
Furthermore, the multiple TS streams are all encrypted TS streams, and the multimedia receiving device provided by the scheme can realize simultaneous decryption of the multiple encrypted TS streams based on one decryption unit.
It should be noted that, when the demodulator 10 generates a TS stream according to a received signal, and a part of the TS stream is an encrypted TS stream, and a part of the TS stream is an unencrypted TS stream, the scheme of the present application still distinguishes and identifies TS packets in multiple TS streams, and then sends the identified and distinguished TS packets to the decryption unit in time sequence, and the decryption unit selectively decrypts the TS packets needing to be decrypted according to the distinguished and identified, and then changes the synchronized identification of the identified and distinguished TS packets into the inherent synchronized identification under the existing standard protocol after decryption, so as to form multiple programs. Obviously, a judgment module may be added before the differentiation identifier to further judge whether the received TS stream is an encrypted stream, if so, the differentiation identifier is performed, otherwise, the non-encrypted TS stream is directly output to the decoder, and this scheme does not impose too many limitations.
Further, information interaction is performed between the chips through an IIC control protocol, specifically, the system chip sets a data format of the output TS stream and a channel to be demodulated through the IIC control modem 10, the demodulator 10 controls Tuner through the IIC to select the channel, and the Tuner transmits a frequency point required by the demodulator 10 to the demodulator 10 through an IF/IQ signal for demodulation; the demodulator 10 sends the demodulated encrypted TS streams (TS 1 and TS2 in the figure) to the storage unit 20; the system chip further controls the identification unit 30 through the IIC, so that the identification unit 30 distinguishes and identifies the TS packets in the TS1 and the TS2 received by the storage unit 20, so as to send a new data stream (i.e., the MS stream in fig. 2 and fig. 3) formed by distinguishing the identified TS packets to the decryption unit 50, and the decryption unit 50 decrypts the distinguishing and identified TS packets, and distinguishes the decrypted TS packets according to a distinguishing and identifying rule to form a multi-path program for playing or/and recording.
Further, the decryption unit 50 may be a CI card, or a CAM card, and refers to a module for decrypting digital multimedia program signals, in one scheme widely used in the prior art, a television operator authorizes a CAM demodulator manufacturer to enable the CAM manufacturer to descramble in a certain manner, and the encryption/decryption mode descrambles, scrambles, decrypts, and encrypts encrypted pay signals issued by the operator. Therefore, the user can watch the payment signals issued by different operators by replacing different CAM cards. The CI card is special for a digital television card or a high-grade set top box, and can be used for a cable digital television card and a satellite digital television card. The method can also be used for set-top boxes with separated set cards, digital television integrated machines and the like.
Further, the decoder 60 decodes and splits the decrypted TS stream into video data, audio data, and other data according to PID information in the packet header information of the TS packet. Illustratively, according to the TS stream standard protocol, if the PID of a certain TS packet is 45, the TS packet is video data; if the PID of a certain TS packet is 78, the TS packet is audio data; if the PID of a certain TS packet is 69, the TS data of the segment is padding data. The decoder splits the decrypted TS stream into video data and audio data for display and playback, respectively.
Further IF is intermediate frequency signal, IQ is baseband signal, DVB-S2 is satellite signal, DVB-T2 is terrestrial broadcast signal, DVB-C is cable signal, and tuner is configured to receive the above-mentioned DVB-S2 and DVB-T2/C signals and send the received signals to demodulator 10 for demodulation.
Specifically, the tuner receives signals (DVB-S2, DVB-T2/C) and sends the signals to the demodulator 10 in an IQ and IF signal manner, the demodulator 10 obtains corresponding TS streams according to the received signals, and determines TS packets to be decrypted, which need to be sent to the decryption unit 50, according to the PID of the TS stream corresponding to the multimedia program information selected by the user; the storage unit 20 connected to the output end of the demodulator 10 receives the TS packets, and the identification unit 30 identifies the TS packets in the obtained multiple TS streams; the decryption unit 50 receives the TS packets with the distinguishing marks sent by the storage unit and decrypts the TS packets with the distinguishing marks in different time periods; further, the decryption unit 50 sends the decrypted TS packets with the distinguishing identifier to the TS stream reconstructing unit 40 through the output terminal, and the TS stream reconstructing unit 40 distinguishes the decrypted TS packets with the distinguishing identifier according to the distinguishing identifier rule and forms a decrypted multi-channel TS stream, and sends the decrypted multi-channel TS stream to the decoder 60 to form a multi-channel program, where the multi-channel program is used for playing or/and recording.
Further, as shown in fig. 5, the storage unit, the identification unit, and the TS stream reconstruction unit and the decoder are integrated into the system on chip SOC. The system on chip SOC includes the functions and roles of the above-described units, and specifically, when the multiple encrypted TS streams are demodulated by the demodulator 10, the multiple encrypted TS streams are input and stored into the system on chip SOC, the system chip SOC distinguishes and identifies the TS data packets of the multi-path TS flow to determine from which TS flow each TS data packet in the multi-path TS flow originates, the identified TS packets are sent to the decryption unit 50 according to a first-in first-out time sequence and based on a certain transmission rate, the decryption unit 50 decrypts the identified TS packets according to a preset decryption rule, the TS stream after the distinguishing mark is decrypted and the decrypted TS data packet is transmitted back to the system chip SOC, the system chip SOC distinguishes the decrypted TS data packet according to the distinguishing mark, and repackaging TS data packets from the same TS stream into one TS stream, and finally decoding the repackaged TS data packets to form a multi-channel program.
Referring to fig. 6, a TS stream processing method according to an embodiment of the present invention includes:
step S1, distinguishing and identifying the TS packets in the obtained multiple TS streams, respectively, for identifying which TS stream each TS packet belongs to, so that the decrypted TS packets may be repackaged according to the original TS stream to which it belongs.
For example, taking digital television as an example for explanation, a TS stream formed by compressing and packaging a television program at present usually forms a radio frequency signal after channel coding and modulation, and sends the radio frequency signal to a channel for transmission, at this time, the received signal is a radio frequency signal, each radio frequency signal corresponds to one TS stream, each TS stream also includes at least one single program TS stream corresponding to the television program, and each single program TS stream corresponding to the television program has a corresponding PID. In real life, when a plurality of program signals are received, each program signal corresponds to one TS stream, and at this time, a user may have a need to watch a program and record another program at the same time, which requires to decrypt two or even multiple TS streams at the same time. In order to effectively distinguish the data packets in the TS streams corresponding to different programs after decryption, it is necessary to distinguish and identify the TS data packets in the TS streams of different paths before decryption. Specifically, each TS data packet in the received TS stream is identified to determine which TS stream each TS data packet belongs to, and then the decrypted TS data packet may be repackaged according to the TS stream to which the identification belongs before distinguishing.
Illustratively, the synchronization flag in the header information of the TS packet may be changed. The inherent synchronization mark is 0x47, and different changes can be made to the synchronization mark in the TS packet header information in different TS streams. Taking two paths as an example, the synchronization identifier in the header information of the TS packet in the first path of TS stream may be changed to 0x 48; the synchronous identification of TS data packets in the second TS stream can be changed to 0x 49. After the decryption unit decrypts the TS data packets after distinguishing the identification, the TS data packets with the synchronous identification of 0x48 are repackaged into a first TS stream and the TS data packets with the synchronous identification of 0x49 are repackaged into a second TS stream according to the difference of the synchronous identification.
Step S2: and sending the TS data packets with the distinguishing identifications to a decryption unit, decrypting the TS data packets with the distinguishing identifications by the decryption unit in a time-sharing manner, and returning the decrypted TS data packets.
At present, most televisions are digital cable television integrated machines which support cable digital television reception, but the current digital cable televisions have encryption protection and need to be decrypted by a decryption unit (namely a digital television smart card) specified by a local radio and television department.
And sending the TS data packets after distinguishing the identification to a decryption unit for decrypting the TS stream of the program, wherein the decryption unit respectively decrypts the encrypted TS data packets according to a decryption rule preset by the radio and television department or a related manufacturer, and then sends the decrypted TS data packets to an SOC chip to form the corresponding program.
Step S3: and receiving the returned TS data packets, and classifying and packaging the decrypted TS data packets according to the rule for distinguishing the identifiers to form a multi-channel program.
Under the existing protocol, the SOC chip can only receive and recognize TS stream data with sync marks of 0x47, and cannot recognize TS packets with sync marks of 0x48 and 0x49 after being changed, so that the SOC chip is difficult to output normal programs for users to watch or/and record. Therefore, the storage unit receives the decrypted TS data packet sent by the decryption unit, distinguishes the decrypted TS data packet according to the distinguishing rule of the TS data packet, and changes the distinguishing identifier to the original identifier, specifically, when the decryption unit decrypts the TS data of the distinguishing identifier and returns the decrypted TS data to the storage unit, the storage unit determines the original TS stream of the TS data packet according to the synchronization identifier changing rule, encapsulates the original TS data packet belonging to the same TS stream into one TS stream again, and recovers the synchronization identifier of the TS stream before changing, i.e., changes the synchronization identifier (such as 0x48, 0x49, etc.) of the TS data packet into the inherent synchronization identifier (0x47) of the TS stream before changing, so that the TS data packet can meet the inherent protocol standard and is output to the SOC chip to form a multi-channel program. It should be noted that the inherent sync id is the sync id of the packet header information of the TS stream under the existing standard protocol, and is a fixed value 0x 47.
Illustratively, if the synchronization identifier in the header information is changed, the TS packets with the same synchronization identifier are arranged into a data stream in time sequence to form a program. For example, if two TS streams are input, the decrypted data stream may be split into two data streams according to the difference of the synchronization identifier; wherein, one path is TS data packet with synchronous identification changed to 0x48, and then the synchronous identification in the TS data packet is changed to inherent value 0x47, so as to form decrypted TS 1; the other path is a TS data packet with the synchronous identifier changed to 0x49, and then the synchronous identifier in the TS data packet in the other path is changed to an inherent value of 0x47 to form decrypted TS 2; and the decrypted TS1 and TS2 form corresponding programs for playing or recording, respectively.
In the multi-channel TS stream decryption method provided in the embodiment of the present invention, according to a multi-channel required multimedia program selected by a user, TS streams corresponding to the respective multimedia programs are respectively obtained, and each of the TS data packets in the multi-channel TS streams is respectively identified to distinguish the multi-channel TS streams; further, the TS data packets after the distinguishing identification are sent to a decryption unit, and the decryption unit decrypts the TS data packets with different distinguishing identifications respectively in different time periods; finally, the decryption unit splits the decrypted TS data packet into a plurality of data streams again according to a preset distinguishing identification rule to form corresponding multi-channel programs, so that the user can meet the function of watching and recording different multimedia programs simultaneously, and the experience and the demand of the user are increased. Therefore, in the multi-TS stream decryption method provided in the embodiment of the present invention, a new data stream is formed from the TS data packets included in the TS stream output from the decoder according to the time sequence, and then the new data stream is transmitted to the decryption unit for decrypting the TS stream, so as to implement decryption of the multi-TS stream by using one decryption unit, thereby implementing playing or/and recording of the multimedia programs corresponding to the multi-TS streams respectively.
Compared with the prior art, in order to realize the playing or/and recording of the multimedia programs respectively corresponding to the multiple TS streams, a plurality of decryption cards (decryption units) are usually arranged in the digital multimedia receiving apparatus, and each decryption unit decrypts one path of target TS stream. In the multi-channel TS stream decryption method provided in the embodiment of the present invention, since the TS data packets in each of the TS streams output by the decoder are identified by differentiation, and the identified TS data packets form a new data transport stream, the new data transport stream is sent to the decryption unit for decryption, and then the decrypted identified TS data packets are received after the decryption unit decrypts the new data transport stream, and the decrypted identified TS data packets are distinguished according to the identification rule to form a multi-channel program. Therefore, when the TS data packets in the new data transmission stream are decrypted, the TS streams input by all paths can be decrypted simultaneously only by arranging one decryption unit in the digital multimedia receiving device, so that the structure of the digital multimedia receiving device can be simplified, and the cost of the digital multimedia receiving device can be reduced.
Furthermore, when the user selects the required multimedia program, the PID of the TS streams corresponding to the required multimedia program can be known, and the TS data packet required for decryption can be obtained according to the PID of the TS streams corresponding to the required multimedia program. For example, for an incoming TS stream signal, it may correspond to multiple programs, such as one TS stream corresponding to CCTV1 and CCTV 5; and the user selects to watch the program of CCTV5, the TS data packet corresponding to the CCTV5 program in the TS stream can be selected according to the PID information.
The following describes in detail a method for decrypting a TS stream provided in the embodiment of the present application, taking two TS streams as an example. Assuming that the number of the multimedia programs selected by the user is two (e.g., CCTV1 and CCTV2), the TS packets corresponding to the two different programs are TS-1 and TS-2, and the TS-1 and the TS-2 have corresponding PIDs, respectively, then the TS-1 and the TS-2 are obtained from the TS stream according to the PIDs of the TS-1 and the TS-2, wherein the TS-1 and the TS-2 may be located in the same TS stream, and the TS-1 and the TS-2 may also be located in different TS streams.
Furthermore, after extracting each TS data packet needing to be decrypted from the TS stream, the synchronous identification of the packet header information of each TS data packet is changed or redefined to form TS data packets with distinguished identifications, and then the TS data packets with distinguished identifications are formed into a new data stream according to the time sequence. For example, the TS data packets to be decrypted have two paths, which are TS-1 and TS-2, respectively, after the TS-1 and the TS-2 are extracted from the TS stream, the synchronous identifier of the TS-1 is changed to form the TS data packet TS-1 'with the distinguishing identifier, the synchronous identifier of the TS-2 is changed to form the TS data packet TS-2' with the corresponding distinguishing identifier, and then the TS data packet TS-1 'with the distinguishing identifier and the TS data packet TS-2' with the distinguishing identifier are merged to form a new data stream. It should be noted that, when the header information of the TS packet is modified, the differentiation rule to be followed may be performed according to actual needs, for example, currently, the sync byte in the header information of the TS stream usually starts with 0x47, so when the sync identifier of the TS packet is modified and the TS packet after the differentiation identifier is formed, the sync identifier of the TS packet after the differentiation identifier may start with 0x48, 0x49, 0x50 …, and the like, where the sync identifiers of the TS packets after the differentiation identifier are different from each other. For example, taking two TS packets as an example, the TS packets are TS-1 and TS-2, respectively, the TS-1 synchronization flag may be changed to 0x48, and the TS-2 synchronization flag may be changed to 0x 49. It should be noted that, when the header information of the TS packet is modified, only the synchronization identifier of the header information in the TS packet is modified or redefined, and the PID of the program content in the target TS stream is not changed.
Furthermore, after the synchronous identifier of the TS data packet is changed to distinguish the identifier, when the TS data packet is sent to a decryption unit and decrypted, the TS data packet can be distinguished and decrypted according to the changed synchronous identifier of different TS data packets. When the synchronous identification of the TS data packet of a certain distinguishing identification is detected to start with 0x48, the TS data packet which is currently decrypted is TS-1 ', the program content in the TS-1' is decrypted according to the encryption mode of the program content in the TS-1 ', and when the synchronous identification of the TS data packet of a certain distinguishing identification is detected to start with 0x49, the TS data packet which is currently decrypted is TS-2', the program content in the TS-2 'is decrypted according to the encryption mode of the program content in the TS-2'.
After the program content corresponding to the TS packet is decrypted, the program content is re-split into a plurality of data streams according to the differentiation identifier rule preset in step S2, that is, according to the synchronous identifier of the TS packet with the differentiation identifier, so as to form a corresponding multi-channel program. For example, two TS streams are taken as an example for explanation, where the two TS streams are TS-1 and TS-2, and the synchronization identifier in the packet header information of TS-1 and the synchronization identifier of TS-2 are changed respectively to form corresponding TS packets TS-1 'and TS-2' with distinguishing identifiers, the synchronization identifier of the TS packet TS-1 'with distinguishing identifiers starts with 0x48, and the synchronization identifier of the TS packet TS-2' with distinguishing identifiers starts with 0x 49. After the program content in the TS data packet TS-1 'of the distinguishing identification and the program content in the TS data packet TS-2' of the distinguishing identification are respectively decrypted, the TS data packet TS-1 'and the TS-2' of the distinguishing identification are split by taking the data packet as a unit, the synchronous identification of the TS data packet TS-1 'and the TS-2' of the split distinguishing identification is changed into the inherent synchronous identification, namely 0x47, and then the inherent synchronous identification is sent to the SOC chip to form a corresponding program, and then the corresponding program is transmitted to a corresponding unit according to the playing or recording requirements of a user. For example, when the user needs to distinguish the identified TS data packets TS-1 'and TS-2' for playing, the identified TS data packets TS-1 'and TS-2' are both transmitted to the decoder, and can be played after being decoded; when a user needs to distinguish TS data packet TS-1 'of the identification and TS-2' is recorded, the TS-1 'is transmitted to a decoder and is played after being decoded, and the TS-2' is recorded through an OTG (OnTheGo) interface; when a user needs to distinguish TS data packets TS-1 'and TS-2' of The identification for recording, The TS-1 'and The TS-2' are recorded through an OTG (On The Go) interface.
Furthermore, when the TS packets are identified separately, the acquired multiple TS packets need to be stored in the storage unit according to the time sequence. In the prior art, in the TS stream decryption process, only one path of TS stream needs to be decrypted by a single decryption unit, and at this time, only the decryption rate of the decryption unit needs to be ensured to be consistent with the transmission rate of the TS stream, that is, the transmitted TS stream does not need to be stored, and real-time TS stream decryption can be achieved. However, for the multi-TS decryption method of the present application, because the transmission rate of each of the input multi-TS streams is different, and different time periods may also change, it is difficult to ensure that the rate of the identified TS data packet is a constant value, and the scheme also needs to change the synchronization identifier of the header information in the TS data packet; therefore, it is necessary to store the data packets in the input multiple TS streams into a storage unit first, and then change the synchronization identifier of the TS data packets.
Further, the "time sequence" may be set according to actual conditions, for example, the time sequence may be set according to the time sequence when the user selects each multimedia program, or the time sequence may also be set according to the sequence of the obtained multiple TS streams, which is not limited herein. Correspondingly, when the TS data packets with the distinguishing marks are sent to the decryption unit, based on the principle of first-in first-out, the TS data packets are sequentially extracted from the storage unit according to the sequence of the TS data packets in the storage unit, the synchronous marks of the TS data packets are changed to form the corresponding TS data packets with the distinguishing marks, and the TS data packets with the distinguishing marks are sequentially sent to the decryption unit. By the design, the TS data packets with the distinguishing marks can be prevented from being mixed up.
Further, as shown in fig. 7, the transmission rate of the TS packets with the distinguishing mark needs to be determined according to the following steps, and then the TS packets with the distinguishing mark are transmitted to the decryption unit for decryption according to the transmission rate.
And step S110, analyzing the sum of the transmission rates of the multiple TS streams.
Specifically, the TS data packets to be decrypted are extracted from the multiple TS streams according to the PIDs of the TS streams corresponding to the multimedia programs, so that the transmission rate of the data packets to be decrypted in the multiple TS streams can be determined, and after the TS data packets with the distinguishing identifiers are changed to form the TS data packets with the distinguishing identifiers, the sum of the transmission rates of the TS data packets with the distinguishing identifiers can be obtained after analyzing the sum of the transmission rates of the multiple TS streams obtained by analyzing the obtained TS data packets with the corresponding TS streams, so as to set the transmission rate of the TS data packets with the distinguishing identifiers to the decryption unit in the following process.
Step S120, determining the transmission rate of the TS data packet with the distinguishing mark according to the sum of the acquired transmission rates of the multiple TS streams, the serial-parallel transmission mode of the TS streams and/or the serial-parallel transmission mode of the TS data packet with the distinguishing mark.
In the prior art, the TS packets with the distinguishing identifier are usually transmitted in a serial manner, so for setting the transmission rate in the present scheme, the transmission manner of the TS packets with the distinguishing identifier may not be considered, and certainly, the present invention may also consider, and is not limited herein.
For convenience of explanation, the following is a simple schematic description taking the example that the TS packets with distinguishing marks are transmitted in a serial manner.
When the obtained TS stream adopts a serial transmission mode, the transmission rate of the TS data packet of the distinguishing mark is the same as the sum of the transmission rates of the obtained TS data packets to be decrypted in terms of value; when the acquired TS stream adopts a parallel transmission mode, the transmission rate of the identified TS data packets is numerically the average of the sum of the transmission rates of the acquired TS data packets to be decrypted on the total number of parallel lines. For example, suppose that two program signals are obtained, which correspond to two TS streams respectively, the two obtained TS streams are TS1 and TS2, wherein please refer to fig. 8, TS1 includes two single program TS streams, each single program TS stream corresponds to one multimedia program, the two single program TS streams are TS1-1 and TS1-2, the transmission rate of the single program TS1-1 is 12Mbps, the transmission rate of the single program TS1-2 is 28Mbps, the transmission rate of the original TS stream TS1 is 40Mbps, TS2 includes three single program TS streams, each single program TS stream corresponds to one multimedia program, the three single program TS streams are TS2-1, TS2-2 and TS2-3, the transmission rate of the single program TS stream TS2-1 is 10Mbps, the transmission rate of the single program TS2-2 is 14Mbps, and the transmission rate of the single program TS2-3 is 24Mbps, the transmission rate of the TS2 is 48 Mbps. When the required multimedia program selected by the user is the single program TS1-1 and the single program TS2-1 respectively, that is, the user selects two paths of target TS correspondingly, and the sum of the transmission rates of the TS streams analyzed by the TS1-1 and the TS2-1 is the sum of the transmission rate of the TS1-1 and the transmission rate of the TS2-1, namely 22 Mbps. At this time, the sum of the transmission rates of the distinguishably identified TS packets is also the sum of the transmission rate of TS1-1 and the transmission rate of TS 2-1. When the transmission rate of the TS data packets for distinguishing the marks is set, setting is carried out according to the sum of the transmission rates of the TS1-1 and the TS2-1 and the serial-parallel transmission mode of the obtained TS streams, namely when the TS streams adopt the serial transmission mode, the sum of the transmission rates of all target TS streams is 22Mbps, namely the sum of the transmission rates of the TS data packets for distinguishing the marks is also 22 Mbps; at this time, a new data stream formed by the TS packets with flags needs to transmit 22Mbit of data per second, and therefore, the clock frequency of the TS packets with flags is set to 22 MHz. When the TS flow adopts a parallel transmission mode and the total number of parallel lines is 8, the sum of the transmission rates of the TS flow is 22Mbps, namely the sum of the transmission rates of the TS data packets for distinguishing the marks is also 22 Mbps; at this time, the clock frequency of the TS packets to be distinguished and identified on each parallel line, which are formed by grouping and forming the TS packets to be distinguished and identified, is 2.75 MHz. Correspondingly, when the user selects other various required multimedia programs, the setting mode of the clock frequency of the TS data packets for distinguishing the identifications is also carried out by adopting the mode.
Further, the determination of the transmission rate of the TS packets for distinguishing the identification can be divided into the following two ways.
In the first transmission rate determining mode, the sum of the acquired transmission rates of the multiple TS streams is analyzed, and then the clock frequency of the TS data packets with the distinguishing marks is set according to the transmission rates of the multiple TS streams, the serial-parallel transmission mode of the TS streams and/or the serial-parallel transmission mode of the TS data packets with the distinguishing marks. That is, in the first transmission rate determining method, the clock frequency of the TS packets with the distinguishing mark is set according to the sum of the obtained transmission rates of the multiple TS streams, so that it is possible to prevent the TS packets with the distinguishing mark from being completely transmitted in time due to too small clock frequency setting of the TS packets with the distinguishing mark, and to prevent resource waste in the digital multimedia receiving device due to too large clock frequency setting of the TS packets with the distinguishing mark.
Referring to fig. 9, TS packets identified by the differentiation are sent to the decryption unit based on a fixed transmission rate, which is greater than the sum of the transmission rates of the multiple TS streams.
Specifically, the clock frequency of the TS data packet with the distinguishing identifier is set to a relatively fixed value, which is greater than or equal to the sum of the transmission rates of the obtained multiple TS streams, where the setting manner of the clock frequency of the TS data packet with the distinguishing identifier may be various, and those skilled in the art may refer to the prior art and the TS stream decryption manner to change, which is not described herein in detail.
For example, the clock frequency of the identified TS packets may be set according to the sum of the transmission rates of all currently existing single program TS streams, assuming that all currently existing single program TS streams include TS1-1, TS1-2 in the obtained TS1, TS2-1, TS2-2, and TS2-3 in the TS2, wherein the transmission rate of the single program TS1-1 is 12Mbps, the transmission rate of the single program TS1-2 is 28Mbps, the transmission rate of the single program TS2-1 is 10Mbps, the transmission rate of the single program TS2-2 is 14Mbps, the transmission rate of the single program TS2-3 is 24Mbps, the sum of the transmission rates of all currently existing single program TS streams is 88Mbps, when the serial transmission mode is adopted, the clock frequency of the identified TS packets is equal to the sum of the transmission rates of all currently existing program TS streams, the clock frequency of the TS packets with the distinguishing mark can be set to 88MHz, when the parallel transmission mode is adopted, the clock frequency of the TS packets with the distinguishing mark is the average value of the sum of the transmission rates of all the single program TS streams existing at present to the total number of parallel lines, and assuming that the total number of the parallel lines is 8, the clock frequency of the TS packets with the distinguishing mark can be set to 11 MHz. The clock frequency of the TS data packets for distinguishing the marks is set in the mode, and the clock frequency of the TS data packets for distinguishing the marks is always the value no matter which multimedia programs are selected by the user.
Or, the clock frequency of the TS packets for distinguishing the identifier may also be set according to the maximum capacity of each TS stream specified in the TS stream protocol, for example, assuming that the maximum capacity of each TS stream specified in the current TS stream protocol is 108Mbps, when the serial transmission method is adopted, the clock frequency of the TS packets for distinguishing the identifier is set to 108MHz by taking the maximum capacity of each TS stream specified in the TS stream protocol as the clock frequency of the TS packets for distinguishing the identifier; when the parallel transmission mode is adopted, the average value of the maximum capacity of each TS flow to the total number of parallel lines specified in the TS flow protocol is used as the clock frequency of the TS data packet for distinguishing the identification, and if the total number of the parallel lines is assumed to be 8, the clock frequency of the TS data packet for distinguishing the identification is set to be 13.5 MHz. The clock frequency of the TS data packets for distinguishing the marks is set in the mode, and the clock frequency of the TS data packets for distinguishing the marks is always the value no matter which multimedia programs are selected by the user.
Or, the clock frequency of the TS packets for distinguishing the identifiers may also be determined according to the number of the desired multimedia programs selected by the user, specifically, the maximum value of the sum of the transmission rates of two single program TS streams in all the single program TS streams is determined according to the transmission rates of all the single program TS streams existing at present, and the maximum value is used as a reference for setting the clock frequency of the TS packets for distinguishing the identifiers when the number of the desired multimedia programs selected by the user is two. When a serial transmission mode is adopted, the maximum value can be directly used as the number of the required multimedia programs selected by the user to be two, the clock frequency of the identified TS data packets is distinguished, and when a parallel transmission mode is adopted, the average value of the maximum value to the total number of parallel lines can be used as the number of the required multimedia programs selected by the user to be two, the clock frequency of the identified TS data packets is distinguished. At this time, when the number of the desired multimedia programs selected by the user is two, the clock frequency of the TS packets of the discrimination indication is always the maximum value. Similarly, according to the transmission rates of all the existing single program TS streams, determining the maximum value of the sum of the transmission rates of three single program TS streams in all the single program TS streams, setting the reference for distinguishing the clock frequency of the identified TS data packet when the maximum value is taken as the number of the required multimedia programs selected by the user to be three, and when a serial transmission mode is adopted, directly taking the maximum value as the clock frequency of the identified TS data packet when the number of the required multimedia programs selected by the user is three; when the parallel transmission mode is adopted, the average value of the maximum value to the total number of the parallel lines can be used as the number of the required multimedia programs selected by the user to be three, the clock frequency of the identified TS data packet is distinguished, at the moment, when the number of the required multimedia programs selected by the user is three, the clock frequency of the identified TS data packet is always the maximum value, and therefore, the maximum value of the sum of the transmission rates corresponding to the number of the required multimedia programs possibly selected by the user is calculated in sequence, and the clock frequency of the identified TS data packet is set.
After the clock frequency of the TS data packets with the distinguishing marks is set, the TS data packets with the distinguishing marks, which are formed after the synchronous marks in the header information of the obtained multi-path TS streams are changed, form a new data stream and are sent to a decryption unit, the clock frequency of the TS data packets with the distinguishing marks is the clock frequency set in the step, and the distinguishing marks in the TS data packets with the distinguishing marks are the synchronous marks changed in the header information.
Furthermore, the clock frequency of the TS data packet of the distinguishing mark is set to a relatively fixed value, so that when the TS data packet of the distinguishing mark is sent to the decryption unit for decryption, the decryption unit does not need to judge and adjust the clock frequency of the TS data packet of the distinguishing mark with dynamically changed rate in real time, thereby improving the working stability and reliability of the digital multimedia receiving device.
Further, in a transmission cycle, the TS data packets of the distinguishing marks in the storage unit are sent to the decryption unit, and when the TS data packets of the distinguishing marks in the storage unit are sent completely and the storage unit does not receive new TS data packets of the distinguishing marks, the TS data packets of the distinguishing marks are filled in an empty packet mode until the storage unit receives new data.
For TS data packets which are sent with a fixed transmission rate and are distinguished, when the TS data packets are merged into a new data stream, when two adjacent TS data packets are continuous, the TS data packets are directly and continuously merged into the TS data packets which are distinguished, and no gap exists between the two adjacent TS data packets which are distinguished; when two adjacent TS data packets with distinguishing marks are discontinuous, namely the TS data packets with distinguishing marks cached in the storage unit are sent completely, and the storage unit does not receive other new TS data packets with distinguishing marks yet, special processing needs to be carried out on a new data stream formed by the TS data packets with distinguishing marks, so that the situation that the transmission of the TS data packets with distinguishing marks is interrupted or other programs watching of a user are influenced due to a gap between the two adjacent TS data packets with distinguishing marks is prevented; for example, when there is no TS packet for transmission in the storage unit, a null packet may be filled in the new data stream, and the filling form of the null packet may be various.
For example, referring to fig. 9, when two adjacent TS packets with distinguishing marks are not consecutive, a null packet containing no useful information is filled in a new data stream formed by the TS packets with distinguishing marks, so that the clock signal of the TS packets with distinguishing marks continues to output data, which is useless data.
Specifically, after the previous TS data packet with the distinguishing identifier is sent to the decryption unit, the next target TS stream does not reach the storage unit; therefore, in order to distinguish the transmission continuity of the identified TS data packets, a null packet which does not contain a useful signal is filled in a new data stream formed by the transmitted identified TS data packets, wherein the null packet can be 0x00, 0xff or other null packets which do not contain a useful signal, and the clock signal of the identified TS data packets is enabled to continuously output data; at this time, the data output by the TS data packet with the distinguishing mark is useless data, when the next TS data packet with the distinguishing mark arrives, the filling of the empty packet is stopped, and the next TS data packet with the distinguishing mark is sent to the decryption unit.
Alternatively, referring to fig. 9, when two adjacent TS packets with different identifiers are not consecutive, the output of the clock signal is interrupted, and the transmission of data is stopped.
Specifically, after the previous TS data packet with the distinguishing identifier is sent to the decryption unit, the next target TS stream does not reach the storage unit; at this time, the TS data packets of the distinguishing marks are filled with empty packets which do not contain useful signals, so that the clock signals of the TS data packets of the distinguishing marks stop outputting data, when the next TS data packets of the distinguishing marks arrive, the empty packets are stopped being filled, and the next TS data packets of the distinguishing marks are sent to the decryption unit according to the clock frequency of the TS data packets of the distinguishing marks.
Further, as shown in fig. 10, when a decryption unit for decryption is inserted, the decryption unit transmits information to the SOC chip through the CMD (i.e., a decryption unit control command), and the SOC determines whether to support a function of decrypting multiple TS streams simultaneously according to the information of the decryption unit. If the decryption unit is detected not to support the TS mixed flow function, the SOC chip does not perform the TS flow merging action when processing the information flow. Specifically, when two paths of encrypted information streams are input into the decryption unit, only the information stream of the current channel is decrypted, and the other path of information stream cannot be decrypted; if the encryption stream is one path of encryption stream and the clear stream is one path of clear stream, the encryption stream is decrypted through the IC card, and the clear stream does not need to be decrypted through the decryption unit.
If the decryption unit does not support the TS mixed flow function, the SOC chip conducts a TS flow merging action on input information flows when processing the information flows no matter whether the input information flows are encrypted or not, the merged TS flows enter the decryption unit, the encrypted flows are decrypted, the non-encrypted flows are returned to the SOC chip after not being processed, and the SOC chip conducts flow splitting on the TS flows output after being decrypted by the decryption unit according to the former merging principle.
In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A decryption method for a broadcast receiving apparatus to receive a plurality of TS streams, the method comprising:
respectively distinguishing and identifying TS data packets in the obtained multiple TS streams, and identifying which TS stream each TS data packet belongs to so that the decrypted TS data packets can be repackaged according to the original TS stream to which the TS data packets belong;
the TS data packets with the distinguishing identifications are sent to a decryption unit, the decryption unit decrypts the TS data packets with the distinguishing identifications in a time-sharing mode, and the decrypted TS data packets are returned;
and receiving the returned TS data packets, and classifying and packaging the decrypted TS data packets according to the rule for distinguishing the identification to form a multi-channel program.
2. The TS stream decryption method of claim 1, wherein the distinguishing identifier is respectively performed on the TS packets in the obtained multiple TS streams, specifically: and changing the synchronous identification in the header information of the TS data packet to ensure that the synchronous identifications of the TS data packets of the same TS flow are the same.
3. The TS stream decryption method of claim 2, wherein the classifying and encapsulating the decrypted TS packets to form a multi-channel program specifically comprises:
and determining the original TS stream of the TS data packet according to the synchronous identification change rule, packaging the TS data packet of the original TS stream belonging to the same path into one path, and recovering the synchronous identification of the TS stream before change to form a multi-path program.
4. The TS stream decryption method of claim 1, wherein said sending the identified TS packets to a decryption unit specifically comprises:
and determining the transmission rate of the TS data packets with the distinguishing marks according to the sum of the transmission rates of the multiple TS streams, the serial-parallel transmission mode of the TS streams and/or the serial-parallel transmission mode of the TS data packets with the distinguishing marks, and sending the TS data packets with the distinguishing marks to a decryption unit at the transmission rate.
5. The TS stream decryption method of claim 1, wherein said sending the identified TS packets to a decryption unit specifically comprises:
and sending the TS data packet of the distinguishing mark to a decryption unit based on a fixed transmission rate, wherein the fixed transmission rate is larger than the sum of the transmission rates of the multiple TS streams.
6. The TS stream decryption method of claim 5, wherein the sending the TS packets identified by the differentiation identifier to a decryption unit based on a fixed transmission rate specifically comprises:
and in a transmission period, sending the TS data packet of the distinguishing identifier in the storage unit to a decryption unit, and filling a data stream formed by the TS data packet of the distinguishing identifier in a form of an empty packet when the TS data packet of the distinguishing identifier in the storage unit is sent completely and the storage unit does not receive a new TS data packet of the distinguishing identifier until the storage unit receives new data.
7. The TS stream decryption method of claim 6, wherein the filling of the TS packets with the distinguishing identifier in the form of null packets specifically includes: the clock signal is continuously output, and empty packets containing no useful information are sent.
8. The TS stream decryption method of claim 6, wherein the filling of the TS packets with the distinguishing identifier in the form of null packets specifically includes: the clock signal interrupts the output and stops transmitting 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 (4)

* 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
CN116112620A (en) * 2023-01-17 2023-05-12 山东鲁软数字科技有限公司 Processing method and system for improving video stream multipath merging stability

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 西安电子科技大学 MPEG-2 single program transport stream multiplexing method
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 西安电子科技大学 MPEG-2 single program transport stream multiplexing method
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 (6)

* 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
CN114630007B (en) * 2020-12-11 2024-04-26 华为技术有限公司 Display synchronization method, electronic device and readable storage medium
CN116112620A (en) * 2023-01-17 2023-05-12 山东鲁软数字科技有限公司 Processing method and system for improving video stream multipath merging stability

Similar Documents

Publication Publication Date Title
CN100563112C (en) Digital multimedia broadcasting receiver and method for reproducing digital multimedia data
EP1086579B1 (en) Decoder for, and method of, processing a transport packet stream
CN102957961B (en) Share the method for encrypted digital television program, device and digital television receiver
CN100397895C (en) Data processing device and method, and digital broadcast receiver
CN101355640A (en) Multi-display digital television set-top box
CN101416483A (en) Transport stream dejittering
CN1226357A (en) Block data form for digital data storage medium
JP2010051030A (en) Decoding and decryption of partially encrypted data
CN108551590A (en) TS method for stream processing and device are received for broadcast receiver
EP2317755B1 (en) Multiplexed transport interface between demod and set top SoCs
JP3348683B2 (en) Digital broadcast receiver
EP1209922A2 (en) Content supply method and content data recording/reproducing method and apparatus
CN108712679A (en) A kind of broadcast receiver
CN201298872Y (en) Multi-display digital TV set-top box
US7779442B1 (en) Information distribution system
US20020118608A1 (en) Transmission device and method, reception device and method, recording medium and program
KR101414348B1 (en) Stream generation method and broadcast reception device
JPWO2013118545A1 (en) TRANSMISSION DEVICE, TRANSMISSION METHOD, RECEPTION DEVICE, RECEPTION METHOD, PROGRAM, AND ELECTRONIC DEVICE
WO2019219056A1 (en) Ts processing method and device
JP4091161B2 (en) Broadcast signal demodulating apparatus and broadcast signal demodulating method
CN108600832A (en) A method of TS streams are decrypted
CN108429928A (en) A method of TS streams are decrypted
KR20130048047A (en) Method for processing two or more scrambled contents in broadcast receiver
KR20000016059A (en) An adaptive decoding system for processing encrypted and non-encrypted video data
KR101366278B1 (en) Broadcasting receiver and method of processing a broadcasting data

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