CN105744304A - EPG (Electronic Program Guide) data processing method and device - Google Patents

EPG (Electronic Program Guide) data processing method and device Download PDF

Info

Publication number
CN105744304A
CN105744304A CN201610092218.3A CN201610092218A CN105744304A CN 105744304 A CN105744304 A CN 105744304A CN 201610092218 A CN201610092218 A CN 201610092218A CN 105744304 A CN105744304 A CN 105744304A
Authority
CN
China
Prior art keywords
stream
time
programme information
current
offset value
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.)
Granted
Application number
CN201610092218.3A
Other languages
Chinese (zh)
Other versions
CN105744304B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

The invention discloses an EPG data processing method and device. The method comprises following steps of obtaining the stream time of corresponding TS (Transport Stream) from a TOT (Time Offset Table) corresponding to each TS; according to the stream time of each TS and a current first local time, calculating the time offset value of each TS; when EPG data is displayed, according to the time offset value of the TS corresponding to each piece of program information and a current second local time, calculating the current first stream time of the TS corresponding to each piece of program information, further judging whether the corresponding program information is effective or not, and displaying the judged effective program information. In this way, the current stream time of each TS is independently calculated, the corresponding program information is judged, therefore, the problem resulting from inconsistence of the stream time of each TS in a laboratory environment is solved, and the EPG function development and test demands in the laboratory environment are satisfied.

Description

The processing method of a kind of EPG data and device
Technical field
The present invention relates to MultiMedia Field, particularly relate to processing method and the device of a kind of EPG data.
Background technology
In digital television system, multinomial important service all and time correlation, such as electronic program guides (ElectrnicProgramGuide, EPG), captions etc., all comprises the relevant informations such as the time that this business comes into force/lost efficacy in the data of these business.Therefore, digital-television terminal equipment needs first to get current time, and every vocational work could be allowed afterwards normal.Each transmits stream (TransportStream, TS), flow referred to as TS, in all include TOT Time Offset Table (TimeOffsetTable, TOT) information, digital-television terminal equipment obtains current time by the TOT information received with resolve in TS stream, and according to the current time obtained, system time is set, thus allowing whole system work together.
Under user's site environment, all of TS stream issues each through unified head end, TOT temporal information in these TS stream is consistent, digital-television terminal equipment has only to obtain a TOT information at any frequency (i.e. any one TS stream), can stopping the acquisition of TOT information, follow-up all uniform service are according to this TOT time-triggered protocol.At present, essentially all of digital-television terminal equipment all adopts this way.Consult shown in Fig. 1, the flow process of the acquisition of EPG data, maintenance and display, including:
1) TOT table is obtained from any one TS flowing, and the TOT table according to above-mentioned acquisition, system time is directly set, when obtaining EPG data, judge that whether each programme information is effective according to current system time, when the time started of programme information is later than current system time, it is determined that effectively, and effective programme information is stored in epg database.
2), when safeguarding epg database, directly judge that in epg database, the time started of each programme information, whether early than current system time, is if so, determined invalid and deletes invalid programme information.
3) during display EPG data, from epg database, obtain the programme information that need to show, and judge whether the time started of programme information is later than current system time, if so, determine effectively and effective programme information is displayed.
And in laboratory environments, the TS stream of test is usually to be recorded from scene in different time sections, all there is a very big-difference time of the TOT time in TS stream and business generation.And the change of TOT time directly influences every business, the especially related service of EPG, can cause:
1) during frequency switching, due to the current time change of TS stream, cause that the EPG data being stored in epg database lost efficacy.
2) current time of TS stream is inconsistent, causes that the EPG data of new frequency is considered as invalid data, thus cannot be stored in epg database.
3), during EPG data display, mass data cannot show owing to being unsatisfactory for time requirement.
As can be seen here, under prior art, in laboratory environment, the current time of each TS stream and the related service time of EPG all differ, and cause that EPG functional development and test are difficult to.
Summary of the invention
The embodiment of the present invention provides processing method and the device of a kind of EPG data, to solve in prior art, and the problem that EPG functional development is difficult to test in laboratory environments.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
A kind of processing method of EPG data, including:
When determining that receiving TS flows, respectively from the TOT of each TS stream correspondence, obtain the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively;
When showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information above-mentioned the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively;
The first current code stream time according to TS stream corresponding to each programme information obtained, judge that corresponding programme information is whether effective respectively, and effective programme information will be judged as display.
In the embodiment of the present invention, when determining that receiving TS flows, respectively from the TOT of each TS stream correspondence, obtain the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively;When showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information above-mentioned the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively;The first current code stream time according to TS stream corresponding to each programme information obtained, judge that corresponding programme information is whether effective respectively, and effective programme information will be judged as display.So, no longer only from the TOT of a TS stream correspondence, obtain the code stream time, but obtain the corresponding code stream time for each TS stream, when showing EPG data, the independent current code stream time calculating each TS stream, judge that whether corresponding programme information is effective according to the current code stream time that the TS that each programme information calculated is corresponding flows, solve in laboratory environments, due to each TS code stream Time Inconsistency flowed, the problem produced, so, the demand of EPG functional development and test under laboratory environment can be met, can obtain by the EPG under compatible normal user circumstances again simultaneously, safeguard and display process.
It is also preferred that the left after calculating the time offset value of each TS stream respectively, before display EPG data, farther include:
Obtain EPG data flowing from each TS above-mentioned respectively, according to the time offset value of each TS above-mentioned stream and the 3rd current local zone time, calculate the second current code stream time of each TS stream respectively;
The second current code stream time according to each TS stream obtained, judge that each programme information in corresponding EPG data is whether effective respectively, and effective programme information will be determined be saved in epg database;Wherein, the EPG data in a TS stream at least includes the multiple programme informations in preset time period.
It is also preferred that the left farther include:
According to the default cycle, each programme information is obtained respectively from above-mentioned epg database, and according to the TS that each programme information the is corresponding time offset value flowed and the 4th current local zone time, calculate the current third yard stream time of TS stream corresponding to each programme information respectively;
According to the TS that each programme information obtained the is corresponding current third yard stream time flowed, judge that whether corresponding programme information is effective respectively, and effective programme information will be determined continue to be saved in above-mentioned epg database, and delete being determined invalid programme information from above-mentioned epg database.
It is also preferred that the left according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively, specifically include:
Calculate code stream time and the difference of the first current local zone time of each TS stream of acquisition respectively, and using each difference of calculating as the corresponding TS time offset value flowed.
It is also preferred that the left according to the TS time offset value flowed and current local zone time, calculate the current code stream time of said one TS stream, specifically include:
Calculate the time offset value of TS stream and current local zone time sum, and using the time offset value of a TS stream of above-mentioned calculating and current local zone time sum as the said one TS current code stream time flowed.
It is also preferred that the left the current code stream time according to a TS stream, it is judged that when whether corresponding programme information is effective, specifically include:
If the current code stream time of said one TS stream is before the time started of corresponding programme information, it is determined that above-mentioned programme information is effective.
A kind of process device of EPG data, including:
First computing unit, for when determining that receiving TS flows, respectively from the TOT of each TS stream correspondence, obtaining the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively;
Second computing unit, for when showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information above-mentioned the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively;
Processing unit, for the first current code stream time of the TS stream corresponding according to each programme information obtained, judges that corresponding programme information is whether effective respectively, and will be judged as effective programme information and display.
In the embodiment of the present invention, when determining that receiving TS flows, respectively from the TOT of each TS stream correspondence, obtain the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively;When showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information above-mentioned the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively;The first current code stream time according to TS stream corresponding to each programme information obtained, judge that corresponding programme information is whether effective respectively, and effective programme information will be judged as display.So, no longer only from the TOT of a TS stream correspondence, obtain the code stream time, but obtain the corresponding code stream time for each TS stream, when showing EPG data, the independent current code stream time calculating each TS stream, judge that whether corresponding programme information is effective according to the current code stream time that the TS that each programme information calculated is corresponding flows, solve in laboratory environments, due to each TS code stream Time Inconsistency flowed, the problem produced, so, the demand of EPG functional development and test under laboratory environment can be met, can obtain by the EPG under compatible normal user circumstances again simultaneously, safeguard and display process.
Preferably, after calculating the time offset value of each TS stream respectively, before display EPG data, second computing unit, it is further used for from each TS above-mentioned stream, obtaining EPG data respectively, according to each TS above-mentioned time offset value flowed and the 3rd current local zone time, calculate the second current code stream time of each TS stream respectively;
Processing unit, is further used for the second current code stream time according to each TS stream obtained, and judges that each programme information in corresponding EPG data is whether effective respectively, and will be determined effective programme information and be saved in epg database;Wherein, the EPG data in a TS stream at least includes the multiple programme informations in preset time period.
Preferably, second computing unit, it is further used for according to the default cycle, each programme information is obtained respectively from above-mentioned epg database, and according to the TS that each programme information the is corresponding time offset value flowed and the 4th current local zone time, calculate the current third yard stream time of TS stream corresponding to each programme information respectively;
Processing unit, it is further used for the current third yard stream time of the TS stream corresponding according to each programme information obtained, judge that whether corresponding programme information is effective respectively, and effective programme information will be determined continue to be saved in above-mentioned epg database, and delete being determined invalid programme information from above-mentioned epg database.
It is also preferred that the left according to obtain each TS stream the code stream time and the first current local zone time, calculate respectively each TS stream time offset value time, the first computing unit specifically for:
Calculate code stream time and the difference of the first current local zone time of each TS stream of acquisition respectively, and using each difference of calculating as the corresponding TS time offset value flowed.
It is also preferred that the left according to the time offset value of TS stream and current local zone time, when calculating the current code stream time of said one TS stream, the second computing unit specifically for:
Calculate the time offset value of TS stream and current local zone time sum, and using the time offset value of a TS stream of above-mentioned calculating and current local zone time sum as the said one TS current code stream time flowed.
It is also preferred that the left the current code stream time according to TS stream, it is judged that corresponding programme information whether effectively time, processing unit specifically for:
If the current code stream time of said one TS stream is before the time started of corresponding programme information, it is determined that above-mentioned programme information is effective.
Accompanying drawing explanation
Fig. 1 is in prior art, the schematic flow sheet of the acquisition of EPG data, maintenance and display;
Fig. 2 is in the embodiment of the present invention, the processing method general introduction flow chart of EPG data;
Fig. 3 is in the embodiment of the present invention, the processing method detailed process schematic diagram of EPG data;
Fig. 4 is in the embodiment of the present invention, the process apparatus structure schematic diagram of EPG data.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, is not whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
In order to solve in prior art, the problem that EPG functional development is difficult to test in laboratory environments, in the embodiment of the present invention, no longer only obtain a TOT, but flow for each TS, obtain TOT from each TS stream respectively, and from TOT, obtain the corresponding TS code stream time flowed, and calculate the time offset value of each TS stream respectively;When carrying out EPG data display, first according to each TS time offset value flowed and current local zone time, calculate the current code stream time obtaining each TS stream, further according to the current code stream time calculating each TS stream obtained, judge that whether each programme information in corresponding EPG data is effective, when determining effective, display.
Below by specific embodiment, the present invention program being described in detail, certainly, the present invention is not limited to following example.
Consulting shown in Fig. 2, in the embodiment of the present invention, the processing method idiographic flow of EPG data is as follows:
Step 100: when determining that receiving TS flows, respectively from the TOT of each TS stream correspondence, obtain the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively.
When performing step 100, specifically include:
First, respectively from the TOT of each TS stream correspondence, the code stream time of corresponding TS stream is obtained.
Owing in laboratory environments, the code stream time major part obtained in the TOT flowing from each TS is different, therefore, in the embodiment of the present invention, no longer only obtain a TOT, but flow for each TS, TOT will be obtained, thus obtaining the code stream time of each TS stream flowing from TS.
Then, according to the code stream time of each TS stream obtained and the first current local zone time, the time offset value of each TS stream is calculated respectively.
Specifically, calculate code stream time and the difference of the first current local zone time of each TS stream of acquisition respectively, and using each difference of calculating as the corresponding TS time offset value flowed.
In reality, it is possible to create and safeguard the list of a time offset value, for recording the time offset value of each TS stream.
Step 110: when showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information above-mentioned the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively.
In reality, the corresponding frequency (or being called frequency) of each TS stream, EPG data in each TS stream at least includes the multiple programme informations in preset time period, but can not all be sent in digital TV terminal by a TS stream by all of programme information, so, when needs show EPG data, it is possible to frequency can be switched.
When performing step 110, specifically include:
First, from epg database, obtain each programme information needing display.
Then, calculate the first current code stream time of TS stream corresponding to each programme information above-mentioned respectively, specifically include: calculate the time offset value of TS stream corresponding to each programme information above-mentioned and the second current local zone time sum respectively, and the sum that will calculate respectively, as the TS that each programme information above-mentioned is corresponding the first current code stream time flowed.
Such as, need displays program information 1 and programme information 2, programme information 1 correspondence for TS flow 1, programme information 2 correspondence for TS flow 2, then first obtain the time offset value 1 of TS stream 1 and the time offset value 2 of TS stream 2, then calculate acquisition, TS stream 1 current first code stream time=current for time offset value 1+ the second local zone time, TS stream 2 current first code stream time=current for time offset value 2+ the second local zone time.Certainly, if programme information 1 and programme information 2 correspondence is same TS stream, then have only to calculate once the first code stream time of this TS stream.
Step 120: the first current code stream time according to TS stream corresponding to each programme information obtained, judge that corresponding programme information is whether effective respectively, and effective programme information will be judged as display.
When performing step 120, specifically include:
Time started according to the TS that each programme information is corresponding the first current code stream time flowed and each programme information, it is judged that whether each programme information is effective;Wherein, when judging that a programme information is effective, including: it is later than the first current code stream time of TS stream corresponding to said one programme information when the time started of a programme information, then judges that said one programme information is effective.
So, according to the TS that each programme information is corresponding the first current code stream time flowed, judge that whether each programme information is effective, and then show effective programme information, rather than the first current code stream time according to a TS stream judges all of programme information, when solving each TS current first code stream Time Inconsistency of stream, cause the problem that substantial amounts of programme information cannot show owing to being unsatisfactory for time requirement.
Further, when obtaining EPG data from each TS in flowing, namely after calculating the time offset value of each TS stream respectively, before display EPG data, including:
First, obtain EPG data flowing from each TS respectively, according to the time offset value of each TS above-mentioned stream and the 3rd current local zone time, calculate the second current code stream time of each TS stream respectively.
Wherein, the method calculating the method for the second current code stream time and above-mentioned calculating current the first code stream time is identical, namely, calculate the time offset value of each TS stream and the 3rd current local zone time sum respectively, and respectively by each TS calculated time offset value flowed and the 3rd current local zone time sum, as the second current code stream time of each TS above-mentioned stream.
Then, the second current code stream time according to each TS stream obtained, judge that each programme information in corresponding EPG data is whether effective respectively, and effective programme information will be determined be saved in epg database.
So, when obtaining EPG data in flowing from each TS, it not compared with direct with current the 3rd local zone time, and calculate the second current code stream time of each TS stream equally, and then judge that whether programme information is effective, avoid the code stream Time Inconsistency due to each code stream, cause that the EPG data of new frequency is considered as invalid data, thus the problem that data base cannot be stored in.
Further, when safeguarding epg database, including:
First, according to the default cycle, from epg database, obtain each programme information respectively, and according to the TS that each programme information the is corresponding time offset value flowed and the 4th current local zone time, calculate the current third yard stream time of TS stream corresponding to each programme information respectively.
Wherein, the method calculating the method for current third yard stream time and above-mentioned calculating current the first code stream time is identical, namely, calculate the time offset value of TS stream corresponding to each programme information and the 4th current local zone time sum respectively, and respectively by the time offset value of TS stream corresponding for each programme information calculated and the 4th current local zone time sum, as the TS that each programme information above-mentioned the is corresponding current third yard stream time flowed.
Then, according to the TS that each programme information obtained the is corresponding current third yard stream time flowed, judge that whether corresponding programme information is effective respectively, and effective programme information will be determined continue to be saved in epg database, and delete being determined invalid programme information from epg database.
So, when safeguarding epg database, judge that whether programme information is effective, it is the current third yard stream time of the TS stream corresponding according to each programme information calculated equally, avoid when frequency switches, owing to the code stream time of each code stream is different, cause the problem that the programme information being stored in epg database lost efficacy.
Adopt a concrete application scenarios that above-described embodiment is made further description below.Shown in Fig. 3, in the embodiment of the present invention, the flow process of the processing method of EPG data is as follows:
1) flow for each TS, the TOT from each TS obtains the code stream time of corresponding TS stream respectively, according to the code stream time of each TS stream obtained and current local zone time, calculate the time offset value of each TS stream respectively.
When obtaining EPG data, first, according to each TS time offset value flowed and current local zone time, the current code stream time of the TS stream of correspondence is calculated respectively.
Then, judge whether the time started of each programme information is later than the current code stream time of the TS stream of correspondence respectively, if so, judge that this programme information is effective, and be saved in epg database.
2) when safeguarding epg database, first, obtain each programme information in epg database, and according to the time offset value that the TS that each programme information is corresponding flows, calculate the current code stream time of TS stream corresponding to each programme information respectively.
Then, it is judged that whether the time started of each programme information, early than the corresponding TS current code stream time flowed, if so, judges that this programme information is invalid, and delete invalid programme information.
3) during display EPG data, first, from epg database, obtain each programme information that need to show, and according to the time offset value that the TS that each programme information is corresponding flows, calculate the current code stream time of TS stream corresponding to each programme information respectively.
Then, it is judged that whether the time started of each programme information is later than the current code stream time of the TS stream of correspondence, if so, judges that this programme information is effective, and is displayed by effective programme information.
Based on above-described embodiment, consult shown in Fig. 4, in the embodiment of the present invention, the process device of EPG data, specifically include:
First computing unit 20, for when determining that receiving TS flows, respectively from the TOT of each TS stream correspondence, obtaining the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively;
Second computing unit 21, for when showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information above-mentioned the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively;
Processing unit 22, for the first current code stream time of the TS stream corresponding according to each programme information obtained, judges that corresponding programme information is whether effective respectively, and will be judged as effective programme information and display.
Preferably, after calculating the time offset value of each TS stream respectively, before display EPG data, second computing unit 21, it is further used for from each TS above-mentioned stream, obtaining EPG data respectively, according to each TS above-mentioned time offset value flowed and the 3rd current local zone time, calculate the second current code stream time of each TS stream respectively;
Processing unit 22, is further used for the second current code stream time according to each TS stream obtained, and judges that each programme information in corresponding EPG data is whether effective respectively, and will be determined effective programme information and be saved in epg database;Wherein, the EPG data in a TS stream at least includes the multiple programme informations in preset time period.
Preferably, second computing unit 21, it is further used for according to the default cycle, each programme information is obtained respectively from above-mentioned epg database, and according to the TS that each programme information the is corresponding time offset value flowed and the 4th current local zone time, calculate the current third yard stream time of TS stream corresponding to each programme information respectively;
Processing unit 22, it is further used for the current third yard stream time of the TS stream corresponding according to each programme information obtained, judge that whether corresponding programme information is effective respectively, and effective programme information will be determined continue to be saved in above-mentioned epg database, and delete being determined invalid programme information from above-mentioned epg database.
It is also preferred that the left according to obtain each TS stream the code stream time and the first current local zone time, calculate respectively each TS stream time offset value time, the first computing unit 20 specifically for:
Calculate code stream time and the difference of the first current local zone time of each TS stream of acquisition respectively, and using each difference of calculating as the corresponding TS time offset value flowed.
It is also preferred that the left according to the time offset value of TS stream and current local zone time, when calculating the current code stream time of said one TS stream, the second computing unit 21 specifically for:
Calculate the time offset value of TS stream and current local zone time sum, and using the time offset value of a TS stream of above-mentioned calculating and current local zone time sum as the said one TS current code stream time flowed.
It is also preferred that the left the current code stream time according to TS stream, it is judged that corresponding programme information whether effectively time, processing unit 22 specifically for:
If the current code stream time of said one TS stream is before the time started of corresponding programme information, it is determined that above-mentioned programme information is effective.
In sum, in the embodiment of the present invention, when determining that receiving TS flows, respectively from the TOT of each TS stream correspondence, obtain the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively;When showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information above-mentioned the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively;The first current code stream time according to TS stream corresponding to each programme information obtained, judge that corresponding programme information is whether effective respectively, and effective programme information will be judged as display.So, no longer only from the TOT of a TS stream correspondence, obtain the code stream time, but obtain the corresponding code stream time for each TS stream, when showing EPG data, the independent current code stream time calculating each TS stream, judge that whether corresponding programme information is effective according to the current code stream time that the TS that each programme information calculated is corresponding flows, solve in laboratory environments, due to each TS code stream Time Inconsistency flowed, the problem produced, so, the demand of EPG functional development and test under laboratory environment can be met, can obtain by the EPG under compatible normal user circumstances again simultaneously, safeguard and display process.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect.And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, the embodiment of the present invention can be carried out various change and the modification spirit and scope without deviating from the embodiment of the present invention by those skilled in the art.So, if these amendments of the embodiment of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. the processing method of an electronic program guide (EPG) data, it is characterised in that including:
When determining that receiving transmission stream TS flows, respectively from the TOT Time Offset Table TOT of each TS stream correspondence, obtain the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively;
When showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information described the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively;
The first current code stream time according to TS stream corresponding to each programme information obtained, judge that corresponding programme information is whether effective respectively, and effective programme information will be judged as display.
2. the method for claim 1, it is characterised in that after calculating the time offset value of each TS stream respectively, before display EPG data, farther includes:
Obtain EPG data flowing from each TS described respectively, according to the time offset value of each TS described stream and the 3rd current local zone time, calculate the second current code stream time of each TS stream respectively;
The second current code stream time according to each TS stream obtained, judge that each programme information in corresponding EPG data is whether effective respectively, and effective programme information will be determined be saved in epg database;Wherein, the EPG data in a TS stream at least includes the multiple programme informations in preset time period.
3. method as claimed in claim 2, it is characterised in that farther include:
According to the default cycle, each programme information is obtained respectively from described epg database, and according to the TS that each programme information the is corresponding time offset value flowed and the 4th current local zone time, calculate the current third yard stream time of TS stream corresponding to each programme information respectively;
According to the TS that each programme information obtained the is corresponding current third yard stream time flowed, judge that whether corresponding programme information is effective respectively, and effective programme information will be determined continue to be saved in described epg database, and delete being determined invalid programme information from described epg database.
4. the method as described in claim 1,2 or 3, it is characterised in that according to the code stream time of each TS stream obtained and the first current local zone time, calculate the time offset value of each TS stream respectively, specifically include:
Calculate code stream time and the difference of the first current local zone time of each TS stream of acquisition respectively, and using each difference of calculating as the corresponding TS time offset value flowed.
5. such as the method for claim 1,2 or 3, it is characterised in that according to the time offset value of a TS stream and current local zone time, calculate the current code stream time of one TS stream, specifically include:
Calculate the time offset value of TS stream and current local zone time sum, and using the time offset value of a TS stream of described calculating and current local zone time sum as the one TS current code stream time flowed.
6. the method as described in claim 1,2 or 3, it is characterised in that the current code stream time according to a TS stream, it is judged that when whether corresponding programme information is effective, specifically include:
If the current code stream time of one TS stream is before the time started of corresponding programme information, it is determined that described programme information is effective.
7. the process device of an electronic program guide (EPG) data, it is characterised in that including:
First computing unit, for when determining that receiving transmission stream TS flows, respectively from the TOT Time Offset Table TOT of each TS stream correspondence, obtain the code stream time of corresponding TS stream, and according to each TS obtained code stream time flowed and the first current local zone time, calculate the time offset value of each TS stream respectively;
Second computing unit, for when showing EPG data, each programme information needing display is obtained from epg database, and according to the TS that each programme information described the is corresponding time offset value flowed and the second current local zone time, calculate the first current code stream time of TS stream corresponding to each programme information respectively;
Processing unit, for the first current code stream time of the TS stream corresponding according to each programme information obtained, judges that corresponding programme information is whether effective respectively, and will be judged as effective programme information and display.
8. device as claimed in claim 7, it is characterized in that, after calculating the time offset value of each TS stream respectively, before display EPG data, second computing unit, it is further used for from each TS described stream, obtaining EPG data respectively, according to the time offset value of each TS described stream and the 3rd current local zone time, calculates the second current code stream time of each TS stream respectively;
Processing unit, is further used for the second current code stream time according to each TS stream obtained, and judges that each programme information in corresponding EPG data is whether effective respectively, and will be determined effective programme information and be saved in epg database;Wherein, the EPG data in a TS stream at least includes the multiple programme informations in preset time period.
9. device as claimed in claim 8, it is characterized in that, second computing unit, it is further used for according to the default cycle, each programme information is obtained respectively from described epg database, and according to the TS that each programme information the is corresponding time offset value flowed and the 4th current local zone time, calculate the current third yard stream time of TS stream corresponding to each programme information respectively;
Processing unit, it is further used for the current third yard stream time of the TS stream corresponding according to each programme information obtained, judge that whether corresponding programme information is effective respectively, and effective programme information will be determined continue to be saved in described epg database, and delete being determined invalid programme information from described epg database.
10. the device as described in claim 7,8 or 9, it is characterised in that according to obtain each TS stream the code stream time and the first current local zone time, calculate respectively each TS stream time offset value time, the first computing unit specifically for:
Calculate code stream time and the difference of the first current local zone time of each TS stream of acquisition respectively, and using each difference of calculating as the corresponding TS time offset value flowed.
11. the device such as claim 7,8 or 9, it is characterised in that according to the time offset value of TS stream and current local zone time, when calculating the current code stream time of one TS stream, the second computing unit specifically for:
Calculate the time offset value of TS stream and current local zone time sum, and using the time offset value of a TS stream of described calculating and current local zone time sum as the one TS current code stream time flowed.
12. the device as described in claim 7,8 or 9, it is characterised in that the current code stream time according to TS stream, it is judged that corresponding programme information whether effectively time, processing unit specifically for:
If the current code stream time of one TS stream is before the time started of corresponding programme information, it is determined that described programme 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 true CN105744304A (en) 2016-07-06
CN105744304B 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)

Cited By (2)

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

Citations (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
CN102281409A (en) * 2010-06-11 2011-12-14 深圳Tcl新技术有限公司 Television capable of automatically calibrating time and time calibration method thereof

Patent Citations (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
CN102281409A (en) * 2010-06-11 2011-12-14 深圳Tcl新技术有限公司 Television capable of automatically calibrating time and time calibration method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168035A (en) * 2018-09-17 2019-01-08 北京数码视讯科技股份有限公司 A kind of EPG information control device
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

Also Published As

Publication number Publication date
CN105744304B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN105763919A (en) Method and device for display and video synchronization
CN105979332A (en) Video data detection method and device
CN104994425A (en) Video labeling method and device
CN105307028A (en) Video editing method and device specific to video materials of plurality of lenses
CN104539977A (en) Live broadcast previewing method and device
CN104918136A (en) Video positioning method and device
CN103200196B (en) A kind of access method, system and device between subscriber equipment and access target
CN105357475A (en) Video playing method and device
CN106028092A (en) Television screenshot sharing method and device
CN104079955A (en) Method, device and system of OTT (Over The Top) live broadcast
CN104185066A (en) Method and device for automatically verifying electronic program menu
CN105681827A (en) Poster generation method and system of live channels and relevant devices
CN104717542A (en) Method, device and system for obtaining synchronization information of intelligent television
CN105898523A (en) Video playing method and video playing device
CN104284057A (en) Video processing method and device
CN105005607A (en) Page information loading method and page information loading device
CN105744304A (en) EPG (Electronic Program Guide) data processing method and device
CN104133452B (en) A kind of system and method for being applied to monitoring converter tapping and completing
CN105530534B (en) A kind of method and apparatus of video clipping
CN104822087B (en) A kind of processing method and processing device of video-frequency band
CN106909481B (en) Interface test method, interface test device and electronic equipment
CN105263032A (en) Program acquiring method and device
CN104301772A (en) Method and device for superposing pictures in video
CN103530370A (en) Method and system for visualization deduction based on electronic map
CN112449209B (en) Video storage method and device, cloud server and computer readable storage medium

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