CN105744304B - A kind of processing method and processing device of EPG data - Google Patents

A kind of processing method and processing device of EPG data Download PDF

Info

Publication number
CN105744304B
CN105744304B CN201610092218.3A CN201610092218A CN105744304B CN 105744304 B CN105744304 B CN 105744304B CN 201610092218 A CN201610092218 A CN 201610092218A CN 105744304 B CN105744304 B CN 105744304B
Authority
CN
China
Prior art keywords
stream
time
programme information
current
code stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610092218.3A
Other languages
Chinese (zh)
Other versions
CN105744304A (en
Inventor
何灿
骆婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Electronic Technology (shenzhen) Co Ltd
Original Assignee
Hisense Electronic Technology (shenzhen) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Electronic Technology (shenzhen) Co Ltd filed Critical Hisense Electronic Technology (shenzhen) Co Ltd
Priority to CN201610092218.3A priority Critical patent/CN105744304B/en
Publication of CN105744304A publication Critical patent/CN105744304A/en
Application granted granted Critical
Publication of CN105744304B publication Critical patent/CN105744304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities

Abstract

The invention discloses a kind of processing method and processing devices of EPG data, this method is to flow in corresponding TOT from each TS respectively, obtains the code stream time of corresponding TS stream, and according to the code stream time of each TS stream and the first current local zone time, the time offset value of each TS stream is calculated separately;When showing EPG data, according to the time offset value and the second current local zone time of the corresponding TS stream of each programme information, calculate separately the first current code stream time of the corresponding TS stream of each programme information, and then judge whether corresponding programme information is effective, and effective programme information will be judged as and shown, in this way, independently calculate the current code stream time of each TS stream, to judge corresponding programme information, to solve in laboratory environments, due to the code stream Time Inconsistency of each TS stream, and it leads to the problem of, meet the demand of EPG functional development and test under laboratory environment.

Description

A kind of processing method and processing device of EPG data
Technical field
The present invention relates to MultiMedia Field more particularly to a kind of processing method and processing devices of EPG data.
Background technique
In digital television system, multinomial important service and time correlation, such as electronic program guides (Electrnic Program Guide, EPG), subtitle etc., the related letter such as time come into force/failed comprising the business in the data of these business Breath.Therefore, digital-television terminal equipment needs to get current time first, every vocational work could be allowed normal later.Often One transmitting stream (Transport Stream, TS), referred to as TS stream, in all include TOT Time Offset Table (Time Offset Table, TOT) information, digital-television terminal equipment obtains current time with the TOT information in parsing TS stream by receiving, and According to the current time of acquisition, system time is set, so that whole system be allowed to work together.
Under user's site environment, all TS stream is issued by unified head end, and the TOT time in these TS stream believes Breath is consistent, and digital-television terminal equipment only needs to obtain a TOT information at any frequency point (i.e. any one TS stream), i.e., It can stop the acquisition of TOT information, subsequent all uniform services are according to the TOT time-triggered protocol.Currently, essentially all of number Word television terminal equipment is all made of this way.As shown in fig.1, the process of the acquisition of EPG data, maintenance and display, comprising:
1) TOT table is obtained from any one TS stream, and according to the TOT table of above-mentioned acquisition, system time is directly set, When obtaining EPG data, judge whether each programme information is effective according to current system time, at the beginning of programme information Between when being later than current system time, determine effectively, and effective programme information is stored in epg database.
2) when safeguarding epg database, whether directly judge in epg database at the beginning of each programme information earlier than working as Preceding system time, if so, determining invalid and deleting invalid programme information.
3) when showing EPG data, the programme information that need to be shown is obtained from epg database, and judge opening for programme information Whether time beginning is later than current system time, if so, determining effectively and showing effective programme information.
And in laboratory environments, the TS stream of test is usually to record in different time sections from scene, in TS stream There is very big difference in the time that TOT time and business occur.And the variation of TOT time directly influences every business, especially The related service of EPG, will lead to:
1) when frequency handover, due to the current time variation of TS stream, the EPG data being stored in epg database is caused to lose Effect.
2) current time of TS stream is inconsistent, and leading to the EPG data of new frequency point is considered as invalid data, to can not deposit Enter in epg database.
3) when EPG data is shown, mass data can not be shown due to being unsatisfactory for time requirement.
It can be seen that under the prior art, in laboratory environment, the current time of each TS stream and the related service of EPG Time is all different, and EPG functional development is caused to be difficult to carry out with test.
Summary of the invention
The embodiment of the present invention provides a kind of processing method and processing device of EPG data, to solve in the prior art, in laboratory EPG functional development and test are difficult to the problem of carrying out under environment.
Specific technical solution provided in an embodiment of the present invention is as follows:
A kind of processing method of EPG data, comprising:
It when determining that receiving TS flows, is flowed in corresponding TOT from each TS respectively, when obtaining the code stream of corresponding TS stream Between, and according to the code stream time of each TS of acquisition stream and the first current local zone time, calculate separately each TS stream Time offset value;
When showing EPG data, obtaining from epg database needs each programme information to be shown, and according to above-mentioned The time offset value and the second current local zone time of the corresponding TS stream of each programme information, calculate separately each program letter Cease the first current code stream time of corresponding TS stream;
According to the first current code stream time of the corresponding TS stream of each programme information of acquisition, judgement is corresponding respectively Whether programme information is effective, and will be judged as effective programme information and show.
In the embodiment of the present invention, when determining that receiving TS flows, is flowed in corresponding TOT from each TS respectively, obtain phase The code stream time for the TS stream answered, and according to the code stream time of each TS of acquisition stream and the first current local zone time, respectively Calculate the time offset value of each TS stream;When showing EPG data, from epg database obtain need it is to be shown each Programme information, and according to the time offset value and the second current local zone time of each above-mentioned programme information corresponding TS stream, Calculate separately the first current code stream time of the corresponding TS stream of each programme information;According to each programme information of acquisition The first current code stream time of corresponding TS stream, judge whether corresponding programme information is effective respectively, and will be judged as The programme information of effect is shown.The code stream time is obtained in corresponding TOT in this way, no longer only flowing from a TS, but for every One TS stream all obtains the corresponding code stream time, when showing EPG data, when independently calculating the current code stream of each TS stream Between, whether corresponding programme information is judged according to the current code stream time of the corresponding TS stream of each programme information of calculating Effectively, it solves in laboratory environments, due to the code stream Time Inconsistency of each TS stream, leads to the problem of, in this way, can expire The demand of EPG functional development and test under sufficient laboratory environment, while the EPG that can be compatible under normal user circumstances again is obtained, dimension Shield and display process.
Preferably, before showing EPG data, further being wrapped after calculating separately the time offset value that each TS flows It includes:
EPG data is obtained from each above-mentioned TS stream respectively, according to the time offset value of each above-mentioned TS stream and is worked as Preceding third local zone time calculates separately the second current code stream time of each TS stream;
According to the second current code stream time of each TS of acquisition stream, judge respectively every in corresponding EPG data Whether one programme information is effective, and will be determined effective programme information and be stored in epg database;Wherein, a TS stream In EPG data in include at least preset time period in multiple programme informations.
Preferably, further comprising:
According to the preset period, each programme information is obtained from above-mentioned epg database respectively, and according to each section The time offset value and the 4th current local zone time of the corresponding TS stream of mesh information, it is corresponding to calculate separately each programme information The current third code stream time of TS stream;
According to the current third code stream time of the corresponding TS stream of each programme information of acquisition, judgement is corresponding respectively Whether programme information is effective, and will be determined effective programme information and continue to be stored in above-mentioned epg database, and will be judged to Fixed invalid programme information is deleted from above-mentioned epg database.
Preferably, being calculated separately every according to the code stream time of each TS of acquisition stream and the first current local zone time The time offset value of one TS stream, specifically includes:
The code stream time of each TS stream of acquisition and the difference of the first current local zone time are calculated separately, and will be calculated The time offset value that is flowed as corresponding TS of each difference.
Preferably, calculating working as said one TS stream according to time offset value and current local zone time that a TS flows It the preceding code stream time, specifically includes:
Calculate the time offset value and the sum of current local zone time of TS stream, and by a TS of above-mentioned calculating stream The current code stream time that the sum of time offset value and current local zone time are flowed as said one TS.
Preferably, according to the current code stream time that a TS flows, when judging whether corresponding programme information is effective, specifically Include:
If the current code stream time of said one TS stream is before the beginning of corresponding programme information, it is determined that on It is effective to state programme information.
A kind of processing unit of EPG data, comprising:
First computing unit is obtained for being flowed in corresponding TOT from each TS respectively when determining that receiving TS flows The code stream time of TS stream accordingly, and according to the code stream time of each TS of acquisition stream and the first current local zone time, divide The time offset value of each TS stream is not calculated;
Second computing unit needs each section to be shown for being obtained from epg database when showing EPG data Mesh information, and according to the time offset value and the second current local zone time of the corresponding TS stream of each above-mentioned programme information, divide The first current code stream time of the corresponding TS stream of each programme information is not calculated;
Processing unit, for the first current code stream time of the corresponding TS stream of each programme information according to acquisition, Judge whether corresponding programme information is effective respectively, and effective programme information will be judged as and shown.
In the embodiment of the present invention, when determining that receiving TS flows, is flowed in corresponding TOT from each TS respectively, obtain phase The code stream time for the TS stream answered, and according to the code stream time of each TS of acquisition stream and the first current local zone time, respectively Calculate the time offset value of each TS stream;When showing EPG data, from epg database obtain need it is to be shown each Programme information, and according to the time offset value and the second current local zone time of each above-mentioned programme information corresponding TS stream, Calculate separately the first current code stream time of the corresponding TS stream of each programme information;According to each programme information of acquisition The first current code stream time of corresponding TS stream, judge whether corresponding programme information is effective respectively, and will be judged as The programme information of effect is shown.The code stream time is obtained in corresponding TOT in this way, no longer only flowing from a TS, but for every One TS stream all obtains the corresponding code stream time, when showing EPG data, when independently calculating the current code stream of each TS stream Between, whether corresponding programme information is judged according to the current code stream time of the corresponding TS stream of each programme information of calculating Effectively, it solves in laboratory environments, due to the code stream Time Inconsistency of each TS stream, leads to the problem of, in this way, can expire The demand of EPG functional development and test under sufficient laboratory environment, while the EPG that can be compatible under normal user circumstances again is obtained, dimension Shield and display process.
Preferably, before showing EPG data, second is calculated after calculating separately the time offset value that each TS flows Unit is further used for obtaining EPG data from each above-mentioned TS stream respectively, the time migration flowed according to each above-mentioned TS Value and current third local zone time calculate separately the second current code stream time of each TS stream;
Processing unit is further used for the second current code stream time flowed according to each TS of acquisition, judges respectively Whether each of corresponding EPG data programme information is effective, and will be determined effective programme information and be stored in EPG data In library;Wherein, multiple programme informations in preset time period are included at least in the EPG data in a TS stream.
Preferably, the second computing unit, is further used for obtaining from above-mentioned epg database respectively according to the preset period Take each programme information, and it is local according to the time offset value of the corresponding TS stream of each programme information and the current the 4th when Between, calculate separately the current third code stream time of the corresponding TS stream of each programme information;
Processing unit is further used for the current third code stream of the corresponding TS stream of each programme information according to acquisition Time judges whether corresponding programme information is effective respectively, and will be determined effective programme information and continue to be stored in above-mentioned EPG In database, and invalid programme information will be determined and deleted from above-mentioned epg database.
Preferably, being calculated separately every according to the code stream time of each TS of acquisition stream and the first current local zone time When the time offset value of one TS stream, the first computing unit is specifically used for:
The code stream time of each TS stream of acquisition and the difference of the first current local zone time are calculated separately, and will be calculated The time offset value that is flowed as corresponding TS of each difference.
Preferably, calculating working as said one TS stream according to time offset value and current local zone time that a TS flows When the preceding code stream time, the second computing unit is specifically used for:
Calculate the time offset value and the sum of current local zone time of TS stream, and by a TS of above-mentioned calculating stream The current code stream time that the sum of time offset value and current local zone time are flowed as said one TS.
Preferably, according to the current code stream time that a TS flows, when judging whether corresponding programme information is effective, processing Unit is specifically used for:
If the current code stream time of said one TS stream is before the beginning of corresponding programme information, it is determined that on It is effective to state programme information.
Detailed description of the invention
Fig. 1 is the flow diagram of acquisition, maintenance and the display of EPG data in the prior art;
Fig. 2 is in the embodiment of the present invention, and the processing method of EPG data summarizes flow chart;
Fig. 3 is the processing method detailed process schematic diagram of EPG data in the embodiment of the present invention;
Fig. 4 is the processing device structure diagram of EPG data in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, is not whole embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to solve the problem of that in the prior art EPG functional development in laboratory environments is difficult to carry out with test, this hair In bright embodiment, a TOT is no longer only obtained, but is flowed for each TS, is flowed from each TS obtain TOT respectively, and from The code stream time of corresponding TS stream is obtained in TOT, and calculates separately the time offset value of each TS stream;Carrying out EPG number When according to display, the time offset value and current local zone time first flowed according to each TS calculates and obtains working as each TS stream The preceding code stream time judges in corresponding EPG data further according to the current code stream time for calculating each TS stream obtained Whether each programme information is effective, when determination is effective, is shown.
The present invention program is described in detail below by specific embodiment, certainly, the present invention is not limited to following realities Apply example.
As shown in fig.2, the processing method detailed process of EPG data is as follows in the embodiment of the present invention:
Step 100: when determining that receiving TS flows, being flowed in corresponding TOT from each TS respectively, obtain corresponding TS stream The code stream time calculate separately each and according to the code stream time of each TS of acquisition stream and the first current local zone time The time offset value of a TS stream.
When executing step 100, specifically include:
Firstly, flowing in corresponding TOT from each TS respectively, the code stream time of corresponding TS stream is obtained.
Since in laboratory environments, the code stream time obtained from the TOT in each TS stream is largely different, because This, in the embodiment of the present invention, no longer only obtains a TOT, but flows for each TS, will obtain TOT from TS stream, from And obtain the code stream time of each TS stream.
Then, it according to the code stream time of each TS of acquisition stream and the first current local zone time, calculates separately each The time offset value of a TS stream.
Specifically, the code stream time of each TS stream of acquisition and the difference of the first current local zone time are calculated separately, And the time offset value for flowing each difference of calculating as corresponding TS.
In practice, the list that can create and safeguard a time offset value, the time for recording each TS stream are inclined Shifting value.
Step 110: when showing EPG data, obtaining from epg database needs each programme information to be shown, and According to the time offset value and the second current local zone time of the corresponding TS stream of each above-mentioned programme information, calculate separately each The first current code stream time of the corresponding TS stream of a programme information.
In practice, each TS stream corresponds to a frequency (or being frequency point), in the EPG data in each TS stream at least Including multiple programme informations in preset time period, but programme information that can not be all passes through a TS stream and is sent to number In word television terminal, in this way, frequency point may be switched when needing to show EPG data.
When executing step 110, specifically include:
Firstly, obtaining from epg database needs each programme information to be shown.
Then, the first current code stream time of the corresponding TS stream of each above-mentioned programme information is calculated separately, it is specific to wrap It includes: calculating separately the sum of time offset value and second local zone time currently of the corresponding TS stream of each above-mentioned programme information, And the first current code stream time respectively by the sum of calculating, as the corresponding TS stream of each above-mentioned programme information.
For example, it is desired to displays program information 1 and programme information 2, programme information 1 is corresponding to flow 1 for TS, and programme information 2 is right Answering is TS stream 2, then obtains the time offset value 1 of TS stream 1 and the time offset value 2 of TS stream 2 first, then calculate and obtain, TS The second current the first code stream time=time offset value 1+ of stream 1 current local zone time, the first current code stream of TS stream 2 The second time=time offset value 2+ current local zone time.Certainly, if programme information 1 and programme information 2 are corresponding to be same A TS stream then only needs to calculate the first code stream time of primary TS stream.
Step 120: according to the first current code stream time of the corresponding TS stream of each programme information of acquisition, sentencing respectively Whether the corresponding programme information that breaks is effective, and will be judged as effective programme information and show.
When executing step 120, specifically include:
According to opening for current the first code stream time and each programme information of the corresponding TS stream of each programme information Begin the time, judges whether each programme information is effective;Wherein, when judging that a programme information is effective, comprising: saved when one It is later than the first current code stream time of the corresponding TS stream of said one programme information at the beginning of mesh information, then determines above-mentioned One programme information is effective.
In this way, judging each program according to the first current code stream time of the corresponding TS stream of each programme information Whether information effective, and then shows effective programme information, rather than according to the first current code stream time of a TS stream come Judge all programme informations, when solving each TS and flowing current first code stream Time Inconsistency, cause a large amount of programme information by In be unsatisfactory for time requirement and can not show the problem of.
Further, when obtaining EPG data from each TS stream, i.e., inclined in the time for calculating separately each TS stream After shifting value, before showing EPG data, comprising:
Firstly, obtaining EPG data from each TS stream respectively, according to the time offset value of each above-mentioned TS stream and work as Preceding third local zone time calculates separately the second current code stream time of each TS stream.
Wherein, the method and the method for above-mentioned calculating current the first code stream time for calculating the second current code stream time be It is identical, that is, to calculate separately the time offset value and the sum of current third local zone time of each TS stream, and will calculate respectively Each TS stream time offset value and the sum of current third local zone time, current the as each above-mentioned TS stream Two code stream times.
Then, according to the second current code stream time of each TS of acquisition stream, judged in corresponding EPG data respectively Each programme information it is whether effective, and effective programme information will be determined and be stored in epg database.
In this way, be not direct compared with current third local zone time when obtaining EPG data from each TS stream, And equally calculate the second current code stream time of each TS stream, and then judge whether programme information is effective, it avoids Due to the code stream Time Inconsistency of each code stream, leading to the EPG data of new frequency point is considered as invalid data, so that number can not be stored in The problem of according to library.
Further, when safeguarding epg database, comprising:
Firstly, each programme information is obtained from epg database respectively, and according to each according to the preset period The time offset value and the 4th current local zone time of the corresponding TS stream of programme information, it is corresponding to calculate separately each programme information TS stream the current third code stream time.
Wherein, the method and the method for above-mentioned calculating current the first code stream time for calculating the current third code stream time be It is identical, that is, calculate separately each programme information corresponding TS stream time offset value and the 4th current local zone time it With, and respectively by the time offset value of each programme information of calculating corresponding TS stream and the 4th current local zone time it With the current third code stream time flowed as the corresponding TS of each above-mentioned programme information.
Then, according to the current third code stream time of the corresponding TS stream of each programme information of acquisition, judge respectively Whether corresponding programme information is effective, and will be determined effective programme information and continue to be stored in epg database, and will be by Determine that invalid programme information is deleted from epg database.
In this way, judge whether programme information effective when safeguarding epg database, be equally according to it is calculated each The current third code stream time of programme information corresponding TS stream, avoid in frequency handover, due to each code stream code stream when Between it is different, cause the programme information being stored in epg database fail the problem of.
Further description is made to above-described embodiment using a specific application scenarios below.Referring particularly to Fig. 3 Shown, in the embodiment of the present invention, the process of the processing method of EPG data is as follows:
1) it is flowed for each TS, obtains the code stream time of corresponding TS stream from the TOT in each TS respectively, according to The code stream time of each TS stream obtained and current local zone time, calculate separately the time offset value of each TS stream.
When obtaining EPG data, firstly, according to time offset value and current local zone time that each TS flows, respectively Calculate the current code stream time of corresponding TS stream.
Then, when judging whether to be later than the current code stream of corresponding TS stream at the beginning of each programme information respectively Between, if so, determining that the programme information is effective, and it is stored in epg database.
2) when safeguarding epg database, firstly, obtaining each of epg database programme information, and according to each section The time offset value of the corresponding TS stream of mesh information, when calculating separately the current code stream of the corresponding TS stream of each programme information Between.
Then, judge the current code stream time whether flowed earlier than corresponding TS at the beginning of each programme information, If so, determining that the programme information is invalid, and delete invalid programme information.
3) when showing EPG data, firstly, obtaining each programme information that need to be shown from epg database, and according to every The time offset value of the corresponding TS stream of one programme information, calculates separately the current code of the corresponding TS stream of each programme information Flow the time.
Then, judge the current code stream time for whether being later than corresponding TS stream at the beginning of each programme information, If so, determining that the programme information is effective, and effective programme information is shown.
Based on the above embodiment, as shown in fig.4, in the embodiment of the present invention, the processing unit of EPG data is specifically included:
First computing unit 20, for flowing in corresponding TOT, obtaining from each TS respectively when determining that receiving TS flows Take the code stream time of corresponding TS stream, and according to the code stream time of each TS of acquisition stream and the first current local zone time, Calculate separately the time offset value of each TS stream;
Second computing unit 21, for when show EPG data, obtained from epg database need it is to be shown each Programme information, and according to the time offset value and the second current local zone time of each above-mentioned programme information corresponding TS stream, Calculate separately the first current code stream time of the corresponding TS stream of each programme information;
Processing unit 22, when the first current code stream for the corresponding TS stream of each programme information according to acquisition Between, judge whether corresponding programme information is effective respectively, and effective programme information will be judged as and shown.
Preferably, before showing EPG data, second is calculated after calculating separately the time offset value that each TS flows Unit 21 is further used for obtaining EPG data from each above-mentioned TS stream respectively, and the time flowed according to each above-mentioned TS is inclined Shifting value and current third local zone time calculate separately the second current code stream time of each TS stream;
Processing unit 22 is further used for the second current code stream time flowed according to each TS of acquisition, sentences respectively Whether each of the corresponding EPG data programme information that breaks is effective, and will be determined effective programme information and be stored in EPG number According in library;Wherein, multiple programme informations in preset time period are included at least in the EPG data in a TS stream.
Preferably, the second computing unit 21, is further used for according to the preset period, respectively from above-mentioned epg database Each programme information is obtained, and local according to the time offset value and the current the 4th of the corresponding TS stream of each programme information Time calculates separately the current third code stream time of the corresponding TS stream of each programme information;
Processing unit 22 is further used for the current third yard of the corresponding TS stream of each programme information according to acquisition Flow the time, judge whether corresponding programme information effective respectively, and will be determined effective programme information continue to be stored in it is above-mentioned In epg database, and invalid programme information will be determined and deleted from above-mentioned epg database.
Preferably, being calculated separately every according to the code stream time of each TS of acquisition stream and the first current local zone time When the time offset value of one TS stream, the first computing unit 20 is specifically used for:
The code stream time of each TS stream of acquisition and the difference of the first current local zone time are calculated separately, and will be calculated The time offset value that is flowed as corresponding TS of each difference.
Preferably, calculating working as said one TS stream according to time offset value and current local zone time that a TS flows When the preceding code stream time, the second computing unit 21 is specifically used for:
Calculate the time offset value and the sum of current local zone time of TS stream, and by a TS of above-mentioned calculating stream The current code stream time that the sum of time offset value and current local zone time are flowed as said one TS.
Preferably, according to the current code stream time that a TS flows, when judging whether corresponding programme information is effective, processing Unit 22 is specifically used for:
If the current code stream time of said one TS stream is before the beginning of corresponding programme information, it is determined that on It is effective to state programme information.
In conclusion, when determining that receiving TS flows, flowing corresponding TOT from each TS respectively in the embodiment of the present invention In, the code stream time of corresponding TS stream is obtained, and local according to the code stream time and current first of each TS of acquisition stream Time calculates separately the time offset value of each TS stream;When showing EPG data, is obtained from epg database and need to show Each programme information, and according to the time offset value of each above-mentioned programme information corresponding TS stream and current second The ground time calculates separately the first current code stream time of the corresponding TS stream of each programme information;According to each of acquisition The first current code stream time of programme information corresponding TS stream, judge whether corresponding programme information is effective respectively, and will be by It is determined as that effective programme information is shown.The code stream time is obtained in corresponding TOT in this way, no longer only flowing from a TS, and It is to obtain the corresponding code stream time for each TS stream, when showing EPG data, independently calculates the current of each TS stream The code stream time, corresponding program is judged according to the current code stream time of each programme information of calculating corresponding TS stream Whether information is effective, solves in laboratory environments, due to the code stream Time Inconsistency of each TS stream, leads to the problem of, this Sample had not only been able to satisfy the demand of EPG functional development and test under laboratory environment, but also can be compatible under normal user circumstances EPG is obtained, is safeguarded and display process.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of processing method of electronic program guide (EPG) data characterized by comprising
It when determining that receiving transmitting stream TS flows, flows in corresponding TOT Time Offset Table TOT, obtains corresponding from each TS respectively The code stream time of TS stream, and according to the code stream time of each TS of acquisition stream and the first current local zone time, it calculates separately The time offset value of each TS stream;
When showing EPG data, obtaining from epg database needs each programme information to be shown, and according to described each The time offset value and the second current local zone time of the corresponding TS stream of a programme information, calculate separately each programme information pair The the first current code stream time for the TS stream answered;Wherein, the time offset value and current local zone time flowed according to a TS, meter It the current code stream time for calculating one TS stream, specifically includes: calculating the time offset value and current local that a TS flows The sum of time, and it regard the sum of the time offset value of a TS of calculating stream and current local zone time as one TS The current code stream time of stream;
According to the first current code stream time of the corresponding TS stream of each programme information of acquisition, corresponding program is judged respectively Whether information is effective, and will be judged as effective programme information and show.
2. the method as described in claim 1, which is characterized in that after the time offset value for calculating separately each TS stream, Before showing EPG data, further comprise:
EPG data is obtained from each described TS stream respectively, according to the time offset value of each described TS stream and currently Third local zone time calculates separately the second current code stream time of each TS stream;
According to the second current code stream time of each TS of acquisition stream, each of corresponding EPG data is judged respectively Whether programme information is effective, and will be determined effective programme information and be stored in epg database;Wherein, in a TS stream Multiple programme informations in preset time period are included at least in EPG data.
3. method according to claim 2, which is characterized in that further comprise:
According to the preset period, each programme information is obtained from the epg database respectively, and believe according to each program The time offset value and the 4th current local zone time for ceasing corresponding TS stream calculate separately the corresponding TS stream of each programme information The current third code stream time;
According to the current third code stream time of the corresponding TS stream of each programme information of acquisition, corresponding program is judged respectively Whether information is effective, and will be determined effective programme information and continue to be stored in the epg database, and will be determined nothing The programme information of effect is deleted from the epg database.
4. method as claimed in claim 1,2 or 3, which is characterized in that according to each TS of acquisition stream the code stream time and The first current local zone time calculates separately the time offset value of each TS stream, specifically includes:
Calculate separately the code stream time of each TS stream of acquisition and the difference of the first current local zone time, and by the every of calculating The time offset value that one difference is flowed as corresponding TS.
5. method as claimed in claim 1,2 or 3, which is characterized in that according to the current code stream time that a TS flows, judgement When whether corresponding programme information is effective, specifically include:
If the current code stream time of one TS stream is before the beginning of corresponding programme information, it is determined that the section Mesh information is effective.
6. a kind of processing unit of electronic program guide (EPG) data characterized by comprising
First computing unit, for flowing corresponding time migration from each TS respectively when determining that receiving transmitting stream TS flows In table TOT, the code stream time of corresponding TS stream is obtained, and according to the code stream time of each TS of acquisition stream and current first Local zone time calculates separately the time offset value of each TS stream;
Second computing unit needs each program letter to be shown for being obtained from epg database when showing EPG data Breath, and according to the time offset value and the second current local zone time of the corresponding TS stream of each described programme information, it counts respectively Calculate the first current code stream time of the corresponding TS stream of each programme information;Wherein, the time offset value flowed according to a TS With current local zone time, when calculating the current code stream time of one TS stream, the second computing unit is specifically used for: calculating The sum of time offset value and current local zone time of one TS stream, and by the time offset value of a TS of calculating stream and The current code stream time that the sum of current local zone time is flowed as one TS;
Processing unit, for the first current code stream time of the corresponding TS stream of each programme information according to acquisition, respectively Judge whether corresponding programme information is effective, and effective programme information will be judged as and shown.
7. device as claimed in claim 6, which is characterized in that after the time offset value for calculating separately each TS stream, Before showing EPG data, the second computing unit is further used for obtaining EPG data from each described TS stream respectively, according to The time offset value and current third local zone time of each TS stream, calculate separately current second of each TS stream The code stream time;
Processing unit is further used for the second current code stream time flowed according to each TS of acquisition, and judgement is corresponding respectively Each of EPG data programme information it is whether effective, and effective programme information will be determined and be stored in epg database In;Wherein, multiple programme informations in preset time period are included at least in the EPG data in a TS stream.
8. device as claimed in claim 7, which is characterized in that the second computing unit was further used for according to the preset period, Each programme information is obtained from the epg database respectively, and according to the time of the corresponding TS stream of each programme information Deviant and the 4th current local zone time, when calculating separately the current third code stream of the corresponding TS stream of each programme information Between;
Processing unit, when being further used for the current third code stream according to the corresponding TS stream of each programme information of acquisition Between, judge whether corresponding programme information is effective respectively, and effective programme information will be determined and continue to be stored in the EPG number According in library, and invalid programme information will be determined and deleted from the epg database.
9. the device as described in claim 6,7 or 8, which is characterized in that according to each TS of acquisition stream the code stream time and The first current local zone time, when calculating separately the time offset value of each TS stream, the first computing unit is specifically used for:
Calculate separately the code stream time of each TS stream of acquisition and the difference of the first current local zone time, and by the every of calculating The time offset value that one difference is flowed as corresponding TS.
10. the device as described in claim 6,7 or 8, which is characterized in that according to the current code stream time that a TS flows, sentence When whether the corresponding programme information that breaks is effective, processing unit is specifically used for:
If the current code stream time of one TS stream is before the beginning of corresponding programme information, it is determined that the section Mesh information is effective.
CN201610092218.3A 2016-02-18 2016-02-18 A kind of processing method and processing device of EPG data Active CN105744304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610092218.3A CN105744304B (en) 2016-02-18 2016-02-18 A kind of processing method and processing device of EPG data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610092218.3A CN105744304B (en) 2016-02-18 2016-02-18 A kind of processing method and processing device of EPG data

Publications (2)

Publication Number Publication Date
CN105744304A CN105744304A (en) 2016-07-06
CN105744304B true CN105744304B (en) 2019-06-14

Family

ID=56245434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610092218.3A Active CN105744304B (en) 2016-02-18 2016-02-18 A kind of processing method and processing device of EPG data

Country Status (1)

Country Link
CN (1) CN105744304B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168035B (en) * 2018-09-17 2020-11-17 北京数码视讯科技股份有限公司 EPG information control device
CN111988648A (en) * 2020-08-27 2020-11-24 青岛海信传媒网络技术有限公司 Time display method and display device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016744A1 (en) * 2001-07-04 2003-01-23 Canon Kabushiki Kaisha Data processing device, data processing method, computer readable recording medium, and data processing program to prevent illegal reproduction of information data
CN101207761A (en) * 2007-12-18 2008-06-25 深圳市同洲电子股份有限公司 Method and system for program scheduled recording and digital television receiver
CN102281409B (en) * 2010-06-11 2013-08-14 深圳Tcl新技术有限公司 Television capable of automatically calibrating time and time calibration method thereof

Also Published As

Publication number Publication date
CN105744304A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
US9721374B2 (en) Chart animation
CN104361085B (en) Information recommendation method, device, browser, server and system
CN108924582A (en) Video recording method, computer readable storage medium and recording and broadcasting system
CN103974146A (en) Video processing method, client and system
CN110012358B (en) Examination information processing method and device
CN107277594A (en) A kind of video and audio and barrage synchronous method and device
CN109275012A (en) A kind of live streaming barrage display methods and device
CN106791953A (en) Many player control methods, server and client
CN109800387A (en) A method of generating test report
CN110264280A (en) A kind of outdoor advertising monitoring method
CN105744304B (en) A kind of processing method and processing device of EPG data
CN110190963A (en) A kind of monitoring method, device and equipment for the request of time service certificates constructing
CN106550250A (en) Barrage exchange method, device and electronic equipment
CN107992763A (en) The power-off protection method and device of a kind of file system
CN109597566A (en) A kind of reading data, storage method and device
CN109101668A (en) Shield-tunneling construction multi-source security risk data integrating method is realized based on BIM
CN109656825A (en) The method and device of fine arts resource processing, electronic equipment, storage medium
CN109818851A (en) A kind of information persistence method, device and electronic equipment
CN106533715B (en) A kind of data analysing method and system
CN114169985A (en) Asset value-reducing stage determination method and device
CN114139731A (en) Longitudinal federated learning modeling optimization method, apparatus, medium, and program product
CN103530370A (en) Method and system for visualization deduction based on electronic map
CN108882005B (en) Barrage verification method, computer equipment and storage medium
CN113230661A (en) Data synchronization method and device, computer readable medium and electronic equipment
CN108763039B (en) Service fault simulation method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant