CN102821306A - Transport stream processing method, relative device and relative system - Google Patents
Transport stream processing method, relative device and relative system Download PDFInfo
- Publication number
- CN102821306A CN102821306A CN2012103192729A CN201210319272A CN102821306A CN 102821306 A CN102821306 A CN 102821306A CN 2012103192729 A CN2012103192729 A CN 2012103192729A CN 201210319272 A CN201210319272 A CN 201210319272A CN 102821306 A CN102821306 A CN 102821306A
- Authority
- CN
- China
- Prior art keywords
- mpts
- pat
- pmt
- program
- pat table
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 30
- 238000000034 method Methods 0.000 claims abstract description 66
- GUGNSJAORJLKGP-UHFFFAOYSA-K sodium 8-methoxypyrene-1,3,6-trisulfonate Chemical compound [Na+].[Na+].[Na+].C1=C2C(OC)=CC(S([O-])(=O)=O)=C(C=C3)C2=C2C3=C(S([O-])(=O)=O)C=C(S([O-])(=O)=O)C2=C1 GUGNSJAORJLKGP-UHFFFAOYSA-K 0.000 claims description 324
- 238000003860 storage Methods 0.000 claims description 74
- 238000012545 processing Methods 0.000 claims description 23
- 125000004122 cyclic group Chemical group 0.000 claims description 22
- 230000005540 biological transmission Effects 0.000 claims description 18
- 238000000605 extraction Methods 0.000 claims description 17
- 238000013475 authorization Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 238000001914 filtration Methods 0.000 description 2
- 238000012797 qualification Methods 0.000 description 2
- 238000007430 reference method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 210000004243 sweat Anatomy 0.000 description 1
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
An embodiment of the invention discloses a transport stream processing method, a relative device and a relative system. The method, the device and the system are used for quickly switching current playing programs into other programs of input transport streams. The method includes acquiring and storing a first program association table (PAT) and a first program mapping table (PMT) of a first transport stream containing current playing programs, modifying a second PAT and a second PMT of a second transport stream according to the first PAT and the first PMT of the stored first transport stream when receiving a switching request of programs of the second transport stream and transmitting the modified second PAT and the modified second PMT of the second transport stream.
Description
Technical field
The present invention relates to the digital television techniques field, especially relate to a kind of transport stream processing method, conditional receiving device and MPTS treatment system.
Background technology
Along with getting in touch of television set and network is tight day by day; Increasing TV user is not content with and on television set, is watched only broadcast program, shows but more hope can the video of some other program source etc. be input on the large high-definition screen curtain of television set.
Condition receiving card (CAM; Conditional Access Module card) conduct can be by the personalized closely-related product of carrier customization; Be to be used for controlling the user to watch a kind of card through the digital television program (containing audio frequency, video, data etc.) of authorizing; Can let digital-tv operator in television system, the user carried out authorization control and empowerment management through the CAM card, thereby realize the paid service of digital television program.
Current; Common CAM in function as authorized descrambling module; Step-by-steply will present broadcast at television set from the broadcast program that main frame sends; Promptly at first main frame is sent broadcast program into the demultiplexing and the deciphering module of CAM card, returns to main frame by the output of CAM card again after handling and plays;
, main frame is limited from the program source that the CAM card obtains, and is difficult to satisfy spectators' demand; Even perhaps the CAM card has multiple inlet flow, but in the practical application scene, such as when the user when watching program; Need in progress TV programme be switched to directly and play, at this moment from second MPTS (TS, Transport stream) of CAM card input; The CAM card will interrupt the TS stream that main frame sends over; Replace with the 2nd TS stream, because entrained Program Specific Information (PSI, the Program Specific Information) difference of this two-way TS stream; Directly the replacement program that may cause cutting can not be discerned, program can't normal play etc. problem.
Summary of the invention
The embodiment of the invention provides a kind of transport stream processing method, relevant apparatus and system, is used for fast the program of current broadcast being switched to the program of the MPTS of other inputs.
In view of this, the embodiment of the invention provides respectively:
A kind of transport stream processing method comprises:
Obtain and store the first Program Association Table PAT and the first Program Map Table PMT of first MPTS of the program that comprises current broadcast;
When the incision request of the program that receives second MPTS,, revise second pat table and second pmt table of second MPTS according to first pat table and first pmt table of first MPTS of said storage;
Send second MPTS of having revised second pat table and second pmt table.
Preferably, first pat table and first pmt table of said first MPTS according to said storage are revised second pat table and second pmt table of second MPTS, comprising:
According to first pat table of first MPTS of said storage, second pat table of said second MPTS is replaced with said first pat table;
The identity code transmission package PID of second pmt table that the program of request incision in said second pat table is corresponding is revised as the PID of the first corresponding pmt table of the program of current broadcast in first pat table;
First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table; And upgrade the version of second pmt table, and calculate the cyclic redundancy check value that upgrades second pmt table.
Preferably, first pat table and first pmt table of said first MPTS according to said storage are revised second pat table and second pmt table of second MPTS, comprising:
According to first pat table of first MPTS of said storage, second pat table of said second MPTS is replaced with said first pat table;
According to first pmt table of first MPTS of said storage, second pmt table of said second MPTS is replaced with said first pmt table;
The PID of the audio frequency and video that the program of request incision in said second pmt table is corresponding is revised as the PID of the corresponding audio frequency and video of the program of current broadcast in first pmt table.
The embodiment of the invention also provides another kind of transport stream processing method, comprising:
Obtain and store the first Program Association Table PAT and the first Program Map Table PMT of first MPTS of the program that comprises current broadcast;
When the incision request of the program that receives second MPTS; Extract first pat table of first MPTS of said storage,, revise first pat table of said extraction according to second pat table of said second MPTS; And, revise second pat table of second MPTS according to first pat table of having revised;
According to first pmt table of first MPTS of said storage, revise second pmt table of second MPTS;
Send second MPTS of having revised second pat table and second pmt table.
Preferably, first pat table of first MPTS of the said storage of said extraction according to second pat table of said second MPTS, is revised first pat table of said extraction, and according to first pat table of having revised, revises second pat table of second MPTS, comprising:
Extract first pat table of first MPTS of said storage; Second pat table according to said second MPTS; The PID of first pmt table that the program of current broadcast in first pat table of said extraction is corresponding is revised as the PID of second pmt table of the program correspondence that request is cut in said second pat table; And upgrade the version of said first pat table, and calculate the cyclic redundancy check value that upgrades first pat table;
Said second pat table is replaced with first pat table of revising after upgrading;
First pmt table of said first MPTS according to said storage is revised second pmt table of second MPTS, comprising:
First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table, and calculates the cyclic redundancy check value that upgrades second pmt table.
A kind of conditional receiving device is characterized in that, comprising:
First obtains memory module, is used to obtain and store the first Program Association Table PAT and the first Program Map Table PMT of first MPTS of the program that comprises current broadcast;
First processing module, when being used for the incision request when the program that receives second MPTS, according to said first obtain first MPTS of memory module storage first pat table and first pmt table, revise second pat table and second pmt table of second MPTS;
First sending module is used to send second MPTS of handling through said first processing module of revising second pat table and second pmt table.
Preferably, said first processing module specifically is used for first pat table that obtains first MPTS of memory module storage according to said, and second pat table of said second MPTS is replaced with said first pat table; The identity code transmission package PID of second pmt table that the program of request incision in said second pat table is corresponding is revised as the PID of the first corresponding pmt table of the program of current broadcast in first pat table; First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table; And upgrade the version of second pmt table, and calculate the cyclic redundancy check value that upgrades second pmt table.
Preferably, said first processing module specifically is used for first pat table that obtains first MPTS of memory module storage according to said, and second pat table of said second MPTS is replaced with said first pat table; According to first pmt table of first MPTS of said storage, second pmt table of said second MPTS is replaced with said first pmt table; The PID of the audio frequency and video that the program of request incision in said second pmt table is corresponding is revised as the PID of the corresponding audio frequency and video of the program of current broadcast in first pmt table.
The embodiment of the invention also provides another kind of conditional receiving device, comprising:
Second obtains memory module, is used to obtain and store the first Program Association Table PAT and the first Program Map Table PMT of first MPTS of the program that comprises current broadcast;
Second processing module; When being used for the incision request when the program that receives second MPTS; Extract said second obtain first MPTS of memory module storage first pat table, according to second pat table of said second MPTS, revise first pat table of said extraction; And, revise second pat table of second MPTS according to first pat table of having revised; According to first pmt table of first MPTS of said storage, revise second pmt table of second MPTS;
Second sending module is used to send second MPTS of handling through said second processing module of revising second pat table and second pmt table.
Preferably; Said second processing module specifically is used to extract said first pat table that obtains first MPTS of memory module storage; Second pat table according to said second MPTS; The PID of first pmt table that the program of current broadcast in first pat table of said extraction is corresponding is revised as the PID of second pmt table of the program correspondence that request is cut in said second pat table, and upgrades the version of said first pat table, and calculates the cyclic redundancy check value that upgrades first pat table; Said second pat table is replaced with first pat table of revising after upgrading; First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table, and calculates the cyclic redundancy check value that upgrades second pmt table.
A kind of MPTS treatment system; Said system comprises main frame and aforesaid wherein a kind of conditional receiving device; Wherein, said main frame is used to play the program of first MPTS; And after second MPTS of revising second pat table and second pmt table that receives said conditional receiving device transmission, play the program that the said request of having revised second MPTS of second pat table and second pmt table is cut.
Can find out from above technical scheme; A kind of transport stream processing method, relevant apparatus and system that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play from second MPTS of conditional receiving device input; Through the processing of conditional receiving device, revise second pat table and second pmt table of second MPTS, finally make the MPTS of winning identical with the PSI information that second MPTS carries; Thereby the program of avoiding occurring cutting can not discern can't normal play problem, implementation process is simple, convenient.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; The accompanying drawing do introduction simply of required use will be described embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 shows the flow chart of a kind of transport stream processing method that the embodiment of the invention provides;
Fig. 2 shows another flow chart of a kind of transport stream processing method that the embodiment of the invention provides;
Fig. 3 shows another flow chart of a kind of transport stream processing method that the embodiment of the invention provides;
Fig. 4 shows another flow chart of a kind of transport stream processing method that the embodiment of the invention provides;
Fig. 5 shows another flow chart of a kind of transport stream processing method that the embodiment of the invention provides;
Fig. 6 shows the structural representation of a kind of conditional receiving device that the embodiment of the invention provides;
Fig. 7 shows another structural representation of a kind of conditional receiving device that the embodiment of the invention provides;
Fig. 8 shows the structural representation of a kind of MPTS treatment system that the embodiment of the invention provides;
Fig. 9 shows another structural representation of a kind of MPTS treatment system that the embodiment of the invention provides.
Embodiment
The embodiment of the invention provides a kind of transport stream processing method, relevant apparatus and system, is used for fast the program of current broadcast being switched to the program of the MPTS of other inputs.
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making all other embodiment that obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Below be elaborated respectively.
Please refer to Fig. 1, Fig. 1 shows the flow chart of a kind of transport stream processing method that the embodiment of the invention provides, and wherein, this method comprises:
It is understandable that; The embodiment of the invention relates to switching and the processing between the MPTS, and for the ease of describing and distinguishing, the pat table with first MPTS in the embodiment of the invention is called first pat table; The pmt table of first MPTS is called first pmt table; The pat table of second MPTS is called second pat table, the pmt table of second MPTS is called second pmt table, do not influence the present invention program's realization.
Second MPTS of second pat table and second pmt table has been revised in step 103, transmission.
It is understandable that the executive agent of this method can be conditional receiving device, or other are used for the device that MPTS is handled, do not do concrete qualification here.
In the prior art, the information, the signal that receive from satellite, or the data that add other all will reach the MEPG2 code stream according to standard, and the MPTS (TS stream) that forms regular length (188 byte) transmits; For TS stream can need be issued some guidance informations (PSI Program Specific Information) simultaneously, thereby can accomplish the process that flows to concrete program from TS by Integrated Receive Decoder (IRD, Integrated Receiver Decoder) normal decoder; IRD be tuned to behind the frequency, the last program that constitutes begins to induce sweat.
Further, obtain and store the program that comprises current broadcast first MPTS first pat table and first pmt table (step 101) before, can also comprise: first MPTS is carried out demultiplexing.What expect easily in addition is that demultiplexing is exactly to extract each circuit-switched data in the time-multiplexed TS code stream, reverts to independent data stream.
Further, Program Association Table PAT (Program Association Table) and Program Map Table PMT (Program Map Table) belong to the Program Specific Information PSI (Program Specific Information) of MPTS.Wherein, comprised PID (Packet IDdentifier) number of pmt table in the pat table, and the audio frequency of the program number that pmt table has been indicated every road program and this road program is video code flow (PES, Packetized Elementary Streams).
In practical application, when decoder will be decoded to a certain road special code stream, at first to find pat table, find the PID of the pmt table of required program and this program correspondence according to pat table.Possibly comprise a plurality of digital code streams in the pmt table, each code stream all has a unique PID corresponding with it.If decoding is video code flow, then in pmt table, find audio frequency and video video pid value, from MPTS, filter out the program flow bag that pid value matches again and deliver to Video Decoder.
Need to prove; If program is encrypted; Then need be before sending playback process device (like main frame) broadcast; Also comprise the step that it is deciphered, for example: need extract the CAT table (Conditional Access Table CAT Conditional Access Table) that comprises encryption and authorization message, be used for deciphering and scramble process.
From the above; A kind of transport stream processing method that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play from second MPTS of conditional receiving device input; According to first pat table and first pmt table of first MPTS of the program that comprises current broadcast of storage, revise second pat table and second pmt table of second MPTS, finally make the MPTS of winning identical with the PSI information that second MPTS carries; Thereby the program of avoiding occurring cutting can not discern can't normal play problem, implementation process is simple, convenient.
Further, based on when the incision request of the program that receives second MPTS, according to first pat table and first pmt table of first MPTS of said storage; Second pat table of revising second MPTS is different with the embodiment of second pmt table (step 102); The embodiment of the invention provides another kind of transport stream processing method, please refer to Fig. 2, and Fig. 2 shows the method flow diagram of this embodiment; Below this method is described in detail, this method comprises:
Filtration is also obtained first pat table and first pmt table, and store the information of first pat table and PID, the program number information such as (Program number) of first pmt table.Wherein, PID is the bag identifier of the different pieces of information bag of transmission in the TS stream, is the sign of looking for each packet.
Further, obtain and store the program that comprises current broadcast first MPTS first pat table and first pmt table (step 201) before, can also comprise: first MPTS is carried out demultiplexing.What expect easily in addition is that demultiplexing is exactly to extract each circuit-switched data in the time-multiplexed TS code stream, reverts to independent data stream.
When the incision request of the program that receives second MPTS, first pat table according to first MPTS of said storage replaces with first pat table with second pat table;
The identity code transmission package PID of step 203, second pmt table that the program of request incision in said second pat table is corresponding is revised as the PID of the first corresponding pmt table of the program of current broadcast in first pat table;
Behind the completing steps 202; According to first pat table of first MPTS of said storage, the identity code transmission package PID of second pmt table that the program of request incision in said second pat table is corresponding is revised as the PID of the first corresponding pmt table of the program of current broadcast in first pat table;
According to first pmt table of first MPTS of said storage, revise will request incision in said second pmt table the corresponding program number of program, upgrade the version of second pmt table and the cyclic redundancy check value that calculates renewal second pmt table;
It is understandable that; According to ISO/IEC 13818-1 agreement; The program number of revising second pmt table is for fear of searching for program again; Upgrade the second pmt table version and be in order to let playback process device (like main frame) can be checked through the renewal of the second pmt table information, because the information of pmt table has had variation, so need recomputate the correctness that cyclic redundancy check value is checked transfer of data.
Second MPTS of second pat table and second pmt table has been revised in step 205, transmission.
Need to prove; Second pat table of second MPTS and second pmt table are through after the modification of step 202, step 203 and step 204; First MPTS with respect to the program that comprises current broadcast; Because pat table does not change, the PID of the pmt table of therefore looking for through pat table does not change yet.And because the PID of pmt table has been revised as the PID of the pmt table of first MPTS in second MPTS, so whole process is equivalent to just revise the content of pmt table.The audio frequency and video of second MPTS just can be come out by search so, so that the follow-up playback process device (like main frame) that is sent to is play.
What expect easily in addition is if program is encrypted, then need before sending playback process device (like main frame) broadcast, also comprise the step that it is deciphered, for example: need extract the CAT table that comprises encryption and authorization message, be used for deciphering and scramble process.
From the above; A kind of transport stream processing method that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play from second MPTS of conditional receiving device input; According to first pat table and first pmt table of first MPTS of the program that comprises current broadcast of storage, revise second pat table and second pmt table of second MPTS, make the MPTS of winning identical with the PSI information that second MPTS carries; Thereby the program of avoiding occurring cutting can not discern can't normal play problem, implementation process is simple, convenient.
Further, based on when the incision request of the program that receives second MPTS, according to first pat table and first pmt table of first MPTS of said storage; Second pat table of revising second MPTS is different with the embodiment of second pmt table (step 102); The embodiment of the invention also provides another kind of transport stream processing method, please refer to Fig. 3, and Fig. 3 shows the flow chart of this transport stream processing method; Wherein, this method comprises:
It is understandable that step 301 is identical with step 201, can no longer specifically set forth here with reference to aforementioned content.
When the incision request of the program that receives second MPTS,, second pat table of said second MPTS is replaced with said first pat table according to first pat table of first MPTS of said storage;
According to first pmt table of first MPTS of said storage, second pmt table of said second MPTS is replaced with said first pmt table;
The PID of step 304, audio frequency and video that the program of request incision in said second pmt table is corresponding is revised as the PID of the corresponding audio frequency and video of the program of current broadcast in first pmt table;
Behind the completing steps 303,, revise the PID of audio frequency and video in second pmt table according to first pmt table of first MPTS of said storage;
It is understandable that because the program of playing is audio frequency and video, therefore only need be associated with the PID of audio frequency and video, program just can be play smoothly.First pat table and first pmt table that second pat table and second pmt table of second MPTS replaced with first MPTS; The program that then PID of the audio frequency and video of second MPTS is revised as current broadcast i.e. the PID of the audio frequency and video of first MPTS; The essence of such second MPTS and first MPTS do not have difference; The main distinction is exactly the audio-video frequency content difference; Just do not need to search for again but revise switching back playback process device (like main frame) like this, can play the program of the request incision of second MPTS smoothly.
Second MPTS of second pat table and second pmt table has been revised in step 305, transmission.
Need to prove; Second pat table of second MPTS and second pmt table with respect to first MPTS of the program that comprises current broadcast, have just replaced the audio/video information of former MPTS (first MPTS) through after the modification of step 302, step 303 and step 304; Do not revise other information; So second MPTS can be sent to playback process device (like main frame), the program of smooth playing request incision.
What expect easily in addition is if program is encrypted, then need before sending playback process device (like main frame) broadcast, also comprise the step that it is deciphered, for example: need extract the CAT table that comprises encryption and authorization message, be used for deciphering and scramble process.
From the above; A kind of transport stream processing method that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play from second MPTS of conditional receiving device input; According to first pat table and first pmt table of first MPTS of the program that comprises current broadcast of storage, revise second pat table and second pmt table of second MPTS, make the MPTS of winning identical with the PSI information that second MPTS carries; Thereby the program of avoiding occurring cutting can not discern can't normal play problem, implementation process is simple, convenient.
The embodiment of the invention also provides another kind of transport stream processing method, please refer to Fig. 4, and Fig. 4 shows the flow chart of this transport stream processing method, and wherein, this method comprises:
It is understandable that step 401 is identical with step 101, can no longer specifically set forth here with reference to aforementioned content.
Second MPTS of second pat table and second pmt table has been revised in step 404, transmission.
It is understandable that the executive agent of this method can be conditional receiving device, or other are used for the device that MPTS is handled, do not do concrete qualification here.
Further, obtain and store the program that comprises current broadcast first MPTS first pat table and first pmt table (step 401) before, can also comprise: first MPTS is carried out demultiplexing.What expect easily in addition is that demultiplexing is exactly to extract each circuit-switched data in the time-multiplexed TS code stream, reverts to independent data stream.
Further, if program is encrypted, then need before sending playback process device (like main frame) broadcast, also comprise the step that it is deciphered, for example: need extract the CAT table that comprises encryption and authorization message, be used for deciphering and scramble process.
From the above; A kind of transport stream processing method that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play from second MPTS of conditional receiving device input; The pid value of second pmt table in second MPTS is substituted in first pat table of first MPTS with the place of PMT information, replaces first pat table of first MPTS of revising second pat table of second MPTS then, simultaneously according to first pmt table of first MPTS of said storage; Revise second pmt table of second MPTS; Make the MPTS of winning identical with the PSI information that second MPTS carries, thus the program of avoiding occurring cutting can not discern can't normal play problem, implementation process is simple, convenient.
Further; Based on when the incision request of the program that receives second MPTS, second pat table of revising second MPTS is different with the embodiment of second pmt table (step 402 and step 403), and the embodiment of the invention also provides another kind of transport stream processing method; Please refer to Fig. 5; Fig. 5 shows the flow chart of this transport stream processing method, and wherein, this method comprises:
Step 501, obtain and store first pat table and first pmt table of first MPTS of the program that comprises current broadcast;
Filtration is also obtained first pat table and first pmt table, and store the information of first pat table and PID, the program number information such as (Program number) of first pmt table.Wherein, PID is the bag identifier of the different pieces of information bag of transmission in the TS stream, is the sign of looking for each packet.
Wherein, obtain and store the program that comprises current broadcast first MPTS first pat table and first pmt table (step 501) before, can also comprise: first MPTS is carried out demultiplexing.What expect easily in addition is that demultiplexing is exactly to extract each circuit-switched data in the time-multiplexed TS code stream, reverts to independent data stream.
Step 502, when the incision request of the program that receives second MPTS; Extract first pat table of first MPTS of said storage; Second pat table according to said second MPTS; The PID of first pmt table that the program of current broadcast in first pat table of said extraction is corresponding is revised as the PID of second pmt table of the program correspondence that request is cut in said second pat table, and upgrades the version of said first pat table, and calculates the cyclic redundancy check value that upgrades first pat table;
Because the information of first pat table has had variation, so need recomputate the correctness that cyclic redundancy check value is checked transfer of data.
Step 503, said second pat table is replaced with first pat table after revise upgrading;
Behind the completing steps 502, i.e. after the first pat table information of the good said extraction of modification, said second pat table is replaced with first pat table of revising after upgrading;
Step 504, the corresponding program number of program that request in said second pmt table is cut are revised as the corresponding program number of program of current broadcast in first pmt table, and calculate the cyclic redundancy check value that upgrades second pmt table;
According to first pmt table of first MPTS of said storage, revise the program number of second pmt table; Because the information of second pmt table has had variation, so need recomputate the correctness that cyclic redundancy check value is checked transfer of data;
Second MPTS of second pat table and second pmt table has been revised in step 505, transmission.
Need to prove; In this execution mode, the pid value of second pmt table in second MPTS is substituted in first pat table of first MPTS with the place of PMT information, replace first pat table of first MPTS of revising second pat table of second MPTS then; First pmt table according to first MPTS; Revise the program number of second pmt table, second MPTS can be sent to playback process device (like main frame), smoothly the program of playing request incision.
What expect easily in addition is if program is encrypted, then need before sending playback process device (like main frame) broadcast, also comprise the step that it is deciphered, for example: need extract the CAT table that comprises encryption and authorization message, be used for deciphering and scramble process.
From the above; A kind of transport stream processing method that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play from second MPTS of conditional receiving device input; The pid value of second pmt table in second MPTS is substituted in first pat table of first MPTS with the place of PMT information, replaces first pat table of first MPTS of revising second pat table of second MPTS then, simultaneously according to first pmt table of first MPTS of said storage; Revise second pmt table of second MPTS; Make the MPTS of winning identical with the PSI information that second MPTS carries, thus the program of avoiding occurring cutting can not discern can't normal play problem, implementation process is simple, convenient.
For ease of the technical scheme of the better implement embodiment of the invention, the embodiment of the invention also is provided for implementing the relevant apparatus of said method.Wherein identical in the implication of noun and the said method, specifically realize the explanation of details in can reference method embodiment.
Please refer to Fig. 6, Fig. 6 shows the structural representation of a kind of conditional receiving device 600 that the embodiment of the invention provides, and wherein, said conditional receiving device 600 comprises:
First obtains memory module 601, is used to obtain and store first pat table and first pmt table of first MPTS of the program that comprises current broadcast;
Further, in this execution mode, the pat table of program and pmt table all belong to PSI information.Wherein, comprised PID number of pmt table in the pat table, and the audio frequency of the program number that pmt table has been indicated every road program and this road program is a video code flow.
First sending module 603 is used to send second MPTS of handling through said first processing module 602 of revising second pat table and second pmt table.
It is understandable that; Said conditional receiving device 600 can also comprise demultiplexing module (DMUX); At first pat table of first MPTS that obtains and store the program that comprises current broadcast and first pmt table (first obtains memory module 601) before, be used for first MPTS is carried out demultiplexing.What expect easily in addition is that demultiplexing is exactly to extract each circuit-switched data in the time-multiplexed TS code stream, reverts to independent data stream.
Further, in some embodiments, said first processing module 602 can specifically be used for first pat table that obtains first MPTS of memory module 601 storage according to said, and second pat table of said second MPTS is replaced with said first pat table; The identity code transmission package PID of second pmt table that the program of request incision in said second pat table is corresponding is revised as the PID of the first corresponding pmt table of the program of current broadcast in first pat table; First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table; And upgrade the version of second pmt table, and calculate the cyclic redundancy check value that upgrades second pmt table.
Need to prove; In this embodiment, second pat table of second MPTS and second pmt table are through after revising, with respect to first MPTS of the program that comprises current broadcast; Because pat table does not change, the PID of the pmt table of therefore looking for through pat table does not change yet.And because the PID of pmt table has been revised as the PID of the pmt table of first MPTS in second MPTS, so whole process is equivalent to just revise the content of pmt table.The audio frequency and video of second MPTS just can be come out by search so, so that the follow-up playback process device (like main frame) that is sent to is play.
Further, in some embodiments, said first processing module 602 can also be used for first pat table that obtains first MPTS of memory module 601 storage according to said, and second pat table of said second MPTS is replaced with said first pat table; According to first pmt table of first MPTS of said storage, second pmt table of said second MPTS is replaced with said first pmt table; The PID of the audio frequency and video that the program of request incision in said second pmt table is corresponding is revised as the PID of the corresponding audio frequency and video of the program of current broadcast in first pmt table.
Need to prove that in this embodiment, second pat table of second MPTS and second pmt table are through after revising; First MPTS with respect to the program that comprises current broadcast; Just replace the audio/video information of former MPTS (first MPTS), do not revised other information, so; Second MPTS can be sent to playback process device (like main frame), smoothly the program of playing request incision.
What expect easily in addition is; Said conditional receiving device 600 can also comprise the deciphering and descrambling module; If it is encrypted to be used for program, then need be before sending playback process device (like main frame) broadcast, to its step of deciphering; For example: need extract the CAT table that comprises encryption and authorization message, be used for deciphering and scramble process.
It is understandable that; In the conditional receiving device 600 that the embodiment of the invention provides; The function of its each functional module can specifically realize that its concrete implementation procedure can repeat no more with reference to the associated description of said method embodiment according to the method among the said method embodiment here.
From the above; A kind of conditional receiving device 600 that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play from second MPTS of conditional receiving device 600 inputs; According to first pat table and first pmt table of first MPTS of the program that comprises current broadcast of storage, revise second pat table and second pmt table of second MPTS, make the MPTS of winning identical with the PSI information that second MPTS carries; Thereby the program of avoiding occurring cutting can not discern can't normal play problem, implementation process is simple, convenient.
The embodiment of the invention also provides another kind of conditional receiving device, please refer to Fig. 7, and Fig. 7 shows the structural representation of this conditional receiving device 700, and wherein, said conditional receiving device 700 comprises:
Second obtains memory module 701, is used to obtain and store first pat table and first pmt table of first MPTS of the program that comprises current broadcast;
It is understandable that; Said conditional receiving device 700 can also comprise demultiplexing module; At first pat table of first MPTS that obtains and store the program that comprises current broadcast and first pmt table (second obtains memory module 701) before, be used for first MPTS is carried out demultiplexing.What expect easily in addition is that demultiplexing is exactly to extract each circuit-switched data in the time-multiplexed TS code stream, reverts to independent data stream.
Further; Said second processing module 702 specifically is used to extract said first pat table that obtains first MPTS of memory module 701 storages; Second pat table according to said second MPTS; The PID of first pmt table that the program of current broadcast in first pat table of said extraction is corresponding is revised as the PID of second pmt table of the program correspondence that request is cut in said second pat table, and upgrades the version of said first pat table, and calculates the cyclic redundancy check value that upgrades first pat table; Said second pat table is replaced with first pat table of revising after upgrading; First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table, and calculates the cyclic redundancy check value that upgrades second pmt table.
Need to prove; In this embodiment, the pid value of second pmt table in second MPTS is substituted in first pat table of first MPTS, replaces first pat table of first MPTS of revising second pat table of second MPTS then with the place of PMT information; First pmt table according to first MPTS; Revise the program number of second pmt table, second MPTS can be sent to playback process device (like main frame), smoothly the program of playing request incision.
What expect easily in addition is; Said conditional receiving device 700 can also comprise the deciphering and descrambling module; If it is encrypted to be used for program, then need be before sending playback process device (like main frame) broadcast, to its step of deciphering; For example: need extract the CAT table that comprises encryption and authorization message, be used for deciphering and scramble process.
It is understandable that; In the conditional receiving device 700 that the embodiment of the invention provides; The function of its each functional module can specifically realize that its concrete implementation procedure can repeat no more with reference to the associated description of said method embodiment according to the method among the said method embodiment here.
From the above; A kind of conditional receiving device 700 that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play, the table pid value of the 2nd PMT in second MPTS is substituted in first pat table of first MPTS, replace first pat table of first MPTS of revising second pat table of second MPTS then with the place of PMT information from second MPTS of conditional receiving device input; While is according to first pmt table of first MPTS of said storage; Revise second pmt table of second MPTS, make the MPTS of winning identical with the PSI information that second MPTS carries, thus the program of avoiding occurring cutting can not discern can't normal play problem; Whole implementation process need not user's manual search to be switched, simple, convenient.
The embodiment of the invention also is provided for implementing the related system of said method.Wherein identical in the implication of noun and said method and the device, specifically realize details can reference method with device embodiment in explanation.
Please refer to Fig. 8, Fig. 8 shows the structural representation of a kind of MPTS treatment system 800 that the embodiment of the invention provides, and wherein, this system 800 comprises:
From the above; A kind of MPTS treatment system 800 that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play, handle, revise second pat table and second pmt table of second MPTS through conditional receiving device 600 from second MPTS of conditional receiving device 600 inputs; Make the MPTS of winning identical with the PSI information that second MPTS carries; Thereby the program of avoiding occurring cutting can not discern can't normal play problem, whole implementation process need not user's manual search to be switched, simple, convenient.
The embodiment of the invention also provides another kind of MPTS treatment system, please refer to Fig. 9, Fig. 9 show should MPTS treatment system 900 structural representation, wherein, this system 900 comprises:
From the above; A kind of MPTS treatment system 900 that the embodiment of the invention provides; Be used for need the program of current broadcast being switched to directly and play, handle, revise second pat table and second pmt table of second MPTS through conditional receiving device 700 from second MPTS of conditional receiving device 700 inputs; Make the MPTS of winning identical with the PSI information that second MPTS carries; Thereby the program of avoiding occurring cutting can not discern can't normal play problem, whole implementation process need not user's manual search to be switched, simple, convenient.
The those skilled in the art can be well understood to, for the convenience described with succinct, the concrete course of work of the unit module in the system of foregoing description, device and the device can repeat no more at this with reference to the corresponding process among the preceding method embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; Comprise that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out all or part of step of the said method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
More than a kind of transport stream processing method provided by the present invention, relevant apparatus and system have been carried out detailed introduction; For one of ordinary skill in the art; Thought according to the embodiment of the invention; The part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.
Claims (11)
1. a transport stream processing method is characterized in that, comprising:
Obtain and store the first Program Association Table PAT and the first Program Map Table PMT of first MPTS of the program that comprises current broadcast;
When the incision request of the program that receives second MPTS,, revise second pat table and second pmt table of second MPTS according to first pat table and first pmt table of first MPTS of said storage;
Send second MPTS of having revised second pat table and second pmt table.
2. method according to claim 1 is characterized in that, first pat table and first pmt table of said first MPTS according to said storage are revised second pat table and second pmt table of second MPTS, comprising:
According to first pat table of first MPTS of said storage, second pat table of said second MPTS is replaced with said first pat table;
The identity code transmission package PID of second pmt table that the program of request incision in said second pat table is corresponding is revised as the PID of the first corresponding pmt table of the program of current broadcast in first pat table;
First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table; And upgrade the version of second pmt table, and calculate the cyclic redundancy check value that upgrades second pmt table.
3. method according to claim 1 is characterized in that, first pat table and first pmt table of said first MPTS according to said storage are revised second pat table and second pmt table of second MPTS, comprising:
According to first pat table of first MPTS of said storage, second pat table of said second MPTS is replaced with said first pat table;
According to first pmt table of first MPTS of said storage, second pmt table of said second MPTS is replaced with said first pmt table;
The PID of the audio frequency and video that the program of request incision in said second pmt table is corresponding is revised as the PID of the corresponding audio frequency and video of the program of current broadcast in first pmt table.
4. a transport stream processing method is characterized in that, comprising:
Obtain and store the first Program Association Table PAT and the first Program Map Table PMT of first MPTS of the program that comprises current broadcast;
When the incision request of the program that receives second MPTS; Extract first pat table of first MPTS of said storage,, revise first pat table of said extraction according to second pat table of said second MPTS; And, revise second pat table of second MPTS according to first pat table of having revised;
According to first pmt table of first MPTS of said storage, revise second pmt table of second MPTS;
Send second MPTS of having revised second pat table and second pmt table.
5. method according to claim 4 is characterized in that,
First pat table of first MPTS of the said storage of said extraction according to second pat table of said second MPTS, is revised first pat table of said extraction, and according to first pat table of having revised, revises second pat table of second MPTS, comprising:
Extract first pat table of first MPTS of said storage; Second pat table according to said second MPTS; The PID of first pmt table that the program of current broadcast in first pat table of said extraction is corresponding is revised as the PID of second pmt table of the program correspondence that request is cut in said second pat table; And upgrade the version of said first pat table, and calculate the cyclic redundancy check value that upgrades first pat table;
Said second pat table is replaced with first pat table of revising after upgrading;
First pmt table of said first MPTS according to said storage is revised second pmt table of second MPTS, comprising:
First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table, and calculates the cyclic redundancy check value that upgrades second pmt table.
6. a conditional receiving device is characterized in that, comprising:
First obtains memory module, is used to obtain and store the first Program Association Table PAT and the first Program Map Table PMT of first MPTS of the program that comprises current broadcast;
First processing module, when being used for the incision request when the program that receives second MPTS, according to said first obtain first MPTS of memory module storage first pat table and first pmt table, revise second pat table and second pmt table of second MPTS;
First sending module is used to send second MPTS of handling through said first processing module of revising second pat table and second pmt table.
7. device according to claim 6 is characterized in that,
Said first processing module specifically is used for first pat table that obtains first MPTS of memory module storage according to said, and second pat table of said second MPTS is replaced with said first pat table; The identity code transmission package PID of second pmt table that the program of request incision in said second pat table is corresponding is revised as the PID of the first corresponding pmt table of the program of current broadcast in first pat table; First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table; And upgrade the version of second pmt table, and calculate the cyclic redundancy check value that upgrades second pmt table.
8. device according to claim 6 is characterized in that,
Said first processing module specifically is used for first pat table that obtains first MPTS of memory module storage according to said, and second pat table of said second MPTS is replaced with said first pat table; According to first pmt table of first MPTS of said storage, second pmt table of said second MPTS is replaced with said first pmt table; The PID of the audio frequency and video that the program of request incision in said second pmt table is corresponding is revised as the PID of the corresponding audio frequency and video of the program of current broadcast in first pmt table.
9. a conditional receiving device is characterized in that, comprising:
Second obtains memory module, is used to obtain and store the first Program Association Table PAT and the first Program Map Table PMT of first MPTS of the program that comprises current broadcast;
Second processing module; When being used for the incision request when the program that receives second MPTS; Extract said second obtain first MPTS of memory module storage first pat table, according to second pat table of said second MPTS, revise first pat table of said extraction; And, revise second pat table of second MPTS according to first pat table of having revised; According to first pmt table of first MPTS of said storage, revise second pmt table of second MPTS;
Second sending module is used to send second MPTS of handling through said second processing module of revising second pat table and second pmt table.
10. device according to claim 9 is characterized in that,
Said second processing module specifically is used to extract said first pat table that obtains first MPTS of memory module storage; Second pat table according to said second MPTS; The PID of first pmt table that the program of current broadcast in first pat table of said extraction is corresponding is revised as the PID of second pmt table of the program correspondence that request is cut in said second pat table; And upgrade the version of said first pat table, and calculate the cyclic redundancy check value that upgrades first pat table; Said second pat table is replaced with first pat table of revising after upgrading; First pmt table according to first MPTS of said storage; The corresponding program number of program of request incision in said second pmt table is revised as the corresponding program number of program of current broadcast in first pmt table, and calculates the cyclic redundancy check value that upgrades second pmt table.
11. MPTS treatment system; It is characterized in that; Said system comprises main frame and like each described conditional receiving device in the claim 6 to 8, or said system comprises main frame and like claim 9 or 10 described conditional receiving devices, wherein; Said main frame; Be used to play the program of first MPTS, and after second MPTS of revising second pat table and second pmt table that receives said conditional receiving device transmission, play the program that the said request of having revised second MPTS of second pat table and second pmt table is cut.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210319272.9A CN102821306B (en) | 2012-08-31 | 2012-08-31 | A kind of transport stream processing method, relevant apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210319272.9A CN102821306B (en) | 2012-08-31 | 2012-08-31 | A kind of transport stream processing method, relevant apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102821306A true CN102821306A (en) | 2012-12-12 |
CN102821306B CN102821306B (en) | 2015-12-09 |
Family
ID=47305124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210319272.9A Expired - Fee Related CN102821306B (en) | 2012-08-31 | 2012-08-31 | A kind of transport stream processing method, relevant apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102821306B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103533409A (en) * | 2013-10-24 | 2014-01-22 | 深圳国微技术有限公司 | Method and device for playing stream media file |
CN103763588A (en) * | 2014-01-03 | 2014-04-30 | 深圳市龙视传媒有限公司 | Stream forwarding method, device, server and system for video advertising insertion |
CN104270667A (en) * | 2014-09-28 | 2015-01-07 | 深圳国微技术有限公司 | Program switchover method and device and terminal |
CN105072463A (en) * | 2015-07-20 | 2015-11-18 | 浙江华数广电网络股份有限公司 | Instantaneous channel switching method for digital television live broadcast |
CN108289227A (en) * | 2018-01-04 | 2018-07-17 | 山东浪潮商用系统有限公司 | A kind of method and device for realizing that audio-video source is replaced in TS streams |
CN109327706A (en) * | 2018-10-10 | 2019-02-12 | 广东省南方数字电视无线传播有限公司 | Programme televised live signal acceptance method and system based on DTMB |
CN111726680A (en) * | 2020-06-17 | 2020-09-29 | 伟乐视讯科技股份有限公司 | Method and equipment for realizing EIT table multiplexing |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101202901A (en) * | 2007-10-17 | 2008-06-18 | 深圳市同洲电子股份有限公司 | Method, device and system for processing package identifier of program transmission package |
CN102611935A (en) * | 2012-02-29 | 2012-07-25 | 山东泰信电子有限公司 | Playing method of multi-code-stream single channel |
-
2012
- 2012-08-31 CN CN201210319272.9A patent/CN102821306B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101202901A (en) * | 2007-10-17 | 2008-06-18 | 深圳市同洲电子股份有限公司 | Method, device and system for processing package identifier of program transmission package |
CN102611935A (en) * | 2012-02-29 | 2012-07-25 | 山东泰信电子有限公司 | Playing method of multi-code-stream single channel |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103533409A (en) * | 2013-10-24 | 2014-01-22 | 深圳国微技术有限公司 | Method and device for playing stream media file |
CN103763588A (en) * | 2014-01-03 | 2014-04-30 | 深圳市龙视传媒有限公司 | Stream forwarding method, device, server and system for video advertising insertion |
CN104270667A (en) * | 2014-09-28 | 2015-01-07 | 深圳国微技术有限公司 | Program switchover method and device and terminal |
CN105072463A (en) * | 2015-07-20 | 2015-11-18 | 浙江华数广电网络股份有限公司 | Instantaneous channel switching method for digital television live broadcast |
CN105072463B (en) * | 2015-07-20 | 2019-06-28 | 浙江华数广电网络股份有限公司 | A kind of digital TV direct instantaneously cuts platform method |
CN108289227A (en) * | 2018-01-04 | 2018-07-17 | 山东浪潮商用系统有限公司 | A kind of method and device for realizing that audio-video source is replaced in TS streams |
CN109327706A (en) * | 2018-10-10 | 2019-02-12 | 广东省南方数字电视无线传播有限公司 | Programme televised live signal acceptance method and system based on DTMB |
CN111726680A (en) * | 2020-06-17 | 2020-09-29 | 伟乐视讯科技股份有限公司 | Method and equipment for realizing EIT table multiplexing |
Also Published As
Publication number | Publication date |
---|---|
CN102821306B (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102821306A (en) | Transport stream processing method, relative device and relative system | |
EP3518442B1 (en) | Method for transmitting and receiving multimedia service | |
US20160066049A1 (en) | Source-linked electronic programming guide | |
US10771859B2 (en) | Provisioning commercial-free media content | |
US10856038B2 (en) | Predictive time-shift buffering for live television | |
US10402063B2 (en) | Methods and systems for providing additional content | |
EP2773107A1 (en) | Broadcast receiver, playback device, broadcast communication system, broadcast receiving method, playback method and program | |
US8793502B2 (en) | Method for evaluating user's rights stored in a security module | |
US20160203843A1 (en) | Content-triggered highlight recording | |
US20140186014A1 (en) | Auto catch-up | |
US12108098B2 (en) | Digital transport adapter | |
US20230188772A1 (en) | Content viewing method and mobile information terminal used for same | |
US9491514B2 (en) | Media content bookmarking | |
US9124936B2 (en) | Mixed mode television receiver | |
CN107396153B (en) | Channel switching method and device | |
JP2023010771A (en) | Content protection processing method | |
JP2022000947A (en) | Content protection processing method | |
CN106713977B (en) | Network playing method and device | |
KR100912839B1 (en) | Apparatus for Recording of Broadcast Data and Method thereof | |
JP7176057B2 (en) | Broadcast receiving device and content protection processing method | |
JP6997888B2 (en) | Content protection processing method | |
US8290335B2 (en) | Method and apparatus for recording transport stream | |
KR20170084070A (en) | Media content reception and switching management | |
JP2022003812A (en) | Content protection processing method | |
CN112243589A (en) | Receiving device and receiving method, transmitting and receiving system and method executed by transmitting and receiving system, video playing device and video playing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 518000 Guangdong Province Shenzhen Nanshan District High-tech Industrial Park South District High-tech Nandao National Micro-R&D Building 1 Floor West Part, 2 Floors Patentee after: GUOWEI GROUP (SHENZHEN) Co.,Ltd. Address before: 518057 West Part and 2 Floors of the 1st Floor of the High-tech Nandao Guowei R&D Building, South District, Nanshan High-tech Industrial Park, Shenzhen City, Guangdong Province Patentee before: SHENZHEN STATE MICRO TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20151209 |
|
CF01 | Termination of patent right due to non-payment of annual fee |