CN109842815A - A kind of the subtitle state display method and device of program - Google Patents
A kind of the subtitle state display method and device of program Download PDFInfo
- Publication number
- CN109842815A CN109842815A CN201910101309.2A CN201910101309A CN109842815A CN 109842815 A CN109842815 A CN 109842815A CN 201910101309 A CN201910101309 A CN 201910101309A CN 109842815 A CN109842815 A CN 109842815A
- Authority
- CN
- China
- Prior art keywords
- program
- subtitle
- state
- caption data
- mark
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000010304 firing Methods 0.000 claims 1
- 238000013507 mapping Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 241001465754 Metazoa Species 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the present invention discloses a kind of subtitle state display method of program, is related to TV technology, this method comprises: obtaining the corresponding Program Map Table of current playing program from code stream;Judge in the Program Map Table with the presence or absence of the mark of the caption data of the program;There are when the mark of the caption data, judge whether to get the corresponding caption data of the mark from the code stream in the Program Map Table;If so, display is used to indicate the subtitle state that the program has subtitle on a display screen.First the mark of the caption data for whether carrying program practical in code stream is judged in this way, the caption data for whether carrying program practical in code stream is judged again, from regardless of whether the code stream that operator is sent to smart television follows digital television standard, it can obtain the subtitle state of program accurately to prompt user, avoid accidentally being prompted to user and cause to perplex.
Description
Technical field
The embodiment of the present invention is related to the subtitle state display method and dress of TV technology more particularly to a kind of program
It sets.
Background technique
Currently, since operator is very different, causing the code stream for being sent to smart television frequent in DTV industry
Not the case where appearance does not follow digital television standard.Such as do not have to send the caption data of program in some code streams, but in program pair
But the information of caption data is identified in the Program Map Table answered.
In this case smart television when prompting the user with program with the presence or absence of subtitle is easy error message to be prompted to
User, such as the prompting message that user obtains is that there are subtitles for the program, but practical subtitle can not be presented, to be caused to user
Puzzlement.
Summary of the invention
The embodiment of the present invention provides the subtitle state display method and device of a kind of program, can correctly get program
Subtitle state to prompt user, avoid causing to perplex to user.
In a first aspect, providing a kind of subtitle state display method of program, which comprises
The corresponding Program Map Table of current playing program is obtained from code stream;
Judge in the Program Map Table with the presence or absence of the mark of the caption data of the program;
It is described there are when the mark of the caption data, judging whether to get from the code stream in the Program Map Table
Identify corresponding caption data;
If so, display is used to indicate the subtitle state that the program has subtitle on a display screen.
Second aspect, provides a kind of subtitle state display device of program, and described device includes:
Module is obtained, for obtaining the corresponding Program Map Table of current playing program from code stream;
Judgment module, for judging in the Program Map Table with the presence or absence of the mark of the caption data of the program;
Judgment module, be also used to determine in the Program Map Table there are when the mark of the caption data, judge whether from
The corresponding caption data of the mark is got in the code stream;
Display module is shown on a display screen when getting the corresponding caption data of the mark from the code stream for determining
Show the subtitle state that the program has subtitle that is used to indicate.
In above-mentioned example, when user starts a program and plays, it is resolved to from received code stream first currently playing
The corresponding Program Map Table of program;Then judge in the Program Map Table with the presence or absence of the mark of the caption data of actual program;
Then there are the mark of the caption data of actual program in the Program Map Table, be further continued for judging from received code stream whether
The corresponding caption data of the mark can be filled into;If can finally be filled into, then it represents that carry actual program in code stream
Caption data, and then prompt the user with actual program and have subtitle.
In this way, the present embodiment is first to the mark of the caption data for whether carrying program practical in code stream compared with the relevant technologies
Knowledge is judged, then is judged the caption data for whether carrying program practical in code stream, from regardless of operator is sent to
Whether the code stream of smart television follows digital television standard, can obtain the subtitle state of program accurately to prompt user, keep away
Exempt from accidentally to be prompted to user and causes to perplex.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art
Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention
Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of playback method flow chart of program for carrying subtitle provided by the present application.
Fig. 2 is a kind of schematic diagram of smart television.
Fig. 3 is a kind of subtitle status diagram of program.
Fig. 4 is a kind of subtitle state display method flow chart of current playing program provided by the present application.
Fig. 5 is a kind of subtitle state display device schematic diagram of current playing program provided by the present application.
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, instead of all the 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.
Fig. 1 is a kind of playback method flow chart of program for carrying subtitle provided by the present application.As shown in Figure 1, this method
Include:
Step 101: user selects one program of viewing, and smart television receives the play instruction of the program by user interface.
Step 102: by tuner to frequency point frequency locking where the program subordinate channel.
Step 103: demodulating to obtain the bit stream data of current frequency point by demodulator.
Step 104: demultiplexer rebuilds program information table according to the bit stream data.
Step 105: the corresponding Program Map Table of program subordinate channel is got from program information table.
Step 106: got from the Program Map Table mark of the audio data of the program, the mark of video data,
The mark of caption data.
Step 107: according to above-mentioned mark, getting audio data, the video counts of the program from the bit stream data respectively
According to, caption data.
Step 108: decoder is decoded these data.
Step 109: loudspeaker plays the decoded audio data of the program, and display screen shows the decoded video of the program
Data and caption data.
Specifically, Fig. 2 is a kind of schematic diagram of smart television.As shown in Fig. 2, the tuner of smart television receives broadcast letter
Number (also referred to as code stream) and broadcast singal is tuned, then demodulator demodulates the code stream after tuning, then demultiplexes
With device by the audio data for including in the code stream after demodulation, video data and data portion different from audio/video part
It is separated, decoder is decoded audio data, video data later, so that display screen shows decoded video counts
According to the audio data after, loudspeaker broadcast decoder.
Wherein, the data portion that audio/video part is different from above-mentioned code stream is rebuild to constitute program information table.Section
Mesh information table includes Program Association Table (Program Association Table, PAT), Program Map Table (Program Map
Table, PMT), network information table (Network Information Table, NIT), CAT Conditional Access Table (Conditional
Access Table, CAT), Event Information Table (Event Information Table, EIT) constant pitch purpose information.
Illustratively, when one program of starting plays out, smart television is needed through tuner to the program user
Frequency point where subordinate channel carries out frequency locking, and then demodulator solution is transferred to the code stream of current frequency point, and demultiplexer is from current frequency later
After the audio, video data of the program being filtered out in the code stream of point carry out subsequent decoding, broadcasting again.It should be noted that if
The caption data of the program is carried in code stream, then demultiplexer simultaneously after the caption data of the program is filtered out in code stream
Subsequent decoding, display are carried out again.
More specifically, demultiplexer, firstly, according to the mark of pat table ((Packet Identifier, PID), from current
Pat table is found in the code stream of frequency point, pat table mainly includes channel number pmt table corresponding with each channel number
PID.Then, the PID of the corresponding pmt table of program subordinate channel is found from pat table.Then, according to the PID of pmt table, from
Pmt table is found in the code stream of current frequency point;Pmt table mainly include all video datas for including in current channel PID,
The PID (PID of such as caption data) for other data that PID, the current channel of all audio datas are associated together.Then, from
The programme information that the program is got in pmt table, such as the PID of the audio data of the program, the PID of video data, caption data
PID etc..Then, according to the PID of the audio data of the program, the PID of video data, caption data PID, respectively from current
The audio data, video data, caption data of the program are got in the code stream of frequency point.
Later, decoder is decoded these data got, then decoded audio data is sent to intelligent electricity
It played out depending on loudspeaker, video data and caption data are sent to smart television display show.
Here, during user selects a program to play out, the subtitle of the program can be shown on display screen
The prompting message of state: having subtitle or without subtitle, so that user can be according to the prompting message, setting opens or closes the program
Subtitle.
Illustratively, Fig. 3 is a kind of subtitle status diagram of program.As shown in figure 3, on tv display screen currently
The programme content of broadcasting channel 1.Wherein, the top of display screen also shows infobar(taskbar), channel 1 is shown in infobar
The channel informations (such as CCTV1) such as channel designation, channel number numerical value, programm name (such as Animal World), subtitle state are (as shown
CC prompt) etc. programme informations.In figure, display CC prompt indicates that the subtitle state of current playing program is to have subtitle;CC is not shown
Prompt, indicates the subtitle state of current playing program for no subtitle.
However, causing the code stream for being sent to smart television appearance not follow DTV mark since operator is very different
Quasi- situation, i.e., reality does not carry the caption data of program to be played in code stream, but includes the subtitle that play program in pmt table
The PID of data, such as program is being carried out there are after the prompting message of subtitle to user, user goes setting to beat according to the prompting message
Open the subtitle of program, but can not display program subtitle, cause to perplex to user.
So Fig. 4 is a kind of word of current playing program provided by the present application on the basis of above-mentioned Fig. 1 and Fig. 2 exemplary
Curtain state display method flow chart.As shown in figure 4, this method comprises:
Step 401: creation first thread, for monitoring the update of the corresponding pmt table of program subordinate channel in program information table.
Step 402: judging in the pmt table with the presence or absence of the PID of the caption data of the program;If so, executing step 403;
It is no to then follow the steps 406.
Step 403: the second thread of creation, the subtitle for judging the program whether can be filled into from the bit stream data
The corresponding caption data of the PID of data;If so, executing step 404;It is no to then follow the steps 406.
Step 404: judging whether the caption data filtered out is effective;If so, executing step 405;It is no to then follow the steps
406。
Step 405: display screen shows the first prompting message, which, which is used to indicate the program, subtitle.
Step 406: display screen shows the second prompting message, which is used to indicate the program without subtitle.
Specifically, parsing the pmt table after being filled into the corresponding pmt table of actual program subordinate channel in code stream.Then sentence
Break in the pmt table whether the PID of the caption data comprising actual program.
When the PID of the caption data in determining the pmt table not comprising actual program, indicate that actual program does not carry subtitle
(PID, caption data including caption data), then actual program is not carried in the subtitle state and smart television of subtitle
The subtitle state of caching is compared, to judge whether subtitle state needs to update.If so, more by the subtitle state cached
Newly not carry subtitle, while display is used to indicate prompting message of the actual program without subtitle on a display screen, such as
Do not show that CC is prompted in inforbar;Otherwise, prompt of the actual program without subtitle directly is used to indicate in display on a display screen
Message.
When the PID of the caption data in determining the pmt table comprising actual program, indicate that actual program carries caption data
PID, at this time for determine code stream in whether really carrying caption data, also need to continue to judge whether to filter in preset time
To the corresponding caption data of PID of caption data.
It is not filled into when the preset time is exceeded, then it represents that actual program does not carry caption data, and prosthomere is worked as in further explanation
Mesh does not carry subtitle really, then actual program not carried to equally the word that has cached in the subtitle state and smart television of subtitle
Tentiform state is compared, to judge whether subtitle state needs to update.If so, the subtitle state cached is updated to not take
Band subtitle, while display is used to indicate prompting message of the actual program without subtitle on a display screen, such as does not show in inforbar
Show that CC is prompted;Otherwise, prompting message of the actual program without subtitle directly is used to indicate in display on a display screen.
If being filled into, whether effective continue the caption data for judging to obtain.When subtitle is effective, indicate that actual program is taken
Band caption data further illustrates that actual program really carries subtitle, then actual program equally to be carried to the subtitle shape of subtitle
The subtitle state cached in state and smart television is compared, to judge whether subtitle state needs to update.If so, by
The subtitle state of caching is updated to carry subtitle, while showing that being used to indicate actual program has the prompt of subtitle to disappear on a display screen
Breath, such as show that CC is prompted in inforbar;Otherwise, being directly used to indicate actual program in display on a display screen has subtitle
Prompting message.
Later, it continues through the update of first thread monitoring pmt table, filter PID pairs of caption data by the second thread
The caption data answered, until stopping playing actual program.
It should be noted that be preset with buffer area in smart television, the subtitle state for caching a channel (including is taken
Do not carry with subtitle and subtitle), smart television prompts the user with whether current playing program carries according to the subtitle state of caching
Subtitle.Due to playing multiple programs sequentially in time in the channel, such as the first program, second program, third program ..., often
The corresponding subtitle state of a program is not necessarily identical, so need constantly monitoring and update the subtitle state of caching, it could be accurate
Show the subtitle state of current playing program.
In the above-described embodiments, the mark of the caption data for whether carrying program practical in code stream is judged first,
Then the caption data for whether carrying program practical in code stream is judged, from regardless of operator is sent to smart television
Whether code stream follows digital television standard, can obtain the subtitle state of program accurately to prompt user, and then user can be with
Subtitle is opened or closed according to the selection of the subtitle state of prompt.
Based on same technical concept, Fig. 5 is a kind of subtitle state display device of current playing program provided by the present application
Schematic diagram.As shown in figure 5, the device includes:
Module 501 is obtained, for obtaining the corresponding pmt table of current playing program from code stream;
Judgment module 502, for judging in the pmt table with the presence or absence of the PID of the caption data of the program;
Judgment module 502 is also used to determine in the pmt table to judge whether to obtain from code stream there are when the PID of caption data
To the corresponding caption data of the PID;
Display module 503 shows use when getting from code stream the corresponding caption data of the PID for determining on a display screen
In the subtitle state for indicating that the program has subtitle.
Optionally, display module 503 are also used to determine when caption data corresponding to the PID having not been obtained from code stream,
Display screen display is used to indicate subtitle state of the program without subtitle.
Optionally, display module 503 are being shown when being also used to determine the PID that caption data is not present in the pmt table
Screen display is used to indicate subtitle state of the program without subtitle.
Optionally, the device further include:
Update module, for comparing the subtitle state got and currently having delayed before display module 503 shows subtitle state
Whether the subtitle state deposited is identical;If it is not, the subtitle state cached is then updated to the subtitle state got.
Specific implementation about device side can refer to above method side, and which is not described herein again.
It should be understood that in various embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to execute suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. the subtitle state display method of program in a kind of smart television, which is characterized in that the described method includes:
The corresponding Program Map Table of current playing program is obtained from code stream;
Judge in the Program Map Table with the presence or absence of the mark of the caption data of the program;
It is described there are when the mark of the caption data, judging whether to get from the code stream in the Program Map Table
Identify corresponding caption data;
If so, display is used to indicate the subtitle state that the program has subtitle on a display screen.
2. the method as described in claim 1, which is characterized in that the method also includes:
If it is not, then display is used to indicate subtitle state of the program without subtitle on a display screen.
3. the method as described in claim 1, which is characterized in that if it is described later, further includes:
Judge whether the caption data got is effective;
When the caption data is effective, display is used to indicate the subtitle state that the program has subtitle on a display screen.
4. method a method according to any one of claims 1-3, which is characterized in that the method also includes:
When the mark of the caption data being not present in the Program Map Table, display is used to indicate the section on a display screen
Subtitle state of the mesh without subtitle.
5. method as claimed in claim 4, which is characterized in that it is described show subtitle state on a display screen before, further includes:
Compare the subtitle state and whether the subtitle state cached current in smart television is identical;
If it is not, the subtitle state cached is then updated to the subtitle state.
6. method as claimed in claim 4, which is characterized in that described to obtain the corresponding program of current playing program from code stream
Mapping table specifically includes:
Program Association Table is identified from code stream;
The mark of the corresponding Program Map Table of channel where obtaining current playing program from the Program Association Table;
According to the mark, the corresponding Program Map Table of the mark is obtained from the code stream.
7. the subtitle state display device of program in a kind of smart television, which is characterized in that described device includes:
Module is obtained, for obtaining the corresponding Program Map Table of current playing program from code stream;
Judgment module, for judging in the Program Map Table with the presence or absence of the mark of the caption data of the program;
Judgment module, be also used to determine in the Program Map Table there are when the mark of the caption data, judge whether from
The corresponding caption data of the mark is got in the code stream;
Display module is shown on a display screen when getting the corresponding caption data of the mark from the code stream for determining
Show the subtitle state that the program has subtitle that is used to indicate.
8. device as claimed in claim 7, which is characterized in that the display module is also used to determine from the code stream not
When getting the corresponding caption data of the mark, display is used to indicate subtitle shape of the program without subtitle on a display screen
State.
9. device as claimed in claim 7 or 8, which is characterized in that the display module is also used to determination and reflects in the program
When the mark of the caption data being not present in firing table, display is used to indicate subtitle shape of the program without subtitle on a display screen
State.
10. device as claimed in claim 9, which is characterized in that described device further include:
Update module is used for before display module shows subtitle state, the subtitle state and the word currently cached
Whether tentiform state is identical;If it is not, the subtitle state cached is then updated to the subtitle state.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910101309.2A CN109842815A (en) | 2019-01-31 | 2019-01-31 | A kind of the subtitle state display method and device of program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910101309.2A CN109842815A (en) | 2019-01-31 | 2019-01-31 | A kind of the subtitle state display method and device of program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109842815A true CN109842815A (en) | 2019-06-04 |
Family
ID=66884351
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910101309.2A Pending CN109842815A (en) | 2019-01-31 | 2019-01-31 | A kind of the subtitle state display method and device of program |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109842815A (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20090085343A (en) * | 2008-02-04 | 2009-08-07 | 엘지전자 주식회사 | One-segment television with stream information display |
| CN101518075A (en) * | 2006-10-13 | 2009-08-26 | 夏普株式会社 | Mobile information terminal device |
| US20110037833A1 (en) * | 2009-08-17 | 2011-02-17 | Samsung Electronics Co., Ltd. | Method and apparatus for processing signal for three-dimensional reproduction of additional data |
| CN102244752A (en) * | 2011-06-30 | 2011-11-16 | 广州视源电子科技有限公司 | Method for automatically updating and upgrading television channel database and television |
| CN103220571A (en) * | 2013-04-09 | 2013-07-24 | 李映红 | Interaction system and interaction method aiming at television program and set top box |
| CN108924664A (en) * | 2018-07-26 | 2018-11-30 | 青岛海信电器股份有限公司 | A kind of synchronous display method and terminal of program credits |
| CN109195006A (en) * | 2018-08-09 | 2019-01-11 | 广东省南方数字电视无线传播有限公司 | The Deplexing method and device of multi-program transmission stream |
-
2019
- 2019-01-31 CN CN201910101309.2A patent/CN109842815A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101518075A (en) * | 2006-10-13 | 2009-08-26 | 夏普株式会社 | Mobile information terminal device |
| KR20090085343A (en) * | 2008-02-04 | 2009-08-07 | 엘지전자 주식회사 | One-segment television with stream information display |
| US20110037833A1 (en) * | 2009-08-17 | 2011-02-17 | Samsung Electronics Co., Ltd. | Method and apparatus for processing signal for three-dimensional reproduction of additional data |
| CN102244752A (en) * | 2011-06-30 | 2011-11-16 | 广州视源电子科技有限公司 | Method for automatically updating and upgrading television channel database and television |
| CN103220571A (en) * | 2013-04-09 | 2013-07-24 | 李映红 | Interaction system and interaction method aiming at television program and set top box |
| CN108924664A (en) * | 2018-07-26 | 2018-11-30 | 青岛海信电器股份有限公司 | A kind of synchronous display method and terminal of program credits |
| CN109195006A (en) * | 2018-08-09 | 2019-01-11 | 广东省南方数字电视无线传播有限公司 | The Deplexing method and device of multi-program transmission stream |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5433143B2 (en) | Digital broadcast media recording apparatus and recording method | |
| US8228433B2 (en) | Method of controlling receiver for processing broadcast signal defining multi-channel broadcast and broadcast receiver using the same | |
| US20070261074A1 (en) | Broadcast receiver and method for processing broadcast data | |
| KR101486354B1 (en) | Broadcast receiver and method for processing broadcast data | |
| JP2005302117A (en) | Recording / reproducing apparatus, recording / reproducing method, program, and recording medium | |
| US20070266407A1 (en) | Digital television receiver and method for processing broadcast signal | |
| US8171508B2 (en) | Enhanced parental control | |
| CN109842815A (en) | A kind of the subtitle state display method and device of program | |
| US20070283383A1 (en) | Digital television receiver and method for processing broadcast signal | |
| CN105916009B (en) | A kind of method and device for recording program | |
| CA2591028A1 (en) | Digital television receiver and method for processing broadcast signal | |
| KR20070115121A (en) | A broadcast signal related to real-time information of a broadcast program, a method of controlling the broadcast signal in a PSIP, and a broadcast receiver processing the same | |
| US20070266419A1 (en) | Digital television signal, digital television receiver, and method for processing digital television signal | |
| KR101227499B1 (en) | Method and apparatus of receiving Digital broadcast signal | |
| KR20060068671A (en) | Digital TV and its channel setting method | |
| CN104768060B (en) | A kind of channel switching method and device | |
| JP3369099B2 (en) | Multi-program recording system for digital broadcasting | |
| JP2008022542A (en) | Digital broadcast receiver | |
| CN109195008A (en) | A kind of playback method and device of scrambled program | |
| KR20070088191A (en) | Method for controlling RTV of PSPI in digital broadcasting, broadcast signal including RTV data structure and broadcast receiver for processing same | |
| KR101253637B1 (en) | A method of receiving a digital broadcasting signal and an apparaus of receiving a digital broadcasting signal | |
| JP2008154149A (en) | Video image processing apparatus and its channel preset method | |
| CA2724783C (en) | Apparatus and method for processing dummy event in digital television receiver | |
| KR20080053984A (en) | Device and method for setting bookmark of video display device | |
| KR101448640B1 (en) | Broadcasting receiver and method of processing data |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190604 |