Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of method and apparatus of digital television to search program is provided, and can search for program apace, and can upgrade program by AutoBackground.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of method of digital television to search program, comprising:
Frequency in locking obtains network information table NIT and service description list SDT;
Resolve said NIT table and obtain the information of each frequency under the current network and the programme information under each frequency;
Resolve said SDT table and obtain the programm name of all programs;
Based on the information of said each frequency that obtains, programme information and the programm name of said all programs that obtain under each frequency, generate the rendition list and also preserve said the rendition list.
Preferable, the method for this digital television to search program also comprises the step of upgrading said the rendition list, this step comprises:
Whether monitoring NIT table has renewal, does not upgrade if having, and then continues monitoring; If renewal is arranged, then from the NIT table, obtain the frequency point information and the programme information of renewal, and from the SDT table, obtain the programm name of renewal;
Based on the frequency point information of said renewal and the programm name of programme information and renewal, upgrade said the rendition list.
Preferable, the method for this digital television to search program further comprises the step of broadcast program, this step comprises:
Extract the bag sign pid information of current program to be broadcast;
Based on said pid information play parameter is set, and plays current program.
Preferable, the pid information of the current program to be broadcast of said extraction comprises:
Lock the frequency at said current program to be broadcast place;
Resolve the program association table PAT and the Program Map Table PMT of said current program to be broadcast place frequency, thereby obtain said pid information.
Correspondingly, the embodiment of the invention also provides a kind of device that is used for the digital television to search program, and this device comprises:
Frequency locking module is used for obtaining network information table NIT and service description list SDT at the frequency of locking;
Parsing module is used to resolve said NIT table and obtains the information of each frequency under the current network and the programme information under each frequency, and is used to resolve the programm name that said SDT table obtains all programs;
Administration module is used for the programm name of information, the programme information under each frequency and said all programs that obtain based on said each frequency that obtains, and generates the rendition list and also preserves said the rendition list.
Preferable, the device of the digital television to search program that is used for also comprises the rendition list update module, this rendition list update module comprises:
Monitoring unit, whether have renewal, do not upgrade if having if being used to monitor the NIT table, then continue monitoring, if renewal is arranged, then from the NIT table, obtains the frequency point information and the programme information of renewal, and the programm name that from the SDT table, obtains renewal;
Updating block is used for upgrading said the rendition list based on the frequency point information of said renewal and the programm name of programme information and said renewal.
Preferable, said monitoring unit comprises:
First judgment sub-unit is used to judge whether said NIT table has renewal;
Second judgment sub-unit, be used for when the judged result of said first judgment sub-unit when being, from the NIT table, take out frequency point information, programme information and the programm name that upgrades.
Preferable, the device of the digital television to search program that is used for also comprises the playing programs module, this playing programs module comprises:
Extraction unit is used to extract the pid information of current program to be broadcast;
The playback process unit is used for based on said pid information play parameter being set, and plays current program.
Preferable, said extraction unit comprises:
The frequency locking subelement is used to lock the frequency that said current program to be broadcast belongs to;
Resolve subelement, resolve the program association table PAT and the Program Map Table PMT of said current program to be broadcast place frequency, thereby obtain said pid information.
Embodiment of the present invention embodiment has following beneficial effect:
The embodiment of the invention is just obtained relevant frequency point information and programme information through having locked a frequency in the process of search program; Do not lock and resolve this step of pid information that each frequency extracts each program, thereby make significantly reduce search time; The embodiment of the invention comes the backstage to realize upgrading automatically the rendition list through the variation of monitoring NIT table, when Virtual network operator has carried out upgrading adjustment to program channel, need not the user and goes to search for and upgrade again.
Embodiment
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 the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Standard DVB-C (Digital Video Broadcasting-Cable; Cable digital TV broadcasting) in; Each frequency all can have its corresponding NIT (Network Information Table; Network information table) table and SDT (Service Description Table, service describing table) table.Wherein, NIT table has comprised information (like version number, MPTS ID, primitive network ID, frequency point parameters information etc.) and the programme information under each frequency (like program ID, program LCN (Logic Channel Number, logical channel numbers) number, the type of program etc.) of each frequency under the current network.The SDT table comprises the programm name of all programs of current network and supplier's title.
Fig. 1 is the schematic flow sheet according to the embodiment of the method for digital television to search program of the present invention.As shown in Figure 1, this method comprises:
Step S1 after obtaining search command, locks a frequency under the current network, and obtains NIT table and SDT table at this frequency.
Wherein, the information of the NIT of the frequency of locking table comprises the information of each frequency under the current network and the program channel information under each frequency.The SDT table comprises the programm name of all programs under the current network and supplier's title.
Step S2 resolves the NIT table and then therefrom obtains the information of each frequency under the current network and the programme information under each frequency, and resolves the programm name that SDT showed and then obtained all programs.
Step S3 generates the rendition list thereby the programm name of the programme information of the information of each frequency that obtains and each frequency and all programs of obtaining is carried out associative combination, and preserves this rendition list.
Because present embodiment just obtains frequency point information and programme information through having locked a frequency in the process of search program; Do not lock and resolve this step of pid information that each frequency extracts each program, thereby make significantly reduce search time.For example; In a network that 200 programs of 30 frequencies are arranged; Searching for then by existing method (search need be obtained the pid information of each program program the time) needs about five to ten minutes, and uses all programs of the method removal search current network of present embodiment only to need about ten to 15 seconds.
Adopt the method for the search program of the embodiment of the invention, only need frequency of correct locking, in the NIT table, parse the information that needs, just can accomplish search, can not have the situation of search less than program.
The method of embodiment of the invention digital television to search program also comprises the step of upgrading the rendition list.When frequency point information and programme information change the change of increase and decrease like program, LCN number to some extent, the NIT table is shown also can make corresponding changes with SDT.We can be through background monitoring NIT table the method for variation realize the automatic renewal of the rendition list.
Fig. 2 is the schematic flow sheet that DTV of the present invention upgrades the embodiment step of the rendition list.As shown in Figure 2, this step comprises:
Step S4, whether background monitoring NIT table has renewal, if renewal is arranged, then gets into step S5; Do not upgrade if having, then continue monitoring.
Wherein whether whether " background monitoring NIT table have renewal " can change through contrast NIT table version number and realize, or compare through the information with the information of the NIT table of preserving and existing NIT table and to realize.
Step S5 takes out frequency point information and the programme information that changes, and it is carried out analysis and judgement: if program increases to some extent and/or LCN number change to some extent, then gets into step S6 from the NIT table; If program is deleted to some extent, then get into step S7.
Step S6 resolves the SDT table, and therefrom takes out the programm name that changes.
Step S7 based on the frequency point information of upgrading and the programm name of programme information and renewal, upgrades the rendition list.
Since SDT table be background monitoring with real-time update, so when program is deleted to some extent, SDT does not have the programme information of deleting in showing, step S5 directly gets into step S7, does not need implementation step S6.
The variation of the embodiment of the invention through monitoring NIT table realizes that the backstage upgrades the rendition list automatically; When Virtual network operator has carried out upgrading adjustment to program channel; New programme information can add the rendition list automatically to, does not need the user to search for the program channel that the program mode is obtained renewal again.
The method of embodiment of the invention digital television to search program also comprises the step of broadcast program in addition.Since the search program with upgrade program the time; Just add the programme information of part (like the programme information of the information of each frequency, each frequency, programm name etc.) simply and advance database; The needed relevant information of other broadcast program (like pid information) is not obtained, so before broadcast program, need obtain these information.
Fig. 3 is the schematic flow sheet that DTV of the present invention is play the embodiment step of program.As shown in Figure 3, this step comprises:
Step S8 behind the selected program of user, locks the frequency at current program to be broadcast place.
Step S9, PAT (Program Association Table, program association table) is resolved in monitoring, thereby obtains the pid information of PMT (Program Map Table, the Program Map Table) table of current program.
Wherein, the main effect of pat table is to point out MPTS ID, and the MAP table of pairing several roads program stream and the PID of network information table in this MPTS.
The pid information of pmt table is provided by pat table and provides.Can obtain the information that comprises in one road program through pat table; For example, this road program constitutes type (video, audio frequency with these streams by which stream; Data); The corresponding PID of each stream in the appointed program, and the pairing PID of the PCR of this program (program clock reference, timer reference of programs).
Step S10, PMT is resolved in monitoring, thereby obtains the information such as audio frequency and video PID and captions PID in the pid information of current program to be broadcast, and information such as the audio frequency and video PID that from pid information, obtains of preservation and captions PID.
Step S11 based on information setting play parameter such as audio frequency and video PID that obtains and captions PID, and plays current program.
Under the prerequisite that information such as audio frequency and video PID and captions PID have been obtained and preserved, the DTV step of broadcast program once more is following:
Steps A behind the selected program that will play of user, locks the frequency at current program to be broadcast place.
Step B based on information setting play parameter such as audio frequency and video PID that preserves and captions PID, and plays current program.
Embodiments of the invention need obtain pid information during broadcast program first behind the search program, to obtain the required time of pid information longer owing to carry out, so have the delay about 1 second can cause first broadcast program the time.But under the prerequisite that pid information has obtained and preserved, when the user plays this program once more, can there be the problem of playout-delay.
Fig. 1 to Fig. 3 has carried out detailed elaboration to the method for the digital television to search program of the embodiment of the invention, and the main body of its execution can be such as receiving terminal for digital television such as STB, digital TV integrated machine and mobile TVs.
After the embodiment of above-mentioned method to the digital television to search program has carried out detailed elaboration, continue to combine accompanying drawing, the device corresponding to the said method flow process is described.
Fig. 4 is the structural representation of first embodiment of the present invention's device of being used for the digital television to search program.As shown in Figure 4, this device comprises:
Frequency locking module 100 is used for obtaining network information table NIT and service description list SDT at the frequency of locking.
Wherein, the information of the NIT of the frequency of locking table comprises the information of each frequency under the current network and the program channel information under each frequency.The SDT table comprises the programm name of all programs of current network and supplier's title.
Parsing module 200 is used to resolve the NIT table and then obtains the information of each frequency under the current network and the programme information under each frequency, and the programm name that is used to resolve the SDT table and then obtains all programs.
Administration module 300 carries out associative combination and generates the rendition list thereby be used for programm name with the programme information of the information of each frequency that obtains and each frequency and all programs of obtaining, and preserves this rendition list.
Because present embodiment just obtains frequency point information and programme information through having locked a frequency in the process of search program; Do not lock and resolve this step of pid information that each frequency extracts each program, thereby make significantly reduce search time.For example; In a network that 200 programs of 30 frequencies are arranged; Searching for then by existing method (search need be obtained the pid information of each program program the time) needs about five to ten minutes, and uses all programs of the method removal search current network of present embodiment only to need about ten to 15 seconds.
Adopt the device of the search program of the embodiment of the invention, only need frequency of correct locking, in the NIT table, parse the information that needs, just can accomplish search, can not have the situation of search less than program.
Fig. 5 is the structural representation of second embodiment of the device that is used for the digital television to search program of the present invention.As shown in Figure 5, the device that is used for the digital television to search program also comprises the rendition list update module 400.Fig. 6 is the structural representation of the embodiment of the rendition list update module 400 of the present invention.As shown in Figure 6, the rendition list update module 400 comprises monitoring unit 410 and updating block 420.
Fig. 7 is the structural representation of the embodiment of monitoring unit 410 of the present invention.As shown in Figure 7, monitoring unit 410 comprises first judgment sub-unit 411 and second judgment sub-unit 412.First judgment sub-unit 411 is used to judge whether the NIT table has renewal, does not upgrade if having, and then continues monitoring NIT table.
Wherein whether the judgement of the 411 couples of NIT of first judgment sub-unit table can change through contrast NIT table version number and realize, or compares one by one through the information with the information of the NIT table of preserving and existing NIT table and to realize.
Second judgment sub-unit 412; Be used for when the judged result of first judgment sub-unit 411 when being; From the NIT table, take out frequency point information and the programme information that changes; And it is carried out analysis and judgement:, then resolve the SDT table, and therefrom take out the programm name that changes if program increases to some extent and/or change to some extent for LCN number; If program is deleted to some extent, then need from the SDT table, not obtain the programm name of change, this is because the SDT table is the state that is in background monitoring and real-time update, so when program is deleted to some extent, do not have the programme information of deleting in the SDT table.
Updating block 420 is used for based on the frequency point information of upgrading and the programm name of programme information and renewal, upgrades and preservation the rendition list.
The embodiment of the invention upgrades automatically the rendition list through the variation of monitoring NIT table, when Virtual network operator has carried out upgrading adjustment to program channel, need not the user and searches for and upgrade.
Fig. 8 is the structural representation of the 3rd embodiment of the present invention's device of being used for the digital television to search program.As shown in Figure 8, the device that is used for the digital television to search program also comprises playing programs module 500.Since the search program with upgrade program the time; Just add the programme information (like the information of each frequency, the programme information under each frequency) of part simply and advance database; The needed relevant information of other broadcast program (like pid information) is not obtained, so before broadcast program, need obtain these information.
Fig. 9 is the structural representation of the embodiment of playing programs module 500 of the present invention.As shown in Figure 9, playing programs module 500 comprises:
Extraction unit 510 is used to extract the audio frequency and video PID and the captions PID of current program to be broadcast.
Playback process unit 520 is used for based on information setting play parameter such as audio frequency and video PID that obtains and captions PID, and plays current program.
Figure 10 is the structural representation of the embodiment of extraction unit 510 of the present invention.Shown in figure 10, extraction unit 510 comprises:
Frequency locking subelement 511 is used to lock the frequency that current program to be broadcast belongs to;
Resolve subelement 512, be used for the program association table PAT and the Program Map Table PMT of current program to be broadcast place frequency, thereby obtain information such as audio frequency and video PID and captions PID.
Under the prerequisite that information such as audio frequency and video PID and captions PID have been obtained and preserved, during broadcast program, playing programs module 500 comprises once more:
Frequency locking subelement 511 is used to lock the frequency that current program to be broadcast belongs to;
Playback process unit 520 is used for based on information setting play parameter such as audio frequency and video PID that obtains and captions PID, and plays current program.
Embodiments of the invention need obtain pid information during broadcast program first behind the search program, to obtain the required time of pid information longer owing to carry out, so have the delay about 1 second can cause first broadcast program the time.But under the prerequisite that pid information has obtained and preserved, when the user plays this program once more, can there be the problem of playout-delay.
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 accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like 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 disclosedly be merely a kind of preferred embodiment of the present invention; Certainly can not limit the present invention's interest field with this; One of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description; And, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.