Summary of the invention
The object of the present invention is to provide a kind of method that generates electronic program guide of digital television.
For finishing the foregoing invention purpose, a kind of method that generates electronic program guide of digital television of the present invention has service end, multiplexer and receiving terminal in described Digital Television, comprises the steps:
A. on terminating machine, import the information that contains the electronic program guides program, deposit the electronic program guide information database in, the broadcast time of programme information in the database electronic program guides is revised in layout, and the broadcast time of the programme information after these layouts as index stores in database;
B. the electronic program guides arrangement information in the automatic Query Database of electronic program guides Play System, according to the reproduction time in the arrangement information, automatically take out corresponding electronic program guides programme information, defer to digital video broadcasting and Motion Picture Experts Group's standard, the electronic program guides programme information is packaged into the data segment of digital video broadcasting, i.e. service information table;
C. these data segments are packaged into the code stream of forming by the packet of 188 continuous bytes that meets Motion Picture Experts Group (MPEG-2) standard;
D. code stream is generated and transmit stream, the successional position of expression section in all transport stream packet with identical bag indications is set continuously, and when having new transmission stream to generate when existing transmission stream sends to the code stream ending, this existing transmission stream is switched to this new transmission stream shows to carry out loop play.
Programme information among the described step a comprises that programm name information, module information, content description information, parental ratings information, condition receive one or more in identification information, the expansion program description.
The information of electronic program guides program also comprises the network information, frequency point information, business information, bouquet information among the described step a; The described network information comprises network name information and multilingual network name information; Described frequency point information comprises name information, transmission information, additional frequency list information, wherein name information comprises frequency title, frequency point number, primitive network number again, transmission information comprises centre frequency, symbol rate, forward error correction (FEC) ISN, the outer sign indicating number of forward error correction (FEC), modulation system, and additional frequency list information comprises type of coding, centre frequency; Described business information comprises Business Name information, the multilingual service name information, the professional mutatis mutandis information of country /region, condition receives identification information, affiliated bouquet name information, wherein Business Name information comprises title, classification, program provider, service numbers, the scrambling sign, multilingual service, name information comprises the languages classification, title, program provider, the professional mutatis mutandis information of country /region comprises mutatis mutandis sign, the country /region code, condition receives identification information and comprises condition receiving system (CA) sign, and affiliated bouquet name information comprises the bouquet title; Described bouquet information comprises that bouquet name information, multilingual service group name information, the professional mutatis mutandis information of country /region, condition receive identification information, wherein the bouquet name information comprises title, bouquet number, multilingual service group name information comprises languages classification, title, the professional mutatis mutandis information of country /region comprises mutatis mutandis sign, country /region code, and condition receives identification information and comprises condition receiving system (CA) sign.
Also comprise an audit step between step a and step b, the user with audit authority can check audit to electronic program guide information and electronic program guides arrangement information.
Described code stream is linked in the front end system on certain multiplexer by single-frequency point multiplex mode, or inserts by the multifrequency point multiplex mode on each multiplexer of front end system.
Electronic program guides is responsible for generating the PMT of each frequency in the whole network and pat table and the descriptor that broadcast data is described in PAT and pmt table, and the transmission stream of miscellaneous service has PID in each frequency.
Described electronic program guides and various Added Business have linking relationship,
The broadcast of described electronic program information guidance data storehouse, code stream and code stream is the backup design.
The service information table of electronic program guides also comprises Time of Day table and TOT Time Offset Table, and deciding box for machine provides a time reference.
Advantage of the present invention and beneficial effect are: the present invention abides by DVB, MPEG2 and domestic relevant criterion, and a kind of method of extendible EPG realization is provided, and the solution of the complete front end making of a cover, layout, audit, broadcast, backup is provided.
Embodiment
The present invention is further described in more detail below in conjunction with accompanying drawing.
Consult Fig. 1 main flow chart of the present invention, at first on terminating machine, import the information that contains the electronic program guides program, and deposit these information in the electronic program guide information database.
Electronic program guides (EPG) information spinner will comprise the broadcast timetable of all digital video programs in the whole digital cable network, is similar to the TV newspaper of electronic edition.EPG information also comprises the configuration information of whole digital cable network except comprising the playing programs timetable but in a broad sense.EPG information comprises that programm name information, module information, content description information, parental ratings information, condition receive one or more in identification information, the expansion program description.
Programm name information comprises programm name again in the EPG information, Start Date, the zero hour, duration, the languages classification, contents such as scrambling sign or program brief introduction, module information comprises the stream content again, component type, labelled component or descriptor, content description information comprises the classification of one-level programme content again, classification of secondary programme content or user nibble etc., parental ratings information comprises country code or rank again, condition receives identification information and includes the condition receiving system sign again, and the expansion program description comprises clause name again, entry contents, content such as language codes or detailed description.
Above-mentioned EPG information also comprises the network information, frequency point information, business information, bouquet information.The network information comprises network name information and multilingual network name information.Frequency point information comprises name information, transmission information, additional frequency list information, wherein name information comprises frequency title, frequency point number, primitive network number again, transmission information comprises centre frequency, symbol rate, forward error correction (FEC) ISN, the outer sign indicating number of forward error correction (FEC), modulation system, and additional frequency list information comprises type of coding, centre frequency.Business information comprises that Business Name information, multilingual service name information, the professional mutatis mutandis information of country /region, condition receive identification information, affiliated bouquet name information, wherein Business Name information comprises title, classification, program provider, service numbers, scrambling sign, multilingual service, name information comprises languages classification, title, program provider, the professional mutatis mutandis information of country /region comprises mutatis mutandis sign, country /region code, condition receives identification information and comprises condition receiving system (CA) sign, and affiliated bouquet name information comprises the bouquet title.Bouquet information comprises that bouquet name information, multilingual service group name information, the professional mutatis mutandis information of country /region, condition receive identification information, wherein the bouquet name information comprises title, bouquet number, multilingual service group name information comprises languages classification, title, the professional mutatis mutandis information of country /region comprises mutatis mutandis sign, country /region code, and condition receives identification information and comprises condition receiving system (CA) sign.
The making flow process of digital television business generally requires record and broadcast to separate, and just makes and broadcasts separate.Business information producer just utilizes tools establishment business information, and professional broadcast personnel only are responsible for the broadcast of business information.
For EPG, should follow this flow process, but can expand on this basis, exactly " record and broadcast " flow process is extended to " system-volume-examine-broadcast " process." system " is exactly " making ", and " volume " is exactly " layout ", and " examining " is exactly " audit ", and " broadcasting " is exactly " broadcast ".
The producer moves EPG information issuing program on terminating machine, the every information by program interface input EPG deposits in after the affirmation in the EPG information database, uses for layout, auditing system and Play System.Because and Database Systems are two-way interactives, remodify so in manufacturing process, also can call EPG information, or the EPG information of making is deposited in lane database from lane database.
Then, the broadcast time of programme information in the database electronic program guides is revised in layout, and the information after these layouts also is stored in the database as index, also can extract the arrangement information of having stored from database and makes amendment or delete.Except finishing layout tissue, can also customize the attached linkage information between other business in EPG information and the network to EPG information.These all information can be referred to as arrangement information, all will be saved in the database.
Now, along with the development of Digital Television, every value-added service is gradually adopted by operator successively.Various Added Business need and EPG has certain linking relationship, because STB is the information that obtains miscellaneous service in the network by EPG information.At present, the linking relationship between PG and other value added service of digital television mainly contains:
1, CA system.Existing C A system generally has a program menu scrambling planning system, the condition that is commonly referred to receives parameter dispatching patcher (CAPS) or event information dispatching patcher (EIS), this system is connected with other scrambling system of CA by some program scrambling lists of definition.For operator, wish to safeguard a playing programs list, simultaneously only need the playing programs list subscript of EPG annotate scrambling just can, this just needs, and interface of existence comes the exchanging program list between EPG system and the CA system.The way that adopts is to use the file interface of an XML form, and like this, the CA system can obtain all program menus, and it is just passable only need therefrom to select the program that needs scrambling.
In addition, can indifferent business in the EPG code stream, system such as the scrambling sign of program and ID number of CA system.Make STB like this when receiving EPG information, whether just can know current program, also just not be used in when switching program, show to judge the scrambled state of this program again by search PAT, PMT, CAT by scrambling with by which kind of CA system scramble information.
2, quasi-video request program (NVOD) system.The realization of NVOD system on STB also is to obtain NVOD program menu information in the current network by receiving the SI form.This just requires to exist an interface between the Play System of the broadcast control system of front end NVOD system and EPG.Way of the present invention is that the NVOD broadcast control system is before each the broadcast, with the playing programs list of NVOD, in the mode of XML file, send the EPG system to, the EPG system receives and resolves this list, generates the SI table that has the NVOD form information then, and it is encapsulated among the TS.
3, Radio Data System.In the SI table that the EPG system broadcasts, generally the description to programme information also only is confined on the Short Description of character property.The appearance of Radio Data System sends the digital platform that more information comprises programme information for operator provides one.Radio Data System can be broadcast the data that various forms comprise picture, text, audio/video program montage etc., and this has greatly satisfied the demand of STB user to information undoubtedly.Simultaneously, because the link information of broadcast data need be present in the SI table, STB has only and at first receives the SI table and just can find corresponding broadcast data, so the EPG system can write the link information of broadcast data in the SI table when generating the SI table.The encapsulation of the data block of broadcast data can be adopted the various data broadcast standard of stipulating in the DVB standard, so that the reception of each STB of producer.
4, mosaic (MOSAIC) system.The interface class of MOSAIC system and EPG is similar to the interface relationship of NVOD system and EPG.
For the digital TV video frequency broadcast system, auditing system is very necessary.The invention provides a kind of like this audit means, sacrificial vessel has the user of audit authority that EPG information and EPG arrangement information are checked audit.
Because EPG still is the system based on client/server (C/S) framework mainly, so in the present invention, has a database to deposit EPG programme information and EPG arrangement information.Database Systems can adopt SQL Server 2000, Oracle, DB2 etc., also can select for use according to the actual conditions of operator.Database can also be used to deposit other operation system information.
Referring to Fig. 2 electronic program guides of the present invention (EPG) realization flow block diagram, EPG editing system input EPG programme information, and deposit in the EPG circle order form information storehouse of database, the EPG auditing system is checked audit to the programme information in the database, the EPG arranging system is to EPG information such as program and put into practice information etc. and carry out layout, deposits in the arrangement information storehouse of EPG of database.
EPG arrangement information in the automatic Query Database of EPG Play System, according to the reproduction time in the arrangement information, automatically take out corresponding EPG programme information, defer to standards such as DVB and MPEG, the EPG programme information is packaged into the data segment of DVB, the DVB data segment is exactly information on services (SI) table of deferring to the DVB standard, and these tables are that the form by segmentation (SECTION) constitutes, and the syntactic structure of these tables has clear and definite definition in the DVB standard.
The information spinner of EPG will be distributed in the following SI table:
Network information table (NIT) is used for describing the information of all frequencies in the current network.
Service information list (SDT), be divided into current frequency service information table (Actual SDT) again, be used for describing all professional information of current frequency, other frequency service information table (Other SDT) is used for describing network all professional information in other each frequency except that current frequency.
Program information table (EIT), current/successor the information table (ActualCurrent/Following EIT) that is divided into existing transmission stream, be used for describing the information of the current/follow-up play program in each business of current frequency, transmit the current/successor information table (OtherCurrent/Following EIT) of stream with other, be used for describing the information of the current/follow-up play program in each business of removing in current other frequency of frequency outer network, the event time information table (Actual Schedule EIT) of existing transmission stream is used for describing each professional playing programs timetable letter of current frequency, and other event time information table (Other Schedule EIT) that transmits stream is used for describing except that each professional playing programs table information in current other frequency of frequency outer network.
BAT bouquet association table (BAT) is used for describing the grouping situation of all business of network.
Except 4 top off-balancesheets, can also increase Time of Day table (TDT) and TOT Time Offset Table (TOT), main effect is to decide box (STB) for machine a time reference is provided, and makes STB can realize that a soft clock provides the play-on-demand program function of program predetermination function and NVOD.
After the encapsulation of the data segment of finishing these SI tables, these data segments are packaged into the code stream of forming by the packet of 188 continuous bytes that meets Moving Picture Experts Group-2.All split into the small data packets (PACKET) of MPEG-2 when all data segments after, calculate each data segment actual shared bandwidth in TS stream according to the bandwidth meter that system gave again, according to equally distributed principle the PACKET of the MPEG-2 of all data segments is linked in sequence then, if the data volume of the PACKET of all data segments is littler than the bandwidth that system gave, so when connecting all PACKET, need evenly to insert empty bag, overflow warning otherwise just provide bandwidth.
Generate the transmission stream of the code stream that contains electronic program guide information at last, and loop play transmits stream.
When playing transmission stream, also to broadcast the configuration of code stream, broadcasting configuration also is a pith of EPG Play System.Broadcast configuration and mainly comprise the transmission interval, character code mode, soft multiplexing code stream etc. of broadcast fate, the SI table of the mode of broadcasting, bandwidth setting, programme.
EPG realizes having two kinds to broadcast mode, and it is that the EPG information that generates whole network in network on certain frequency transmits stream and broadcast that the single-frequency point is broadcast.It is to transmit stream for all frequencies of network all generate independent a EPG information that multifrequency point is broadcast, and with its whole broadcasts.
The shared channel width of EPG information flow on each frequency is set, and whether Play System can calculate needs automatically according to this value of setting and insert empty bag or provide bandwidth and overflow warning.
Event Information Table (EIT) list of the time schedule Schedule type of standard code EPG can be written into maximum 64 days playbill data, considers that EPG information flow in the actual conditions takies the general program amount of broadcasting 7 days that adopts to channel.
All there is respective specified in the transmission cycle of each SI table in the configuration EPG information flow on standard, is shown in Table 1:
Table 1
The SI table |
Maximum cycle (second) |
?NIT |
?10 |
?BAT |
?10 |
?actual?SDT |
?2 |
?other?SDT |
?10 |
?actual,present_following?EIT |
?2 |
?other,present_following?EIT |
?10 |
?actual,schedule?EIT |
?10 |
?other,schedule?EIT |
?30 |
?TDT/TOT |
?30 |
Support that GB GB2312 is the basic demand that character set is supported, can consider the support of the character of UTF-8 and unified character code standard coded systems such as (UNICODE) simultaneously.But from present should being used for, what generally all use among the STB is dot matrix word library, and because font file is generally all very big, and this has certain memory requirement to STB, so GB2312 is substantially enough at present.
When electronic program guides is broadcast, code stream evenly is an important indicator of weighing an EPG Play System quality, mainly comprise following aspect: at interval evenly whether, broadcasting between any two segmentation Section of the same SI sublist of regulation must not be less than 25 milliseconds blanking time to each SI sublist in the standard in transmitting stream; Whether all segmentations (Section) of same SI sublist are even at interval in transmitting stream; Whether each transport stream packet (Packet) of same SI sublist is even at interval in transmitting stream.
The present invention adopts the meaning of soft multiplexing code stream to be: 1, can pass through the front end bit stream multiplexer smoothly.Because the transmission of EPG stream mainly is will enter multiplexer simultaneously with each digital audio/video transmission stream program to carry out code stream multiplex at the digital cable front end, so the even input of transport stream packet can avoid multiplexer to produce the warning that the input bandwidth is overflowed.This also is that some adopt pulse mode to broadcast the most normal problem of running into of EPG code stream, and its reason just is this.2, can guarantee the receptivity of STB.The EPG code stream is after passing through multiplexer uniformly, and its uniformity can not reduce.And because each segmentation (Section) of SI table at interval evenly, while STB is each segmentation that receives the SI table according to the mode that segmentation receives, and can guarantee that like this all segmentations that STB can show SI in a SI table cycle period smoothly receive.Because, if the interval too small between two segmentations of the sublist of same SI, such as less than 25 millisecond, because the CPU disposal ability of STB is limited, and there is error condition in channel, and STB just might packet loss, to such an extent as to can not harvest whole segmentations in a standard transmission cycle.This also is that some front end systems adopt the burst mode to broadcast the EPG code stream, and the unfavorable major reason of terminal STB reception condition.
When carrying out the code stream broadcast, the EPG sending function is to rely on DVB card and development interface thereof to realize.Contain the transmission stream of EPG information in generation after, with regard to loop play, up to there being new transmission stream to generate.Because transmitting stream is continuous loop play, in order to guarantee to transmit the continuity of wrapping in the stream, place at the beginning and end of code stream, all the successional position of expression sections that have in the transport stream packet of identical bag indications (PID) must be continuous, otherwise multiplexer will show the discontinuous warning of code stream.After new EPG transmits the stream generation, if switch, multiplexer will show the discontinuous warning of code stream so at once.The present invention is switched after waiting until that then existing transmission stream sends to the ending of code stream again.Code stream before and after make playing like this can seamless link, can not cause the interruption of code stream and the wild effect of bandwidth.
Fasten the pass that connected mode between EPG system and front end digital device is mainly reflected between multiplexer in EPG Play System and the digital front-end system.According to the mode of broadcasting of EPG system, two kinds of different connected modes are arranged correspondingly: single-frequency point is multiplexing and multifrequency point is multiplexing.
1, single-frequency point is multiplexing.The EPG code stream is linked in the front end system on certain multiplexer, and the advantage of this mode has been to save the bandwidth resources of system, because the EPG code stream need take an one inlet when couple in multiplexer.Simultaneously, the shortcoming of this mode is, because the EPG code stream only just can be received on certain frequency in network, like this, to the EPG application system on exploitation, the especially STB of STB application, when needs receive EPG information, STB must stop current TV programme of watching, be tuned to the EPG frequency carry out corresponding reception operation.This can influence STB user's use undoubtedly.
2, multifrequency point is multiplexing.This connected mode mainly is used in the broadcast mode that the EPG system adopts multifrequency point to broadcast, and this needs multiplexer to have the function of bag indications (PID) mapping.The EPG code stream inserts on each multiplexer of front end system and preceding a kind of mode ratio, and this mode need take the hardware resource of multiplexer, but its advantage also is very tangible simultaneously.That is exactly, and STB can both receive the EPG information in the whole network under any frequency, comprise SI information, and the application and development of STB is also convenient.
Which kind of connected mode operator adopts, can be according to the operation situation of reality, determine such as the relation between various value-added services in the application and development pattern of the configuring condition of front end system resource, rear end STB, the network.
Generally speaking, the Program Map Table in the network (PMT) related with program (PAT) table all is to be produced automatically by the multiplexer in the front end system.The EPG system is responsible for providing SI table, and the CA system is responsible for sending CAT etc., still, because the increase of some value-added services, especially Radio Data System need increase some descriptors that broadcast data is described in PAT and pmt table.Multiplexer can not generate these information automatically, and the data in the data broadcasting connect information and generally all can appear in the SI table, and obviously, reasonably selecting is to allow the EPG system be responsible for generating the PMT and the pat table of each frequency in the whole network.The work that the unique needs of user are done is exactly in the EPG Play System, disposes the PID that miscellaneous service in each frequency comprises the transmission stream of audio/video program.
Consult Fig. 3, system backup schematic diagram of the present invention.For the fail safe that the assurance electronic program guides is realized, the present invention adopts backed up data storehouse, code stream and Play System.For the digital television system of broadcast level, backup is an important link.The standby system of EPG comprises database backup system, plays standby system, code stream standby system.Database backup system adopts double-machine equipment, and Database Systems are made up of the identical database of two covers, and a cover is main, and is another set of for backing up.After the data message in the master data base changed, the remote backup real-time update of master data base by Database Systems was equipped with the data on the database.Play standby system and also adopt double-machine equipment, by two Play Servers reading of data from database simultaneously, broadcast after packing, the TS stream of output inserts 2 and advances 1 switch that goes out, if after arbitrary player reading database failure, to send warning message so and error message will be write log database, simultaneously the broadcast of automatic stop stream.The code stream standby system then advances 1 switch that goes out by the TS stream access 2 of two Play Server outputs, and two players have principal and subordinate's branch, and when not having code stream to enter in the primary input, switch automatically switches to from input.
It should be noted last that: above embodiment is the unrestricted technical scheme of the present invention in order to explanation only, although the present invention is had been described in detail with reference to the foregoing description, those of ordinary skill in the art is to be understood that: still can make amendment or be equal to replacement the present invention, for any modification or partial replacement that does not break away from the spirit and scope of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.