WO2019219056A1 - Procédé et dispositif de traitement de ts - Google Patents

Procédé et dispositif de traitement de ts Download PDF

Info

Publication number
WO2019219056A1
WO2019219056A1 PCT/CN2019/087205 CN2019087205W WO2019219056A1 WO 2019219056 A1 WO2019219056 A1 WO 2019219056A1 CN 2019087205 W CN2019087205 W CN 2019087205W WO 2019219056 A1 WO2019219056 A1 WO 2019219056A1
Authority
WO
WIPO (PCT)
Prior art keywords
stream
identifier
packets
packet
streams
Prior art date
Application number
PCT/CN2019/087205
Other languages
English (en)
Chinese (zh)
Inventor
尹伟
Original Assignee
青岛海信电器股份有限公司
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
Priority claimed from CN201810470234.0A external-priority patent/CN108429928A/zh
Priority claimed from CN201810469837.9A external-priority patent/CN108737889A/zh
Priority claimed from CN201810469172.1A external-priority patent/CN108600832A/zh
Priority claimed from CN201810470418.7A external-priority patent/CN108712679A/zh
Priority claimed from CN201810469738.0A external-priority patent/CN108650548A/zh
Priority claimed from CN201810471962.3A external-priority patent/CN108551590A/zh
Application filed by 青岛海信电器股份有限公司 filed Critical 青岛海信电器股份有限公司
Publication of WO2019219056A1 publication Critical patent/WO2019219056A1/fr

Links

Images

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
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof

Definitions

  • the present application relates to the field of digital multimedia technologies, and in particular, to a method and an apparatus for processing a TS stream.
  • MPEG-2 (based on digital storage media moving image and voice compression standards) is an image compression standard developed by ISO/IEC/JTC1/SC29/WG11, which is adapted to the generation, editing, storage, transmission and display of digital television programs. Developed for comprehensive requirements, it is widely used in digital TV broadcasting and DVD. At present, multimedia programs such as television programs are basically compressed and packaged by the MPEG-2 standard to form a TS stream (Transport Stream). The TS stream is channel-coded and modulated and transmitted to the channel for transmission.
  • the digital multimedia receiving device When the user views the multimedia program, the digital multimedia receiving device extracts the TS stream corresponding to the multimedia program selected by the user from the plurality of TS streams according to the PID (Package Identification) of the TS stream corresponding to the multimedia program selected by the user. And decrypting the program content in the TS stream, and the decrypted program content can be played for the user to watch.
  • PID Package Identification
  • the digital multimedia receiving device needs to extract the TS stream of the multi-channel multimedia program and decrypt the program content in the multi-channel TS stream.
  • the purpose of the present application is to provide a TS stream processing method and apparatus for decrypting multiple TS streams to realize playback or recording of multimedia programs corresponding to multiple TS streams.
  • the present application provides a TS stream processing method, which includes separately distinguishing TS packets in the acquired multiple TS streams to form a plurality of TS packets and a first identifier.
  • the second distinguishing identifier is a plurality of TS data packets, the first distinguishing identifier is used to identify the first road TS stream, and the second distinguishing identifier is used to identify the second road TS stream;
  • the plurality of TS packets that are identified by the two are decrypted; and the plurality of decrypted TS packets are classified and packaged according to the distinguishing identifier to form a multi-channel program.
  • FIG. 1 is a schematic diagram of a TS stream data format description
  • FIG. 2 is a schematic diagram of a broadcast receiving apparatus according to an embodiment of the present application.
  • 3a is a schematic diagram of a transmission of a TS packet in a two-way TS stream according to an embodiment of the present application
  • FIG. 3b is a schematic diagram of another transmission of a TS packet in a two-way TS stream according to an embodiment of the present application.
  • 3c is a schematic diagram of combined transmission of TS data packets in two TS streams according to an 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. 5b is a fourth schematic diagram of a broadcast receiving apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of steps of a TS stream processing method according to an embodiment of the present application.
  • 6b is a schematic diagram of steps of performing TS stream processing on two TS streams in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of a step of determining a transmission rate of a TS packet that distinguishes an identifier according to an embodiment of the present application
  • FIG. 8 is a schematic diagram of determining a first transmission rate of a TS packet that distinguishes an identifier according to an embodiment of the present application
  • FIG. 9 is a schematic diagram of determining a second transmission rate of a TS packet that distinguishes an identifier according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a CI mode determination process in an embodiment of the present application.
  • FIG. 11 is a fifth schematic diagram of a broadcast receiving apparatus according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic flowchart diagram of a TS stream processing method provided by an embodiment of the present application.
  • the two-way TS stream is used as an example for description, and the situation of the multi-channel TS stream is similar to that of the two paths, and no redundant description is made.
  • the TS stream digital TV set-top box receives a segment of code stream, and each TS stream carries some information, such as Video, Audio, and PAT (Program Association Table), PMT (Program Map Table, which we need to learn). Program map table and other information.
  • the TS stream is constructed as shown in FIG. 1.
  • the TS stream is a packet-based bit stream format, and each packet is 188 bytes or 204 bytes. For 204 bytes, a 16-byte CRC (Cyclic Redundancy Check) check data is added after 188 bytes, and the other formats are the same.
  • CRC Cyclic Redundancy Check
  • the synchronization identifier is a transmission identifier under the MPEG-2 TS transmission standard, which is usually a fixed value of 0x47;
  • 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 of the packet header information of a packet in a TS stream is 0x0000, the data of this packet is the PAT table in DVB (Digital Video Broadcasting).
  • DVB Digital Video Broadcasting
  • the apparatus includes at least an identification unit 30, a TS stream reconstruction unit 40, and a decryption unit 50.
  • the identifier unit 30 is configured to separately distinguish and identify the TS data packets in the acquired multiple TS streams, and form a plurality of TS data packets having the first differentiated identifier and the plurality of TS data packets of the second differentiated identifier, where the first The distinguishing identifier is used to identify the first TS stream, and the second distinguishing identifier is used to identify the second TS stream.
  • the multipath is greater than or equal to two.
  • the decryption unit 50 decrypts the plurality of TS packets having the first distinguishing identifier and the second distinguishing identifier in a time division manner.
  • the TS stream reconstruction unit 40 is configured to classify and encapsulate the decrypted plurality of TS packets according to the distinguishing identifier.
  • the apparatus may further include a plurality of demodulator 10, a storage unit 20, and a decoder 60.
  • Each demodulator 10 is used to demodulate its received broadcast television signal to form a multiplexed TS stream.
  • the storage unit 20 stores the multiplex TS streams output from the plurality of demodulator 10.
  • the decoder 60 is operative to decode the repackaged multiplexed TS streams to form a multiplexed program.
  • the multiplexed TS stream is input to the storage unit 20.
  • the identification unit 30 distinguishes the TS packets of the multiple TS streams stored in the storage unit 20 to determine which TS streams each of the TS packets in the multiple TS streams originate from, and further differentiates the identified TS packets. And sent to the decryption unit 50 according to the chronological order of the first in first out, and based on a certain transmission rate.
  • the decryption unit 50 decrypts the differentiated TS stream according to its preset decryption rule, and transmits the decrypted TS packet to the TS stream reconstruction unit 40 after decryption.
  • the TS stream reconstruction unit 40 distinguishes the decrypted TS packets according to the distinguishing identifier, and repackages the TS packets belonging to the same TS stream into one TS stream.
  • the final decoder 60 decodes the repackaged TS packets to form a multiplexed program.
  • one decryption unit can only decrypt one TS packet at a time, as shown in FIG. 3a, at time t, one TS packet of Packet TS1 and one TS packet of TS2, Packet2-
  • the decryption unit cannot decrypt the received data packets Packet1-1 and Packet2-1 at the same time.
  • the decryption unit receives the packet Packet1-1, and if at time t2, the decryption unit further receives the TS packet Packet2-1 of TS2, at this time, the decryption unit is working on the TS packet.
  • Packet1-1 performs processing, and the decryption unit cannot receive and process the packet Packet2-1, which inevitably causes processing conflicts between the data packets, causing partial data packets to be lost or unable to be decrypted, thereby affecting the integrity of the TS stream data. , affecting users to watch or record TV shows.
  • a storage unit 20 is added between the demodulator 10 and the decryption unit 50, and the storage unit 20 will receive TSs of the multiple TS streams.
  • the data packets are stored and sorted in the order of receiving time, and the stored TS data packets are sent to the identification unit 30 in the stored order and differentiated and identified by the TS data packets, thereby avoiding the transmission of TS data packets in different TS streams. Time conflict issues.
  • the two TS data packets are two data packets stored adjacent to each other, but the storage is not required.
  • Those skilled in the art can also adopt other judgment mechanisms to specify the storage order of the two TS packets in this case.
  • the TS packets of the multiple TS streams form a new data stream in the receiving order, and then the data stream is identified and sent to the decryption unit for decryption.
  • the decryption unit performs the same data packet of Packet 1-1, Packet 1-2, and Packet 1-3 from the same TS stream in the newly formed data stream according to the distinguishing identifier. Decryption rules are decrypted; Packet 2-1, Packet 2-2, and Packet 2-3 from another TS stream are decrypted according to another decryption rule.
  • the TS packet in the multi-channel TS stream reconstructs 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 are specifically described in the following contents. And examples, not to describe too much here.
  • the identifier unit 30 is specifically configured to: identify the synchronization identifier in the header information of the TS packet in the multiple TS streams by using a differentiated identifier, for example, in the header information of the TS packet in the two TS streams.
  • the synchronization identifier is modified to be the first identifier or the second identifier, so that the identifiers of the TS packets belonging to the same TS stream are the same.
  • the inherent synchronization identifier is 0x47, and different changes can be made to the synchronization identifiers in the TS packet header information in different TS streams.
  • the synchronization identifier in the header information can be changed to 0x48; the synchronization identifier in the TS packet of the other TS stream can be changed to 0x49.
  • the TS reconstruction unit 40 is specifically configured to: according to the modified synchronization identifier, identify which TS stream the TS packet is derived from after decryption, and re-encapsulate the TS packet originating from the same TS stream into one TS stream.
  • the decoder can only recognize TS packets whose synchronization identifier is eigenvalue 0x47, TS packets that are identified as 0x48 and 0x49 after the change are not recognized. Therefore, the TS reconstruction unit 40 receives the decrypted TS data packet sent by the decryption unit 50, and distinguishes the TS data of the identifier after decryption according to the classification rule of the TS data packet (ie, the changed synchronization identifier: eg, 0x48, 0x49, etc.) The packet is distinguished, and the synchronization identifier (e.g., 0x48, 0x49, etc.) of the TS packet is changed to the original synchronization identifier (0x47) so that it can satisfy the inherent protocol standard and output to the decoder 60 to form a multi-channel program.
  • the synchronization identifier e.g., 0x48, 0x49, etc.
  • the TS reconstruction unit 40 is specifically configured to: determine, according to the first distinguishing identifier, a path of the multiple TS streams to which the decrypted plurality of TS data packets originally belong, and encapsulate the TS data packet of the first differentiated identifier into A TS stream, and modifying the synchronization identifier of the encapsulated TS stream to a pre-change TS stream synchronization identifier.
  • the synchronization identifiers of the plurality of decrypted TS packets are modified as the pre-change TS stream synchronization identifier as an example for detailed description.
  • the identification unit 30 and the TS stream reconstruction unit 40 have a channel for transmitting data information to each other, so that the TS stream reconstruction unit 40 can acquire the distinguishing rule of the TS packet from the identifier unit 30, and according to the distinguishing rule. And identifying which TS stream each of the decrypted TS packets originates from, and re-packaging the TS packets that are derived from the same TS stream after decryption into one TS stream.
  • the identification unit 30 changes the synchronization identifier of the TS1 packet from 0x47 to 0x48, the synchronization identifier of the TS2 packet is changed from 0x47 to 0x49; and the TS stream reconstruction unit passes the information channel from the identification unit.
  • the identification rule is obtained in 30, and the packet with the synchronization identifier 0x48 in the decrypted TS packet is changed to 0x47 and re-encapsulated as TS1, and the packet whose synchronization identifier is 0x49 is changed to 0x47 and re-encapsulated as TS2.
  • the functions of the storage unit 20, the identification unit 30, and the TS stream reconstruction unit 40 can be implemented by an integrated chip (i.e., the TS data processing chip 70).
  • the multiple TS streams are all encrypted TS streams.
  • the multimedia receiving apparatus provided by the solution can decrypt the multiplexed TS stream based on a decryption unit.
  • the solution of the present application will still use multiple TSs.
  • the TS packets in the stream are differentiated, and the TS packets that distinguish the identifiers are sent to the decryption unit in chronological order.
  • the decryption unit selectively decrypts the TS packets that need to be decrypted according to the distinguishing identifier, and decrypts the identifiers after decryption.
  • the TS packet then changes its synchronization identifier to the synchronization identifier inherent in the existing standard protocol to form a multi-channel program.
  • the judging module may be added before the identifier is distinguished, and then the received TS stream is determined to be an encrypted stream. If it is an encrypted stream, the distinguishing identifier is performed. Otherwise, the non-encrypted TS stream is directly output to the decoder. This is not too restrictive.
  • IIC Inter-Integrated Circuit
  • the system chip controls the demodulator 10 through the IIC, sets the data format of the output TS stream and the channel to be demodulated, and the demodulator 10 controls the channel through the IIC control Tuner, and the Tuner takes the frequency of the demodulator 10
  • the IF/IQ signal is transmitted to the demodulator 10 for demodulation; the demodulator 10 transmits the demodulated encrypted TS stream (such as TS1 and TS2 in FIG. 2) to the storage unit 20; and the system chip passes the IIC control flag.
  • the unit 30 is configured to enable the identification unit 30 to distinguish the TS packets in the TS1 and the TS2 received by the storage unit 20, and the TS packets having different distinguishing identifiers form a new data stream (ie, the MS stream in FIG. 2 and FIG. 4).
  • the new data stream is sent to the decryption unit 50, which in turn decrypts the new data stream formed by the TS packets having different distinguishing identities. .
  • the decryption unit 50 may be a CI card, which is also called a CAM (Conditional Access Module) card, and refers to a module for decrypting a digital multimedia program signal.
  • the TV operator authorizes the CAM demodulator manufacturer to enable the CAM manufacturer to add descrambling in a certain way, and the encryption and decryption mode descrambles and scrambles the encrypted payment signal issued by the operator. Decrypt encryption. Therefore, users can watch different payment signals issued by different operators by replacing different CAM cards.
  • the CI card is dedicated to digital TV cards or high-end set-top boxes and can be used for cable digital TV cards and satellite digital TV cards. It can also be used for set-top boxes with separated machine cards, digital TV integrated machines, and so on.
  • the TS stream reconstruction unit 40 classifies and encapsulates the decrypted plurality of TS packets according to the distinguishing identifier.
  • the decoder 60 is configured to decode the plurality of TS data packets of the classification package to form video data, audio data, and other data.
  • the decoder 60 decodes and splits the TS stream into video data, audio data, and other data according to the PID information in the header information of the TS packet.
  • the decoder splits the decrypted TS stream into video data and audio data for display and playback, respectively.
  • IF Intermediate Frequency
  • IQ In-phase Quadrature
  • DVB-S2 DVD-Satellite-Second Generation, a second generation satellite digital video broadcasting
  • DVB-T2 DVD-Second Terrestrial, second generation terrestrial digital video broadcasting
  • DVB-C DVD-Cable, cable digital video broadcasting
  • a tuner is used to receive the above DVB-S2, DVB-T2
  • the /C signal is sent to the demodulator 10 for demodulation.
  • the tuner receives the signal (DVB-S2, DVB-T2/C), and sends the signal to the demodulator 10 in the form of IQ and IF signals, and the demodulator 10 acquires the corresponding signal according to the received signal.
  • the TS stream is simultaneously determined according to the PID of the TS stream corresponding to the multimedia program information selected by the user, and the TS packet to be decrypted to be sent to the decryption unit 50;
  • the storage unit 20 connected to the output of the demodulator 10 receives the TS a data packet, and the identification unit 30 separately distinguishes the TS data packets in the acquired multiple TS streams;
  • the decryption unit 50 receives the TS data packets of the differentiated identifiers sent by the storage unit, and separately distinguishes the data packets in the different time periods.
  • the identified TS packet is decrypted. Further, the decryption unit 50 sends the decrypted differentiated identifier TS packet to the TS stream reconstruction unit 40 through the output end, and the TS stream reconstruction unit 40 decrypts the identifier according to the differentiated identification rule.
  • the differentiated identified TS packets are differentiated and form a decrypted multiplexed TS stream that is sent to decoder 60 to form a multiplexed program for playback or/and recording.
  • the storage unit, the identification unit, the TS stream reconstruction unit, and the decoder are integrated into a system on chip SOC (System on Chip) 80.
  • the system chip SOC 80 includes the functions and functions of the above units. Specifically, when the multiplexed TS stream is demodulated by the demodulator 10, the multiplexed TS stream is input and stored in the system chip SOC 80.
  • the system chip SOC 80 performs differential identification on the TS packets of the multiple TS streams to determine which TS streams each of the TS packets in the multiple TS streams originate from, and further differentiates the identified TS packets according to the advanced first. The chronological order is sent to the decryption unit 50 based on a certain transmission rate.
  • the decryption unit 50 decrypts the differentiated TS stream according to its preset decryption rule, and transmits the decrypted TS packet back to the system chip SOC 80.
  • the system chip SOC 80 distinguishes the decrypted TS data packets according to the distinguishing identifier, and repackages the TS data packets belonging to the same TS stream into one TS stream to form a packaged multiple TS stream, and finally repackages the multiple channels.
  • the TS stream is decoded to form a multi-channel program.
  • the identification unit, the TS stream reconstruction unit, and the decoder are integrated into a system on chip SOC (System on Chip) 80.
  • the memory unit is located outside of the system chip SOC.
  • the storage unit includes a first end, a second end, and a third end.
  • the first end of the storage unit includes at least one input that is respectively coupled to at least one output of the demodulator.
  • the second end of the storage unit includes at least one output end, the at least one output end being respectively connected to at least one input end of the SOC chip.
  • the third end of the storage unit is connected to the decryption unit.
  • the decryption unit is also connected to the SOC chip through the CMD interface.
  • the TS packets in the two TS streams are separately marked in the storage unit, and the marked TS packets are further distinguished. It may be sent to the decryption unit according to the chronological order of the first in first out, and based on a certain transmission rate, and the decryption unit decrypts the sent TS data packet according to its preset decryption rule, and decrypts the decrypted TS data after decryption.
  • the packet is sent back to the storage unit, and the TS packets from the two TS streams are re- distinguished according to the rule of distinguishing the mark in the storage unit, that is, the original two-way data is restored, and then the subsequent processing is performed to form two program outputs. .
  • the method for decrypting multiple TS streams includes the following steps S1-S3.
  • Step S1 Perform differential identification on the TS packets in the obtained multiple TS streams to form a plurality of TS data packets having the first distinguishing identifier and a plurality of TS data packets of the second distinguishing identifier, where the first distinguishing identifier It is used to identify the first TS stream, and the second distinguishing identifier is used to identify the second TS stream.
  • each radio frequency signal corresponds to one TS stream
  • each TS stream further includes a single program TS stream corresponding to at least one television program
  • each single program TS stream corresponding to each television program has a corresponding PID.
  • each program signal corresponds to one TS stream.
  • the user may have the need to simultaneously watch the program and record another program, which requires a decryption unit for two or more channels.
  • the TS stream is decrypted.
  • each TS packet in the received TS stream is identified to determine which TS stream each TS packet belongs to, and the decrypted TS packet can be re-encapsulated according to the TS stream to which the identification identifier belongs.
  • the synchronization identifier in the header information of the TS packet can be changed.
  • the inherent synchronization identifier is 0x47, and different changes can be made to the synchronization identifiers in the TS packet header information in different TS streams. Taking two paths as an example, in the TS packet in the first TS stream, the synchronization identifier in the header information can be changed to 0x48; the synchronization identifier of the TS packet in the second TS stream can be changed to 0x49.
  • the SOC chip After the decryption unit decrypts the differentiated TS packet, the SOC chip repackages the TS packet with the synchronization identifier 0x48 into the first TS stream according to the synchronization identifier, and identifies the TS packet with the synchronization identifier as 0x49. Repackaged into a second TS stream.
  • Step S2 Demultiplexing a plurality of TS data packets having a first distinguishing identifier and a second distinguishing identifier in a time division manner.
  • TVs are digital cable TVs that support cable digital TV reception.
  • current digital cable TVs have encryption protection and need to be decrypted using a decryption unit (ie, digital TV smart card) designated by the local radio and television department.
  • a decryption unit ie, digital TV smart card
  • the decryption unit Transmitting the TS packet with the differentiated identifier to the decryption unit for decrypting the program TS stream, and the decryption unit decrypts the encrypted TS packet separately according to a decryption rule preset by the radio and television department or a related manufacturer, and then The decrypted TS packets are sent to the SOC chip to form a corresponding program.
  • Step S3 classifying and packaging the decrypted plurality of TS data packets according to the distinguishing identifier to form a multi-channel program.
  • the SOC chip can only receive and identify the TS stream data with the synchronization identifier of 0x47, the TS packets with the modified synchronization identifiers of 0x48 and 0x49 are not recognized, and the SOC chip is difficult to output normally.
  • the program is for the user to watch or/and record. Therefore, the SOC chip receives the decrypted TS packet transmitted by the decryption unit, and distinguishes the decrypted TS packet according to the division rule of the TS packet, and changes the distinguishing identifier to the original identifier.
  • the SOC chip determines, according to the synchronization identifier change rule, the TS stream to which the TS packet originally belongs, and the TS data originally belonging to the same TS stream.
  • the packet is again encapsulated into one TS stream, and the synchronization identifier of the TS stream before the change is restored, that is, the synchronization identifier (such as 0x48, 0x49, etc.) of the TS packet is changed to the inherent synchronization identifier (0x47) of the TS stream before the modification, so that the packet can satisfy
  • the inherent protocol standard is output to the SOC chip to form a multi-channel program.
  • the intrinsic synchronization identifier refers to the synchronization identifier of the packet header information of the TS stream under the existing standard protocol, which is a fixed value of 0x47.
  • the TS packets having the same synchronization identifier are arranged in chronological order into one data stream to form a one-way program.
  • the decrypted data stream can be split into two data streams according to different synchronization identifiers.
  • one way is the TS packet whose synchronization identifier is changed to 0x48, and then the synchronization identifier in the TS packet is changed to the eigenvalue 0x47 to form the decrypted TS1; the other is the TS data whose synchronization identifier is changed to 0x49.
  • the packet changes the synchronization identifier in the TS packet to an eigenvalue of 0x47 to form the decrypted TS2. Further, the decrypted TS1 and TS2 respectively form corresponding programs for playback or recording.
  • the TS data packets in the TS streams output by the demodulator are differentiated and identified, and the TS packets that distinguish the identifiers form a new data transmission stream. Sending the new data transmission stream to the decryption unit for decryption, and then, after decrypting the decryption unit, receiving the TS packet of the decrypted differentiated identifier, and according to the differentiated identification rule, the TS packet of the decrypted differentiated identifier Differentiate to form a multi-channel program.
  • the TS stream when decrypting the TS packet in the new data transmission stream, the TS stream can be decrypted by setting a decryption unit in the digital multimedia receiving device, thereby simplifying the digital multimedia receiving device.
  • the structure reduces the cost of the digital multimedia receiving device.
  • the PID of the TS stream corresponding to the required multimedia program can be obtained, and the TS packet required for decryption is obtained according to the PID of the TS stream corresponding to the required multimedia program.
  • the PID of the TS stream corresponding to the required multimedia program may correspond to a plurality of programs, such as one TS stream corresponding to CCTV1 and CCTV5; and the user selects to watch the CCTV5 program, according to the PID information from the TS stream and the CCTV5 program. Corresponding TS packets.
  • the TS stream processing method provided by the embodiment of the present application is described in detail below by taking two TS streams as an example. As shown in FIG. 7, the TS stream processing method includes the following steps S200-S203.
  • Step S200 Acquire a first TS stream and a second TS stream.
  • the first TS stream and the second TS stream are obtained from the plurality of TS streams generated by the demodulator.
  • Step S201 distinguishing between the first type TS packet from the first TS stream and the second type TS packet from the second TS stream.
  • each radio frequency signal corresponds to one TS stream
  • each TS stream further includes a single program TS stream corresponding to at least one television program
  • each single program TS stream corresponding to each television program has a corresponding PID.
  • each program signal corresponds to one TS stream.
  • the user may have the need to simultaneously watch the program and record another program, which requires decrypting the two TS streams at the same time.
  • the synchronization identifier in the header information of the TS packet can be changed.
  • the inherent synchronization identifier is 0x47, and different changes can be made to the synchronization identifiers in the TS packet header information in different TS streams.
  • the synchronization identifier in the header information can be changed to 0x48; the other channel can be changed to 0x49.
  • TS packets from one of the TS streams as the first type of TS packets
  • TS packets from the other TS stream as the second type of TS packets
  • Step S202 transmitting the first type TS data packet and the second type TS data packet that have been marked differently to a CI card in a serial manner; the CI card sequentially decrypts the received data packet; The CI card decrypts the first type of TS data packets in some time periods, and decrypts the second type of TS data packets in other time periods;
  • a specific case is that the first type of TS packets that have been subjected to the distinguishing flag are placed in the first queue, and the second type of TS packets that have been subjected to the distinguishing flag are placed in the second queue, from the The first queue and the second queue alternately take one TS packet and send it to the one CI card for decryption. It can be simply understood that the CI card is time division multiplexed.
  • the temporary TS stream is discontinuous, which may cause the first queue or the second queue to temporarily have no TS packets; for the purpose of synchronization, if the TS packet is taken If the state of the first queue or the second queue is just empty, add an empty packet with a distinguishing mark to the empty first queue or the second queue at this time; There is no content after decryption.
  • the first step the CI card starts to work; determine whether the first queue has at least one TS packet; if so, jump to the second step, if not, jump to the third step.
  • the second step taking the first TS packet of the first queue to decrypt in the CI card, and then jumping to the third step;
  • Step 3 Determine whether the second queue has at least one TS packet; if yes, jump to the fourth step, if not, jump to the fifth step.
  • the fourth step taking the first TS packet of the second queue to decrypt in the CI card; then jumping to the sixth step.
  • Step 5 Add an empty TS packet to the second queue to decrypt in the CI card; then jump to the sixth step.
  • Step 6 Determine whether the first queue has at least one TS packet; if yes, jump to the second step, if not, jump to the seventh step.
  • Step 7 Add an empty TS packet to the first queue to decrypt in the CI card; then jump to the third step.
  • Step S203 Differentiate the decrypted first type TS data packet and the second type TS data packet according to the rule of distinguishing the mark to form a two-way program output.
  • the decrypted first type TS packet and the second type TS packet are distinguished, and the original two TS streams are restored, and subsequent processing is performed to form two program outputs.
  • These two programs can be used for live broadcast and program recording.
  • the SOC chip receives the decrypted TS data packet sent by the CI card, and distinguishes the decrypted first type TS data packet from the second type TS data packet according to the distinguishing rule of the TS data packet to form two programs. Output.
  • the synchronization identifier in the header information is changed, the TS packets of the same synchronization identifier are arranged in chronological order into one data stream to form a program.
  • the synchronization identifier of one packet header information is changed to 0x48, and the other path is changed to 0x49, after decryption, the TS packet with the synchronization identifier of 0x48 is re-formed as one data stream output.
  • the TS packet whose synchronization is identified as 0x49 is reformed to form another data stream output.
  • TS-1 and TS-2 are obtained from the TS stream according to the PID of TS-1 and the PID of TS-2, where TS-1 and TS-2 may be located in the same TS stream, TS-1 And TS-2 may also be located in different TS streams.
  • the synchronization identifier of each TS packet header information is changed or redefined to form a TS packet that distinguishes the identifier, and then the TS that distinguishes the identifier is The data packets form a new data stream in chronological order.
  • the TS packets that need to be decrypted have two paths, namely TS-1 and TS-2, and after TS-1 and TS-2 are respectively extracted from the multiple TS streams, the synchronization identifier of the TS-1 is changed.
  • At least one TS packet TS-1' and at least one TS packet TS-2' having a second distinguishing identifier are combined to form a new data stream. It is worth mentioning that when the synchronization identifier in the header information of the TS stream is changed, the distinguishing rule that can be followed can be performed according to actual needs. For example, the synchronization identifier in the header information of the multiple TS streams generally starts with 0x47.
  • the synchronization identifiers of the TS packets with different distinguishing identifiers can be 0x48, 0x49, 0x50. ...and as a starting point, wherein the synchronization identifiers of the TS packets having the respective distinguishing identifiers are different from each other.
  • the TS packet includes two types of synchronization identifiers as an example.
  • the TS packets are respectively classified into TS-1 and TS-2, and the synchronization identifier of the TS-1 can be changed to 0x48, and the TS-2.
  • the synchronization ID can be changed to 0x49. It should be noted that, when the header information of the TS packet is changed, only the synchronization identifier of the header information in the TS packet is changed or redefined, and the PID of the program content in the target TS stream is not changed.
  • the TS packet may be distinguished according to the changed synchronization identifier of the different TS packet. And decrypt it.
  • the synchronization identifier of a certain TS packet starts with 0x48, indicating that the currently decrypted TS packet is TS-1', according to the encryption manner of the program content in TS-1', in TS-1' The program content is decrypted.
  • the TS-2 is based on the encryption method of the program content in the TS-2'.
  • the program content in ' is decrypted.
  • the data stream is split into multiple data streams to form corresponding multiples.
  • Road show For example, two TS streams are taken as an example.
  • the two TS streams are TS-1 and TS-2, respectively, and the synchronization identifier in the packet header information of TS-1 and the synchronization identifier of TS-2 are respectively changed to form.
  • the synchronization identifier of the identified TS packet TS-1' starts with 0x48, and the synchronization identifier of the identified TS packet TS-2' is distinguished. Start with 0x49.
  • the TS packets TS-1' and TS-2' of the differentiated identifier are respectively decrypted.
  • the splitting is performed in units of data packets, and the synchronized identifiers of the TS packets TS-1' and TS-2' of the differentiated identifiers are changed again to the inherent synchronization identifier, that is, 0x47, and then sent to the SOC chip to form a corresponding
  • the program is then transferred to the corresponding unit according to the user's play or recording. For example, when the user needs to distinguish the identified TS data packets TS-1' and TS-2' from playing, the differentiated TS data packets TS-1' and TS-2' are transmitted to the decoder, after being decoded.
  • the acquired multiple TS packets need to be stored in the storage unit in chronological order.
  • the decryption unit since a single decryption unit only needs to decrypt one TS stream, it is only necessary to ensure that the decryption unit decrypts the rate and the TS stream transmission rate, that is, the transmitted TS stream does not need to be For storage, real-time TS stream decryption can be realized.
  • the transmission rate of each TS stream in the input multiple TS streams is not the same, different time periods may change, and therefore, it is difficult to ensure the distinguishing identifier.
  • the rate of the TS packet is a constant value, and the scheme also needs to change the synchronization identifier of the header information in the TS packet; therefore, the data packet in the input multiple TS stream needs to be first stored in a storage unit. Then change the synchronization identifier of the TS packet.
  • the "chronological order" can be set according to the actual situation. For example, it can be set according to the chronological order when the user selects each multimedia program, or can be set according to the order of the acquired multiple TS streams. Do too much limit.
  • each TS packet is sequentially extracted from the storage unit according to the sequence of each TS packet in the storage unit, The synchronization identifier of each TS packet is changed to form a corresponding TS packet of the differentiated identifier, and the TS packets of the differentiated identifier are sequentially transmitted to the decryption unit. This design prevents confusion when merging TS packets that distinguish between them.
  • the transmission rate of the identified TS packet needs to be determined according to the following steps, and according to the transmission rate, the differentiated identified TS packet is transmitted to the decryption unit for decryption.
  • Step S110 analyzing the sum of the transmission rates of the multiple TS streams.
  • the TS data packet to be decrypted is extracted from the multiple TS streams according to the PID of the TS stream corresponding to each required multimedia program, and the transmission rate of the data packet to be decrypted in each TS stream can be determined.
  • the synchronization identifier of the TS packet is changed to form the TS packet of the differentiated identifier, since the TS packet of the differentiated identifier is different from the corresponding TS stream, only the synchronization identifier of the TS packet is different, and the others are the same, and thus the parsing is performed.
  • the sum of the transmission rates of the acquired multiple TS streams the sum of the transmission rates of the identified TS packets can be known, so that the transmission rate of the TS packets that distinguish the identifications to the decryption unit is subsequently set.
  • Step S120 determining, according to a sum of transmission rates of the multiple TS streams, a serial parallel transmission manner of the multiple TS streams, and/or a serial parallel transmission manner of the plurality of TS packets having the first distinguishing identifier and the second distinguishing identifier, The transmission rate of the plurality of TS packets of the first distinguishing identifier and the second distinguishing identifier.
  • the TS packets that distinguish the identifiers are usually transmitted in a serial manner. Therefore, for the setting of the transmission rate in this solution, the transmission mode of the identified TS packets may be disregarded, and of course, it may be considered here. Make a limit.
  • the transmission rate of the identified TS packets is numerically the same as the sum of the obtained transmission rates of the TS packets to be decrypted; when the acquired multiple TS streams are used In the parallel transmission mode, the transmission rate of the identified TS packet is numerically the average of the sum of the transmission rates of the acquired TS packets to be decrypted in the total number of parallel lines. For example, it is assumed that two program signals are acquired, which respectively correspond to two TS streams, and the obtained two TS streams are TS1 and TS2, respectively. Referring to FIG.
  • TS1 further includes two single program TS streams, and each single program TS stream corresponds to one multimedia program, and two single program TS streams are TS1-1 and TS1-2, respectively, and single program TS stream TS1-1.
  • the transmission rate is 12 Mbps
  • the transmission rate of the single program TS stream TS1-2 is 28 Mbps
  • the transmission rate of the original TS stream TS1 is 40 Mbps
  • the TS2 includes three single program TS streams
  • each single program TS stream corresponds to one multimedia program
  • three The TS streams of the single program are TS2-1, TS2-2 and TS2-3, the transmission rate of the single program TS stream TS2-1 is 10 Mbps, the transmission rate of the single program TS stream TS2-2 is 14 Mbps, and the single program TS stream TS2
  • the transmission rate of -3 is 24 Mbps
  • the transmission rate of TS2 is 48 Mbps.
  • the user When the desired multimedia program selected by the user is the single program TS stream TS1-1 and the single program TS stream TS2-1, respectively, the user correspondingly selects two target TS streams, which are respectively parsed by TS1-1 and TS2-1.
  • the sum of the transmission rates of the TS streams is the sum of the transmission rate of TS1-1 and the transmission rate of TS2-1, that is, 22 Mbps.
  • the sum of the transmission rates of the differentiated TS packets is also the sum of the transmission rate of TS1-1 and the transmission rate of TS2-1.
  • the setting is made according to the sum of the transmission rates of TS1-1 and TS2-1 and the serial-parallel transmission mode of the acquired multiple TS streams.
  • the sum of the transmission rates of the target TS streams is 22 Mbps, that is, the sum of the transmission rates of the differentiated TS packets is also 22 Mbps; at this time, the identified TS data is distinguished.
  • the new data stream formed by the packet needs to transmit 22 Mbits of data per second. Therefore, the clock frequency of the identified TS packet is set to 22 MHz.
  • the sum of the transmission rates of the TS streams is 22 Mbps, that is, the sum of the transmission rates of the differentiated TS packets is also 22 Mbps;
  • the TS packets of the differentiated identifiers formed by the combination of the identified TS packets are separated on each parallel line, and the clock frequency of the identified TS packets is 2.75 MHz.
  • the manner of setting the clock frequency of the identified TS packets is also performed in the above manner.
  • the determination of the transmission rate of the identified TS packet can be divided into the following two ways.
  • the transmission rate determining mode 1 the sum of the obtained transmission rates of the multiple TS streams is first parsed, and then according to the transmission rate of the multiple TS streams, the serial parallel transmission mode of the TS streams, and/or the differentiated TS data.
  • the serial transmission mode of the packet sets the clock frequency of the TS packet that distinguishes the identification. That is to say, in the transmission rate determining mode 1, the clock frequency of the identified TS packet is set according to the sum of the obtained transmission rates of the multiple TS streams, and the clock frequency of the TS packet distinguished by the identification can be prevented.
  • the TS packets that are too small to distinguish the identifiers cannot be transmitted in time and completely, and at the same time, it is possible to prevent waste of resources in the broadcast receiving apparatus due to the setting of the clock frequency of the TS packets that distinguish the identifiers.
  • the differentiated identified TS data packet is sent to the decryption unit based on the fixed transmission rate, and the fixed transmission rate is greater than the sum of the transmission rates of the multiple TS streams.
  • the clock frequency of the TS packet distinguishing the identifier is set to a relatively fixed value, which is greater than or equal to the sum of the transmission rates of the acquired multiple TS streams, wherein the clock frequency of the identified TS packet is distinguished.
  • the clock frequency of the identified TS packet can be set according to the sum of the transmission rates of all the single program TS streams currently present. It is assumed that all the single program TS streams currently present include TS1-1, TS1-2 in the acquired TS stream TS1 and TS2-1, TS2-2, TS2-3 in the TS stream TS2, wherein the single program TS stream TS1
  • the transmission rate of -1 is 12 Mbps
  • the transmission rate of single program TS stream TS1-2 is 28 Mbps
  • the transmission rate of single program TS stream TS2-1 is 10 Mbps
  • the transmission rate of single program TS stream TS2-2 is 14 Mbps
  • single program TS The transmission rate of the stream TS2-3 is 24 Mbps
  • the sum of the transmission rates of all the single program TS streams present at present is 88 Mbps.
  • the clock frequency of the identified TS packets is equal in value to the sum of the transmission rates of all the single program TS streams currently present, for example, the distinguishing identifier can be set.
  • the TS packet has a clock frequency of 88 MHz.
  • the clock frequency of the differentiated TS packets is numerically the average of the sum of the transmission rates of all the single program TS streams currently present and the total number of parallel lines. Assuming that the total number of parallel lines is eight, the clock frequency of the TS packets that distinguish the identification can be set to 11 MHz. In this way, the clock frequency of the TS packets that distinguish the identifiers is set. Regardless of which multimedia programs are selected by the user, the clock frequency of the identified TS packets is always the value.
  • the clock frequency of the identified TS packet may also be set according to the maximum capacity of each TS stream specified in the TS stream protocol, for example, assuming each TS stream specified in the current TS stream protocol.
  • the maximum capacity is 108Mbps.
  • the maximum capacity of each TS stream specified in the TS stream protocol is used as the clock frequency of the differentiated TS packet, for example, the TS packet of the differentiated identifier is set.
  • the clock frequency is 108MHz.
  • the average value of the maximum capacity of each TS stream specified in the TS stream protocol and the total number of parallel lines are used as the clock frequency of the identified TS packets.
  • the clock frequency of the TS packet that sets the discrimination flag is 13.5 MHz. In this way, the clock frequency of the TS packets that distinguish the identifiers is set. Regardless of which multimedia programs are selected by the user, the clock frequency of the identified TS packets is always the value.
  • the clock frequency of the differentiated TS packets may also be determined according to the number of multimedia programs selected by the user. Specifically, the maximum value of the sum of the transmission rates of the two single-program TS streams in all the single-program TS streams is determined according to the transmission rate of all the single-program TS streams currently existing, and the maximum value is selected as the user to select two multimedia. A reference to the clock frequency of the identified TS packet is set at the time of the program. When the acquired multiple TS streams adopt the serial transmission mode, the maximum value can be directly used as the clock frequency of the identified TS packets when the user selects two multimedia programs.
  • the average value of the maximum value to the total number of parallel lines may be used as the clock frequency of the identified TS packets when the user selects two multimedia programs.
  • the clock frequency of the identified TS packet is always the maximum value.
  • the maximum value of the sum of the transmission rates of the three single-program TS streams in all the single-program TS streams is determined according to the transmission rate of all the single-program TS streams currently present, and the maximum value is selected as the three multimedia selected by the user.
  • a reference is made to set the clock frequency of the TS packet that distinguishes the identification.
  • the maximum value can be directly used as the clock frequency of the identified TS packets when the user selects three multimedia programs; when the acquired multiple TS data is in parallel transmission mode
  • the average value of the maximum value and the total number of parallel lines may be used as the clock frequency of the TS data packet when the user selects three multimedia programs.
  • the identified TS data is distinguished.
  • the clock frequency of the packet is always the maximum. In this way, the maximum value of the sum of the transmission rates corresponding to the number of multimedia programs that the user may select is sequentially calculated, thereby setting the clock frequency of the TS packets that distinguish the identification.
  • the TS packet of the differentiated identifier formed by the synchronization identifier in the header information of the acquired multiple TS stream is formed into a new data stream and sent to the new data stream.
  • the clock frequency of the TS packet of the distinguishing identifier is the clock frequency set in the foregoing step, and the distinguishing identifier in the TS packet of the distinguishing identifier is the changed synchronization identifier in the packet header information.
  • the clock frequency of the TS packet distinguishing the identifier is set to a relatively fixed value. Therefore, when the TS packet of the way distinguish identifier is sent to the decryption unit for decryption, the decryption unit does not need to distinguish the identifier of the dynamic change of the rate.
  • the clock frequency of the TS packet is judged and adjusted in real time, so that the operational stability and reliability of the broadcast receiving apparatus can be improved.
  • the TS packet that distinguishes the identifier in the storage unit is sent to the decryption unit in one transmission period, when the TS packet that distinguishes the identifier in the storage unit is sent, and the storage unit does not receive a new distinction.
  • the TS packet distinguishing the identifier is filled in the form of a null packet until the storage unit receives the new data.
  • the distinction is directly made.
  • the identified TS packets are successively merged into the TS packets of the differentiated identifiers, and there is no gap between the adjacent two identified identifier TS packets; when the adjacent two differentiated identifiers of the TS packets are not present
  • consecutive that is, the TS packet of the differentiated identifier buffered in the storage unit has been sent, and the storage unit has not received other new TS packets of the differentiated identifier, it is necessary to make a new data stream formed by distinguishing the identified TS packets.
  • the new data stream formed by the differentiated TS packets is filled with empty packets that do not contain useful information, so that the identified TSs are differentiated.
  • the clock signal of the packet continues to output data, which is useless data.
  • the TS data of the differentiated identifier transmitted is sent.
  • the new data stream formed by the packet is filled with a null packet that does not contain a useful signal, and the null packet may be an empty packet that does not contain a useful signal, such as 0x00 or 0xff, so that the clock signal of the identified TS packet continuously outputs data;
  • the data outputted by the TS packet of the distinguishing identifier is useless data.
  • the output of the clock signal is interrupted, and the data transmission is stopped.
  • the TS stream of the latter identifier does not reach the storage unit; at this time, the TS packet that distinguishes the identifier is filled with an empty packet that does not contain the useful signal, so that The clock signal of the identified TS packet stops outputting data, and when the TS packet of the latter identification identifier arrives, the filling of the empty packet is stopped, and the TS data of the latter identifier is distinguished according to the clock frequency of the identified TS packet.
  • the packet is sent to the decryption unit.
  • the decryption unit when a decryption unit for decryption, such as a CI card, is inserted, the decryption unit transmits information to the SOC chip through CMD (COMMAND, command), and the SOC chip is The information of the decryption unit determines whether or not the function of simultaneously decrypting multiple TS streams is supported. If it is detected that the decryption unit does not support the TS mixed stream function, the SOC chip does not perform the merge action of the TS stream when processing the information stream.
  • CMD COMMAND, command
  • the input of the CI card is two channels of encrypted information
  • only the information stream of the current channel is decrypted, and the other stream of information cannot be decrypted; if it is an encrypted stream, clear stream, the encrypted stream passes through the CI.
  • the card is decrypted, and the clear stream does not need to be decrypted by the CI card.
  • the decryption unit If it is detected that the decryption unit does not support the TS mixed stream function, when the SOC chip processes the information stream, whether the input information stream is encrypted or not, the TS stream is merged, and the merged TS stream enters the decryption unit.
  • the encrypted stream is decrypted, and the non-encrypted stream is sent back to the SOC chip without any processing, and the SOC chip divides the TS stream outputted by the decryption unit according to the previous merge principle.
  • the embodiment of the present application further provides a broadcast receiving apparatus.
  • the broadcast receiving apparatus includes an original TS stream generating unit 101, a target TS stream selecting unit 102, an identifying unit 103, a decrypting unit 104, and a TS stream reconstructing unit 105.
  • the original TS stream generating unit 101 is for receiving a signal and generating a multiplexed original TS stream based on the received signal.
  • the target TS stream selecting unit 102 is connected to the original TS stream generating unit 101, and the target TS stream selecting unit 102 is configured to extract at least two target TSs from the multiplexed original TS stream according to the PID of the TS stream corresponding to each required multimedia program. flow.
  • the identifier unit 103 is connected to the target TS stream selection unit 102, and the identifier unit 103 is configured to re-define the headers of at least two target TS streams, form corresponding at least two standby TS streams, and generate based on the at least two standby TS streams.
  • the decryption unit 104 is coupled to the identification unit 103, which is used to decrypt the new TS stream.
  • the TS stream reconstruction unit 105 is connected to the decryption unit 104, and the TS stream reconstruction unit 105 is configured to divide the spare TS stream in the new TS stream into packets according to the header of the at least two standby TS streams.
  • the original TS stream generating unit 101 may include a tuner 110 for receiving signals, a demodulator 120 for generating a plurality of original TS streams according to the received signals, and a decryption unit 104. It can be a CICAM card, and the CICAM card includes a CI card and a CAM module.
  • the identification unit 40 is also connected to the TS stream reconstruction unit 105. After the identification unit 40 merges the spare TS streams to form a new TS stream, the new TS stream is directly transmitted to the TS stream reconstruction unit 105, and the TS stream is directly transmitted.
  • the reconstruction unit 105 classifies and encapsulates the new TS stream, and also splits the standby TS stream in the new TS stream.
  • the broadcast receiving apparatus further includes a memory 106.
  • the memory 106 is connected to the target TS stream selection unit 102 and the identification unit 103, respectively.
  • the memory 106 is for storing the target TS stream extracted by the target TS stream selection unit 102.
  • the memory 106 may include a built-in memory or/and a peripheral memory, wherein the built-in memory may be a cache memory, and is disposed inside the broadcast receiving device, and the external memory may also be a cache memory.
  • the memory slot can be set on the broadcast receiving device, and when the external memory needs to be used, the external memory can be inserted into the memory slot.
  • the original TS stream generating unit 101 may include a tuner 110 and a demodulator 120, wherein the tuner 110 is configured to receive signals, and the demodulator 120 and the tuner are respectively The 110 is connected to the target TS stream selection unit 102, and the demodulator 120 is configured to generate an original TS stream based on the signal received by the tuner 110.
  • the number of demodulator 120 and the number of target TS stream selection units 102 can be set according to actual needs.
  • the number of demodulator 120 may be one or more, and the number of target TS stream selection units 102 may also be one or more.
  • the number of demodulators 120 and the number of target TS stream selection units 100 are both multiple, and the number of demodulators 120 is the same as the number of target TS stream selection units 102, and more.
  • the target TS stream selection unit 102 is connected to the plurality of demodulators 120 in one-to-one correspondence.
  • the original TS stream formed by demodulation by each demodulator 120 is transmitted to the corresponding target TS stream selection unit 102.
  • the target TS stream selection unit 102 determines whether it is necessary to extract the target TS stream from the corresponding original TS stream according to the PID of the TS stream corresponding to each multimedia program selected by the user.
  • the embodiment of the present application further provides a TS stream processing method.
  • the method includes the following steps S21-S24.
  • Step S21 Extract at least two target TS streams from the multiplexed original TS streams generated by the demodulator according to the packet identification code PID of the TS stream corresponding to each required multimedia program.
  • the PID of the TS stream corresponding to the required multimedia program can be known, and the target TS stream is extracted from the original TS stream according to the PID of the TS stream corresponding to the required multimedia program.
  • the corresponding TS streams are TS-1 and TS-2, respectively, and TS-1 and TS-2 respectively have corresponding PIDs.
  • the TS-2 PID extracts TS-1 and TS-2 from the original TS stream, where TS-1 and TS-2 may be located in the same original TS stream, and TS-1 and TS-2 may also be located in different originals. In the TS stream.
  • Step S22 redefining the headers of the at least two target TS streams, forming corresponding at least two standby TS streams, and combining the at least two standby TS streams into one new TS stream, where the at least two paths are The headers of the alternate TS streams are different from each other.
  • each target TS stream is extracted from the original TS stream
  • the header of each target TS stream is redefined to form a corresponding standby TS stream, and then all the spare TS streams are merged into one new TS stream.
  • the header of the TS-1 is redefined to form a corresponding standby TS stream TS-1', for the TS.
  • the header of -2 is redefined to form a corresponding spare TS stream TS-2', and then the spare TS stream TS-1' and the alternate TS stream TS-2' are combined into one new TS stream.
  • the rules to be followed can be performed according to actual needs. For example, at present, the header of a TS stream usually starts with 0x47. Then, when the header of the target TS stream is redefined to form a corresponding spare TS stream, the header of the spare TS stream can start with 0x48, 0x49, 0x50, etc. , wherein the headers of the alternate streams are different from each other.
  • the packet header may be set to Starting with 0x48, the header of the formed standby TS stream TS-1' starts with 0x48, and when the header of the target TS stream TS-2 is redefined to form the corresponding standby TS stream TS-2', the header can be set. To start with 0x49, the header of the formed spare TS stream TS-2' starts with 0x49. It should be noted that, in step S22, when the header of the target TS stream is redefined, only the start of the header of the target TS stream is redefined, and the PID of the program content in the target TS stream is not changed.
  • Step S23 Decrypt the one new TS stream.
  • the new TS stream may be new according to the header of the standby TS stream.
  • the program content in the spare TS stream in the TS stream is decrypted. For example, taking the target TS stream TS-1 and TS-2 as two TS-1 and TS-2 as an example, in step S22, the header of the TS-1 and the header of the TS-2 are respectively redefined to form a correspondence.
  • the header of the standby TS stream TS-1' is set to start with 0x48
  • the header of the standby TS stream TS-2' is set to 0x49.
  • step S23 when the header of a certain spare TS stream is found to start with 0x48, indicating that the spare TS stream sought is TS-1', according to the encryption method of the program content in TS-1', Decoding the program content in TS-1'.
  • the header of a spare TS stream starts with 0x49, indicating that the spare TS stream sought is TS-2', according to the program in TS-2'
  • the content encryption method decrypts the program content in TS-2'.
  • step S24 when the program content in the spare TS stream in the new TS stream is decrypted, the header of the spare TS stream may not be searched.
  • Step S24 classify the spare TS streams in the new TS stream according to the header of the at least two standby TS streams.
  • step S24 the spare TS stream in the new TS stream is classified and encapsulated according to the header redefined in the target TS stream in step S22, that is, according to the header of the spare TS stream.
  • the header of TS-1 and the header of TS-2 are respectively redefined to form a corresponding standby TS stream TS- 1' and the standby TS stream TS-2', the header of the standby TS stream TS-1' starts with 0x48, the header of the standby TS stream TS-2' starts with 0x49, and in step S23, the standby TS stream
  • the new TS formed by combining the standby TS stream TS-1' and the standby TS stream TS-2' The stream is classified and encapsulated, and the
  • the standby TS stream TS-1' and the standby TS stream TS-2' are both transmitted to the decoder, after being decoded.
  • the playback can be performed; when the user needs the spare TS stream TS-1' to play and the standby TS stream TS-2' to record, the standby TS stream TS-1' is transmitted to the decoder, and after being decoded, the playback is performed, and the standby TS stream TS -2' is recorded by the OTG (On The Go) interface; when the user needs to record both the standby TS stream TS-1' and the standby TS stream TS-2', the standby TS stream TS-1' and the standby TS stream The TS-2' is recorded via the OTG (On The Go) interface.
  • the standby TS stream corresponding to the target TS stream is merged into one new TS stream, and then the standby TS stream in the new TS stream is decrypted.
  • the decryption of the multiple standby TS streams by one channel is realized, thereby realizing the playing or recording of the multimedia programs corresponding to the multiple target TS streams respectively.
  • the method before the step of extracting at least two target TS streams from the multiplexed original TS stream generated by the demodulator according to the packet identification code PID of the TS stream corresponding to each of the required multimedia programs, the method further includes: S20. Receive a signal, and generate an original TS stream according to the received signal.
  • step S20 The received signal is a radio frequency signal, and each video signal corresponds to one TS stream.
  • Each TS stream further includes a single program TS stream corresponding to at least one television program, and each single program TS stream corresponding to each television program has a corresponding PID.
  • step S21 when the original TS stream is generated according to the received signal, each received radio frequency signal is processed to generate an original TS stream, and the original TS stream includes a single program TS stream corresponding to at least one television program.

Landscapes

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

Abstract

L'invention concerne un procédé et un dispositif de traitement de TS. Par exemple, le procédé de traitement de TS consiste à : identifier respectivement d'une manière distinctive des paquets de données TS dans de multiples chemins de TS acquis pour former une pluralité de paquets de données TS ayant un premier identificateur distinctif et une pluralité de paquets de données TS ayant un second identificateur distinctif, le premier identificateur distinctif étant utilisé pour identifier un premier chemin de TS et le second identificateur distinctif étant utilisé pour identifier un second chemin de TS; déchiffrer la pluralité de paquets de données TS ayant le premier identificateur distinctif et le second identificateur distinctif d'une manière à partage du temps; et encapsuler la pluralité d'ensembles de données TS déchiffrés d'une manière classifiée selon les identificateurs distinctifs afin de former de multiples chemins de programmes.
PCT/CN2019/087205 2018-05-16 2019-05-16 Procédé et dispositif de traitement de ts WO2019219056A1 (fr)

Applications Claiming Priority (12)

Application Number Priority Date Filing Date Title
CN201810469837.9 2018-05-16
CN201810470418.7 2018-05-16
CN201810469738.0 2018-05-16
CN201810471962.3 2018-05-16
CN201810469172.1 2018-05-16
CN201810470234.0A CN108429928A (zh) 2018-05-16 2018-05-16 一种对ts流进行解密的方法
CN201810469837.9A CN108737889A (zh) 2018-05-16 2018-05-16 一种ts流处理方法及数字多媒体接收装置
CN201810469172.1A CN108600832A (zh) 2018-05-16 2018-05-16 一种对ts流进行解密的方法
CN201810470418.7A CN108712679A (zh) 2018-05-16 2018-05-16 一种广播接收装置
CN201810469738.0A CN108650548A (zh) 2018-05-16 2018-05-16 一种对ts流进行解密的方法
CN201810470234.0 2018-05-16
CN201810471962.3A CN108551590A (zh) 2018-05-16 2018-05-16 用于广播接收装置接收ts流处理方法及装置

Publications (1)

Publication Number Publication Date
WO2019219056A1 true WO2019219056A1 (fr) 2019-11-21

Family

ID=68539510

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087205 WO2019219056A1 (fr) 2018-05-16 2019-05-16 Procédé et dispositif de traitement de ts

Country Status (1)

Country Link
WO (1) WO2019219056A1 (fr)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001043444A2 (fr) * 1999-12-13 2001-06-14 Scientific-Atlanta, Inc. Procede d'identification de courants numeriques multiples au sein d'un signal multiplexe
CN1543216A (zh) * 2003-03-26 2004-11-03 公用接口控制器和解扰传输流信道的方法
CN103763579A (zh) * 2014-01-22 2014-04-30 深圳国微技术有限公司 基于usb接口识别多路传输流的方法
CN103875230A (zh) * 2011-10-07 2014-06-18 晶像股份有限公司 使用编码的前同步码对数据流的标识和处理
CN108429928A (zh) * 2018-05-16 2018-08-21 青岛海信电器股份有限公司 一种对ts流进行解密的方法
CN108551590A (zh) * 2018-05-16 2018-09-18 青岛海信电器股份有限公司 用于广播接收装置接收ts流处理方法及装置
CN108600832A (zh) * 2018-05-16 2018-09-28 青岛海信电器股份有限公司 一种对ts流进行解密的方法
CN108712679A (zh) * 2018-05-16 2018-10-26 青岛海信电器股份有限公司 一种广播接收装置
CN108737889A (zh) * 2018-05-16 2018-11-02 青岛海信电器股份有限公司 一种ts流处理方法及数字多媒体接收装置

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001043444A2 (fr) * 1999-12-13 2001-06-14 Scientific-Atlanta, Inc. Procede d'identification de courants numeriques multiples au sein d'un signal multiplexe
CN1543216A (zh) * 2003-03-26 2004-11-03 公用接口控制器和解扰传输流信道的方法
CN103875230A (zh) * 2011-10-07 2014-06-18 晶像股份有限公司 使用编码的前同步码对数据流的标识和处理
CN103763579A (zh) * 2014-01-22 2014-04-30 深圳国微技术有限公司 基于usb接口识别多路传输流的方法
CN108429928A (zh) * 2018-05-16 2018-08-21 青岛海信电器股份有限公司 一种对ts流进行解密的方法
CN108551590A (zh) * 2018-05-16 2018-09-18 青岛海信电器股份有限公司 用于广播接收装置接收ts流处理方法及装置
CN108600832A (zh) * 2018-05-16 2018-09-28 青岛海信电器股份有限公司 一种对ts流进行解密的方法
CN108712679A (zh) * 2018-05-16 2018-10-26 青岛海信电器股份有限公司 一种广播接收装置
CN108737889A (zh) * 2018-05-16 2018-11-02 青岛海信电器股份有限公司 一种ts流处理方法及数字多媒体接收装置

Similar Documents

Publication Publication Date Title
US7856034B2 (en) Method and system for generating digital video broadcast (DVB) transport stream from direct satellite system (DSS) transport stream
US9307287B2 (en) Transport-stream provider, DAB signal provider, transport stream analyzer, DAB receiver, method, computer program, and transport stream signal
CN100401784C (zh) 数字多媒体数据接收机的数据同步方法和设备
CN100353745C (zh) 从加密的mpeg传输流中构造mpeg节目流的方法
WO2005013112A1 (fr) Interface universelle de transport de donnees serie bidirectionnel
CN101416483A (zh) 传输流的消除抖动
KR100555658B1 (ko) 스트림 디코드 장치
US7742472B2 (en) Signal processing apparatus and stream processing method
US9055351B2 (en) Method for processing information in content receiver
CN102685591A (zh) 一种数字机顶盒
JP3348683B2 (ja) デジタル放送受信装置
CN101325684B (zh) 基于移动多媒体广播的加密控制信息传输方法及系统
US8892888B2 (en) Multiple stream decrypting and decoding systems and related methods thereof
CN108551590A (zh) 用于广播接收装置接收ts流处理方法及装置
US7415014B2 (en) Method and system for co-relating transport packets on different channels using a packet prioritization scheme
US9100379B2 (en) Transmitting apparatus, transmitting method, receiving apparatus, receiving method, program, and electronic apparatus
US20020118608A1 (en) Transmission device and method, reception device and method, recording medium and program
US20060197880A1 (en) Signal processing device and stream processing method
WO2019219056A1 (fr) Procédé et dispositif de traitement de ts
CN108712679A (zh) 一种广播接收装置
JP2007288357A (ja) 映像再生装置
CN109743627A (zh) 基于avs+视频编码数字电影包的播放方法
WO2021151376A1 (fr) Procédé d'émission/réception et appareil d'émission/réception
CN105556950A (zh) 广播接收装置及其控制方法
US10178040B2 (en) Data processing device, receiving device, data processing method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19803940

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19803940

Country of ref document: EP

Kind code of ref document: A1