Summary of the invention
The object of this invention is to provide a kind of acquisition methods of digital television program guide, the technical problem that solve be make user convenient browse digital television programs information.
For solving the problems of the technologies described above, the present invention is by the following technical solutions: a kind of acquisition methods of digital television program guide, comprises the following steps: Event Information Table (EIT_BUF) space in (1), Digital Television initializes memory; (2), the basic TV Guide (EPG) of Digital Television receiving digital television broadcast from network, and obtain SI information complete in basic TV Guide (EPG) transmission class, obtain Event Information Table (EIT) data in SI information, and Event Information Table (EIT) data are stored in Event Information Table (EIT_BUF) space in memory; (3) Digital Television is according to description (EIT Schedule EITpresent/following) the current video information data of decoding of the current or subsequent program of certain time period of the actual program in Event Information Table (EIT), and is stored in (EIT_BUF) space by decoded current video information data; (4) user opens digital television program guide, and Digital Television obtains current video information data from Event Information Table (EIT_BUF) space, and by digital television program guide interface display over the display.
Event Information Table of the present invention (EIT) comprises the actual subordinate list (EIT scheduleactual) of Event Information Table and other subordinate list (EIT schedule other) of Event Information Table.
Event Information Table of the present invention (EIT) uses linkage descriptor (LINKAGE_TYPE=0X04) to point to the transmission class of basic TV Guide EPG.
Certain time period of actual program of the present invention description (EIT Schedule EITpresent/following) that is current or subsequent program comprises the simple descriptor of the start time information of TV programme, Duration Information and event.
TV programme of the present invention represents the TV programme of a TV station by service, and utilize event that the TV programme service of TV station is divided into several time periods, each time period represents with event_id.
Current or subsequent program of the present invention comprise existing or other transmission class current/successor information (table_id=0x4e or 0x4F), current program information (section_number=0) and subsequent program information (section_number=1).
When current event of the present invention changes, version_number adds 1, represents that current/subsequent program describes the change occurred.
The span of the listing of existing transmission class of the present invention is table_id=0x50 ~ 0x5F.
The span of the listing of other transmission class of the present invention is table_id=0x60 ~ 0x6F.
Current video information data of the present invention comprise the number of days of transmission information, transmit the viewing classification restriction of the number of channel and title, the number of programs of transmission, the mark of program offers and title, the information of transmission network, programm name, the simple introduction of program, start and end time of program, the theme of program, the generic of program and program.
Compared with prior art, according to digital tv encoder standard, the content of the basic TV Guide EPG information of correct process digital television broadcasting, makes the display of TV Guide EPG in Set Top Box more reasonable simultaneously in the present invention.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.
In Digital Television, all information and signal, comprise video, audio frequency, word, picture etc. and all become data after digitlization.Data will be packed according to related standards (being generally MPEG-2) before transmission, and form transmission (TS) bag of regular length, it is 188 bytes that the TS of MPEG-2 wraps length, and then by network fast transport to destination.For the TS bag that these length are identical, if do not have guidance information, receiving terminal decoder is the code stream that cannot find needs.Therefore, in MPEG-2, PSI is defined specially.The effect of PSI is Lookup protocol and guides decoder to decode.
PSI is made up of Program Association Table (PAT), CAT Conditional Access Table (CAT), Program Map Table (PMT) and network information table (NIT), and each table is divided in some sections of mappings (conversion) to TS and transmits.In PAT, it is reserved that program 0 is always NIT.Here pid value is metric, and the pid value distributed in related standards is hexadecimal, namely represents by the value of 0 × beginning.As metric 22,54, be 0 × 16,0 × 36 respectively in hexadecimal.
PSI data provide the information receiving function Lookup protocol, make it to decode to the different program streams in multiplex stream.But PSI table can not provide the identifying information of relevant service and program.Therefore, DVB tissue is expanded the PSI of MPEG-2, provides the multiple form of different information category, is referred to as SI.SI is used to describe transfer system, transmit the data such as content and broadcast data stream timetable, and it helps Integrated Receive Decoder (IRD) automatic tuning, provides additional information to user, makes the alternative business of IRD energy Lookup protocol.SI is provided by 9 tables such as BAT bouquet association table (BAT), SDT Service Description Table (SDT), Event Information Tables (EIT), and they are divided into some sections and are mapped to transmission in TS bag.In PSI, the content of network information table (NIT) is special and is not specified, but defines the syntax and semantics of NIT specially in SI table, extends the data format of NIT, aims to provide the information of more Physics networks.With PAT, PMT, CAT in PSI unlike, SI 9 tables in actual use and be not all mandatory transmission.In actual (existing) transfer system, the transmission of NIT, SDT, EIT and TDT is enforceable.In other transfer system, NIT, SDT, EIT are optional transmission.BAT, RST, TOT are under any circumstance optional transmission.ST, SIT and DIT just exist when being then and needing.Except the EIT carrying schedule information, all PSI and SI tables all can not scrambling, normally works in order to avoid affect decoder.
According to " DTV service information standard " requirement to EPG, EPG should provide the basic function such as programme and actual program broadcasting, also can provide the Premium Features such as program additional information, program classification, program booking and parental ratings control.In interactive television, EPG is more complicated, should be able to provide the functions such as such as programme content background information, view angle switch, weather forecast, game.The data that these functions of EPG all provide by SI realize.That is SI is the prerequisite realizing EPG function.In SI table, the most important thing is NIT, EIT and SDT, the data in utilizing these 3 to show just can construct the different EPG of function.
Therefore, for make user convenient browse digital television programs information, the preparation method of digital television program guide of the present invention, comprises the following steps: Event Information Table (EIT_BUF) space in (1), Digital Television initializes memory; (2), the basic TV Guide (EPG) of Digital Television receiving digital television broadcast from network, and obtain SI information complete in basic TV Guide (EPG) transmission class, obtain Event Information Table (EIT) data in SI information, and Event Information Table (EIT) data are stored in Event Information Table (EIT_BUF) space in memory; (3) Digital Television is according to description (EIT Schedule EITpresent/following) the current video information data of decoding of the current or subsequent program of certain time period of the actual program in Event Information Table (EIT), and is stored in (EIT_BUF) space by decoded current video information data; (4) user opens digital television program guide, and Digital Television obtains current video information data from Event Information Table (EIT_BUF) space, and by digital television program guide interface display over the display.
Event Information Table EIT of the present invention comprises the actual subordinate list (EIT schedule actual) of Event Information Table and other subordinate list (EIT schedule other) of Event Information Table.
Event Information Table EIT of the present invention uses linkage descriptor (LINKAGE_TYPE=0X04) to point to the transmission class of basic TV Guide EPG.
Certain time period of actual program of the present invention description (EIT Schedule EITpresent/following) that is current or subsequent program comprises the simple descriptor of the start time information of TV programme, Duration Information and event.
TV programme of the present invention represents the TV programme of a TV station by service, and utilize event that the TV programme service of TV station is divided into several time periods, each time period represents with event_id.
Current or subsequent program of the present invention comprise existing or other transmission class current/successor information (table_id=0x4e or 0x4F), current program information (section_number=0) and subsequent program information (section_number=1).
When current event of the present invention changes, version_number adds 1, represents that current/subsequent program describes the change occurred.
The span of the listing of existing transmission class of the present invention is table_id=0x50 ~ 0x5F.
The span of the listing of other transmission class of the present invention is table_id=0x60 ~ 0x6F.
Current video information data of the present invention comprise the number of days of transmission information, transmit the viewing classification restriction of the number of channel and title, the number of programs of transmission, the mark of program offers and title, the information of transmission network, programm name, the simple introduction of program, start and end time of program, the theme of program, the generic of program and program.
As shown in Figure 3, be the decoding process figure of digital television program guide of the present invention, its idiographic flow is as follows: one, user opens Digital Television; Two, the EIT_BUF space in Digital Television initializes memory; Three, Digital Television obtains SI information complete in transmission class basic TV Guide EPG transmission class, obtains Event Information Table EIT in SI information and shows data, solve current video information data; Four, current video information data are stored in memory EIT_BUF; Five, user sends instruction by remote controller, after Digital TV Receiving to instruction, obtains in Event Information Table EIT_BUF space and obtain current video information data from memory EIT_BUF space; Six, by digital television program guide interface display over the display.
As shown in Figure 4, be the flow chart of standard identification of the present invention, its idiographic flow is as follows: one, start; Two, Digital Television initialization; Three, Digital Television is from the current video information data acquisition current frame data in the EIT_BUF space memory; Four, Digital Television is by frame data under current video information data acquisition; Five, accumulative frame (F+2); Six, compared by two frame data, difference then enters step 8, identical, enters next step; Seven, identical N+1; Eight, whether be one second, be enter next step, otherwise return step 3; Nine, terminate.
A service of the present invention represents the program of a platform, with event, service is divided into a lot of time periods, each independent event can go to describe with an event_id, such as: the news hookup program of 19:00---19:30 just can go to describe as an event, and current event can have current/subsequent descriptions.First table_id=0x4e or 0x4F, represent this be existing or other transmission class current/successor information.Then section_number=0, expression is current program information, section_number=1, and expression is subsequent program information.When event changes, version_number adds 1, represents that current/subsequent program describes and also there occurs change.Such as:
19:00----19:30 news hookup version_number=1 event_id=0x01
19:31----20:00 cartoon version_number=2 event_id=0x02
Above two events current/subsequent program describe just there occurs change.
The viewing classification restriction of the simple introduction of the information of the number of days of the information that current video information data solve from basic TV Guide EPG transmission class (solve is what meaning) transmits, the number transmitting channel and title, the number of programs of transmission, the mark of program offers and title, transmission network, programm name, program, the start and end time of program, the theme of program, the generic of program and program, above content is concrete digital television program guide interface as Fig. 2 demonstrates.
The present invention, according to digital coding standards, once decodes all program information content and preserves.Realize user in same user interface and browse the advance notice of other channel program, program detail information content in the program video information of viewing channel 1 simultaneously, and parallel browse multiple programs schedule information.