Summary of the invention
Embodiment of the invention technical problem to be solved is, the method for testing, server and the system that provide a kind of set-top box to deposit the platform limit, and it is more convenient to make set-top box deposit the test of the platform limit.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of set-top box to deposit the method for testing of the platform limit, comprising:
After the test machine top box gets access to the test transport stream, described test transport stream is carried out the frequency locking demodulation process, obtain baseband transmission stream, described test transport stream be the digital video broadcasting server will be at least the two-way transmission flow multiplex become one tunnel transport stream, and filter out that partly or entirely basic stream back in the transport stream that multiplexing back forms generates;
Resolve the Program Association Table PAT in the baseband transmission stream, obtain the Packet Identifier PID of the Program Map Table PMT of each program; Packet Identifier PID according to Program Map Table PMT obtains Program Map Table PMT, obtains the program-related information of each program;
Resolve the SDT Service Description Table SDT in the described baseband transmission stream, obtain the programm name information of each program number correspondence among the described Program Map Table PMT;
Described program-related information and described programm name information that storage is obtained.
Wherein, described program-related information comprises: program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier.
Wherein, described digital video broadcasting server two-way transmission flow multiplex at least becomes one tunnel transport stream, and filters out the step that partly or entirely basic stream back in the transport stream that multiplexing back forms generates described test transport stream and comprise:
Digital video broadcasting server two-way transmission flow multiplex at least becomes one tunnel transport stream;
Program Association Table PAT and Program Map Table PMT in the transport stream of multiplexing back formation are handled, obtain described test transport stream;
Wherein, Program Association Table PAT in the described transport stream that multiplexing back is formed and Program Map Table PMT carry out treatment step and comprise: each in filtering out audio frequency described in the described Program Map Table PMT stream, video-frequency basic flow and data flowing substantially substantially or multinomial, and program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier among described Program Association Table PAT of transparent transmission and the Program Map Table PMT.
Wherein, also comprise: described program-related information and described programm name information according to storage generate the rendition list, and show described the rendition list.
Correspondingly, the embodiment of the invention also provides a kind of digital video broadcasting server, comprising:
Multiplexer is used for two-way transmission flow multiplex is at least become one tunnel transport stream;
Microprocessor is used for the Program Association Table PAT and the Program Map Table PMT of the multiplexing back transport stream that forms of described multiplexer are handled, and obtains described test transport stream;
Wherein, Program Association Table PAT in the transport stream that described microprocessor forms multiplexing back and Program Map Table PMT carry out treatment step and comprise: each in filtering out audio frequency described in the described Program Map Table PMT stream, video-frequency basic flow and data flowing substantially substantially or multinomial, and program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier among described Program Association Table PAT of transparent transmission and the Program Map Table PMT.
Correspondingly, the test macro that the embodiment of the invention also provides a kind of set-top box to deposit the platform limit comprises digital video broadcasting server and set-top box to be measured, wherein,
Described digital video broadcasting server is used for two-way transmission flow multiplex is at least become one tunnel transport stream, and the partly or entirely basic stream back that filters out in the transport stream that multiplexing back forms generates the test transport stream;
Described set-top box to be measured, after being used to get access to the test transport stream of described digital video broadcasting server, described test transport stream is carried out the frequency locking demodulation process, obtain baseband transmission stream, resolve the Program Association Table PAT in the baseband transmission stream, obtain the Packet Identifier PID of the Program Map Table PMT of each program; Packet Identifier PID according to Program Map Table PMT obtains Program Map Table PMT, obtain the program-related information of each program, and resolve SDT Service Description Table SDT in the described baseband transmission stream, obtain the programm name information of each program number correspondence among the described Program Map Table PMT, and store described program-related information and the described programm name information of obtaining.
Wherein, described program-related information comprises: program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier.
Wherein, described digital video broadcasting server specifically comprises:
Multiplexer is used for two-way transmission flow multiplex is at least become one tunnel transport stream;
Microprocessor is used for the Program Association Table PAT and the Program Map Table PMT of the multiplexing back transport stream that forms of described multiplexer are handled, and obtains described test transport stream;
Wherein, Program Association Table PAT in the transport stream that described microprocessor forms multiplexing back and Program Map Table PMT carry out treatment step and comprise: each in filtering out audio frequency described in the described Program Map Table PMT stream, video-frequency basic flow and data flowing substantially substantially or multinomial, and program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier among described Program Association Table PAT of transparent transmission and the Program Map Table PMT.
Implement the embodiment of the invention, have following beneficial effect:
The present invention is by being multiplexed into one the tunnel at server end with multiple path transmission flow, and be handed down to set-top box to be measured after handling, set-top box to be measured is through after the dissection process, just can obtain and bigger pairing program-related information of TV programme and the programm name information of stored number, thereby simply carry out the test that set-top box is deposited the platform limit fast, avoided repeatedly to change the server frequency, the problem of search program on different frequent points, improve set-top box and deposited the testing efficiency of the platform limit, and improved the server resource utilance.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Seeing also Fig. 1, is that the structure of the set-top box of the present invention test macro of depositing the platform limit is formed schematic diagram, and this system comprises: digital video broadcasting server 1 and set-top box 2 to be measured, wherein,
Described digital video broadcasting server 1 is used for two-way transmission flow multiplex is at least become one tunnel transport stream, and the partly or entirely basic stream back that filters out in the transport stream that multiplexing back forms generates the test transport stream;
Described set-top box to be measured 2, after being used to get access to the test transport stream of described digital video broadcasting server 1, described test transport stream is carried out the frequency locking demodulation process, obtain baseband transmission stream, resolve the Program Association Table PAT in the baseband transmission stream, obtain the Packet Identifier PID of the Program Map Table PMT of each program; Packet Identifier PID according to Program Map Table PMT obtains Program Map Table PMT, obtain the program-related information of each program, and resolve SDT Service Description Table SDT in the described baseband transmission stream, obtain the programm name information of each program number correspondence among the described Program Map Table PMT, and store described program-related information and the described programm name information of obtaining.Wherein, described program-related information comprises: program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier also can comprise some other information that is used to indicate program certainly.
Concrete, please in the lump referring to Fig. 2, be that the structure of the digital video broadcasting server among Fig. 1 is formed schematic diagram, this digital video broadcasting server 1 specifically comprises: multiplexer 11 and microprocessor 12.
Described multiplexer 11 is used for two-way transmission flow multiplex is at least become one tunnel transport stream;
Described microprocessor 12 is used for the Program Association Table PAT and the Program Map Table PMT of the described multiplexer 11 multiplexing back transport stream that form are handled, and obtains described test transport stream; Wherein, Program Association Table PAT in the transport stream that the multiplexing back of 12 pairs of described microprocessors forms and Program Map Table PMT carry out treatment step and comprise: each in filtering out audio frequency described in the described Program Map Table PMT stream, video-frequency basic flow and data flowing substantially substantially or multinomial, and the program number among transparent transmission Program Association Table PAT and the Program Map Table PMT, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier.
Described digital video broadcasting server 1 is the server in the digital video broadcast system, and it is provided with the above-mentioned functions module, can realize set-top box is deposited the test of the platform limit.
The present invention is by being multiplexed into one the tunnel at server end with multiple path transmission flow, and be handed down to set-top box to be measured after handling, set-top box to be measured is through after the dissection process, just can obtain and bigger pairing program-related information of TV programme and the programm name information of stored number, thereby simply carry out the test that set-top box is deposited the platform limit fast, avoided repeatedly to change the server frequency, the problem of search program on different frequent points, improve set-top box and deposited the testing efficiency of the platform limit, and improved the server resource utilance.
The method of testing that a kind of set-top box of the present invention is deposited the platform limit is elaborated below.
Seeing also Fig. 3, is the first embodiment schematic flow sheet of the set-top box of the present invention method of testing of depositing the platform limit; This method comprises:
S301: after the test machine top box gets access to the test transport stream, described test transport stream is carried out the frequency locking demodulation process, obtain baseband transmission stream, described test transport stream be the digital video broadcasting server will be at least the two-way transmission flow multiplex become one tunnel transport stream, and filter out that partly or entirely basic stream back in the transport stream that multiplexing back forms generates.
Wherein, the digital video broadcasting server will be at least the two-way transmission flow multiplex become one tunnel transport stream, and filter out the step that partly or entirely basic stream back in the transport stream that multiplexing back forms generates described test transport stream and comprise: digital video broadcasting server two-way transmission flow multiplex at least becomes one tunnel transport stream; Program Association Table PAT and Program Map Table PMT in the transport stream of multiplexing back formation are handled, obtain described test transport stream; Wherein, Program Association Table PAT in the described transport stream that multiplexing back is formed and Program Map Table PMT carry out treatment step and comprise: each in filtering out audio frequency described in the described Program Map Table PMT stream, video-frequency basic flow and data flowing substantially substantially or multinomial, and program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier among described Program Association Table PAT of transparent transmission and the Program Map Table PMT.Described program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier are the pairing program-related information of each program.
Concrete, the digital video broadcasting server is multiplexed into one tunnel transport stream (Transport Stream with multiple path transmission flow by multiplexer, TS), and the correlation table in this multiplexing transport stream that forms handled, described correlation table comprises Program Association Table PAT, Program Map Table PMT, SDT Service Description Table SDT, and concrete treatment step then can comprise:
Described Program Association Table PAT is used to provide the Packet Identifier PID of the Program Map Table PMT of the program number (Program_number) of each program and each program, and described Program Map Table PMT is used to provide video-frequency basic flow that each program comprises, audio frequency flows substantially or data flow substantially PID and the PID of program clock reference; The PID of described basic stream is used to provide the transport stream data packet sign that described video-frequency basic flow, audio frequency flow substantially or data flow substantially, and described program clock reference PCR_PID is used to provide the transport stream data packet sign at program clock reference place.
Parsing Program Association Table PAT obtains the Packet Identifier PID of Program Map Table PMT, Packet Identifier PID according to Program Map Table PMT obtains Program Map Table PMT, to Packet Identifier (the Packet IDdentifier among the described Program Map Table PMT, PID) handle, the part or all of audio frequency that Packet Identifier PID identified in the multiplexing transport stream that forms is flowed substantially, video-frequency basic flow, data flow substantially and clock reference (Program Clock Reference, PCR) filter out, make and in Program Map Table PMT, only have audio frequency PID, the description of video PID and clock reference PCR_PID, and in the transport stream of reality, do not have data such as corresponding audio, video data.With the program-related information in several roads transport stream of multiplexer input such as program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier transparent transmission.
Processing to SDT Service Description Table SDT is meant interpolation Business Name information in SDT Service Description Table SDT, described Business Name information and task identifier (Service_id) are associated, described task identifier can business of unique identification in a transport stream TS, and it is corresponding with the program number among Program Association Table PAT and the Program Map Table PMT.
The treated described multiplexing transport stream that forms has following feature: described tens up to a hundred even a hundreds of program-related information among (1) Program Association Table PAT, Program Map Table PMT, the SDT Service Description Table SDT; (2) PID that describes in the Program Map Table not necessarily exists in transport stream, and just just in the correlation table the inside description of program-related information to be arranged be all kinds of PID to some program, and do not have actual data in code stream, as do not have audio, video data; (3) suitable with general transport stream code check, but transmitted more Polymera relevant information.
The digital video broadcasting server is modulated and is issued in the set-top box to be measured transport stream through after the above-mentioned processing.Corresponding to the demodulation mode of set-top box to be measured, described modulation system comprises: digital video broadcast for cable DVB-C modulation system, satellite digital video broadcast DVB-S/ S2 modulation system, digital video broadcast-terrestrial DVB-T modulation system or the like.
Set-top box is carried out locked frequency point and demodulation receiving the digital video broadcasting server after the transport stream TS that above-mentioned processing issues to this transport stream TS, obtains baseband transmission stream TS.Described frequency can be that the frequency point information that the user manually imports also can be the prefabricated frequency point information of set-top box.Write frequency point information in the Flash memory that described prefabricated frequency point information is meant in set-top box.
Certainly, also can be earlier the correlation table of each road transport stream of multiplexer input be handled, and then be multiplexed into one tunnel transport stream, form the test transport stream and be handed down to set-top box to be measured.
S302: resolve the Program Association Table PAT in the baseband transmission stream, obtain the Packet Identifier PID of the Program Map Table PMT of each program; Packet Identifier PID according to Program Map Table PMT obtains Program Map Table PMT, obtains the program-related information of each program;
Concrete, PID was 0 packet during the described baseband transmission of resolving S302 flowed, just resolve Program Association Table PAT, can obtain the Packet Identifier PID of the Program Map Table PMT of the program number of each program and each program, resolve the Program Map Table PMT of each program according to the Packet Identifier PID of Program Map Table PMT, can obtain the Packet Identifier PID of program clock reference PCR of each program and the Packet Identifier PID of basic stream such as audio frequency, video and data ES.Described program number is used at program of transport stream TS unique identification, simultaneously, because this baseband transmission stream gets via the multiplexing multiple path transmission flow of described digital video broadcasting server and after handling, therefore described program number has tens up to a hundred even hundreds of.The Packet Identifier PID of described Program Map Table PMT is used for providing the package identification of Program Map Table PMT in transport stream TS.
S303: resolve the SDT Service Description Table SDT in the described baseband transmission stream, obtain the programm name information of each program number correspondence among the described Program Map Table PMT.
Concrete, resolve the SDT Service Description Table SDT in the described baseband transmission stream, can obtain Business Name information, described SDT Service Description Table SDT is that the transport stream data packet of 0x11 is carried by Packet Identifier PID, described business identifies by task identifier, described task identifier is business of unique identification in described transport stream, the just described program of described business, and described task identifier is corresponding with the program number in Program Association Table and the Program Map Table.
S304: described program-related information and described programm name information that storage is obtained.
Concrete, described storage is that described program-related information is stored the into program data district of Flash memory, so that after search finishes, generates and also shows corresponding the rendition list.
Description by the foregoing description as can be known, the present invention has the following advantages:
The present invention is by being multiplexed into one the tunnel at server end with multiple path transmission flow, and be handed down to set-top box to be measured after handling, set-top box to be measured is through after the dissection process, just can obtain and bigger pairing program-related information of TV programme and the programm name information of stored number, thereby simply carry out the test that set-top box is deposited the platform limit fast, avoided repeatedly to change the server frequency, the problem of search program on different frequent points, improve set-top box and deposited the testing efficiency of the platform limit, and improved the server resource utilance.
Fig. 4 is the second embodiment schematic flow sheet of the set-top box of the present invention method of testing of depositing the platform limit.
S401: digital video broadcasting server two-way transmission flow multiplex at least becomes one tunnel transport stream.
S402: the digital video broadcasting server is handled Program Association Table PAT and the Program Map Table PMT in the transport stream of multiplexing back formation, obtains described test transport stream.
Wherein, Program Association Table PAT in the described transport stream that multiplexing back is formed and Program Map Table PMT carry out treatment step and comprise: each in filtering out audio frequency described in the described Program Map Table PMT stream, video-frequency basic flow and data flowing substantially substantially or multinomial, and program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier among described Program Association Table PAT of transparent transmission and the Program Map Table PMT.
S403: set-top box to be measured is carried out the frequency locking demodulation process to described test transport stream after getting access to the test transport stream, obtains baseband transmission stream.
S404: set-top box to be measured is resolved the Program Association Table PAT in the baseband transmission stream, obtains the Packet Identifier PID of the Program Map Table PMT of each program; Packet Identifier PID according to Program Map Table PMT obtains Program Map Table PMT, obtains the program-related information of each program.Described program-related information comprises: program number, program audio Packet Identifier, program video Packet Identifier and program clock reference Packet Identifier.
S405: set-top box to be measured is resolved the SDT Service Description Table SDT in the described baseband transmission stream, obtains the programm name information of each program number correspondence among the described Program Map Table PMT.
S406: described program-related information and described programm name information that set-top box storage to be measured is obtained.
S407: set-top box to be measured generates the rendition list according to the described program-related information and the described programm name information of storage, and shows described the rendition list.
Description by the foregoing description as can be known, the present invention has the following advantages:
The present invention is by being multiplexed into one the tunnel at server end with multiple path transmission flow, and be handed down to set-top box to be measured after handling, set-top box to be measured is through after the dissection process, just can obtain and bigger pairing program-related information of TV programme and the programm name information of stored number, thereby simply carry out the test that set-top box is deposited the platform limit fast, avoided repeatedly to change the server frequency, the problem of search program on different frequent points, improve set-top box and deposited the testing efficiency of the platform limit, and improved the server resource utilance.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed is preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.