CN107302722B - DTV code stream decoding method and device - Google Patents

DTV code stream decoding method and device Download PDF

Info

Publication number
CN107302722B
CN107302722B CN201710332979.6A CN201710332979A CN107302722B CN 107302722 B CN107302722 B CN 107302722B CN 201710332979 A CN201710332979 A CN 201710332979A CN 107302722 B CN107302722 B CN 107302722B
Authority
CN
China
Prior art keywords
decoding
code stream
language
country
dtv code
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
CN201710332979.6A
Other languages
Chinese (zh)
Other versions
CN107302722A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710332979.6A priority Critical patent/CN107302722B/en
Publication of CN107302722A publication Critical patent/CN107302722A/en
Application granted granted Critical
Publication of CN107302722B publication Critical patent/CN107302722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4

Abstract

The invention provides a DTV code stream decoding method and a device, wherein the method comprises the following steps: acquiring a DTV code stream, judging whether language coding information exists in the DTV code stream when the text coding information does not exist in the DTV code stream, if so, inquiring a language decoding mode corresponding to the language coding information in a locally stored language decoding table, and decoding the DTV code stream according to the inquired corresponding language decoding mode; if not, judging whether the country coding information exists in the DTV code stream, inquiring a country decoding mode corresponding to the country coding information in a locally stored country decoding table when the country coding information exists in the DTV code stream, and decoding the DTV code stream according to the inquired corresponding country decoding mode; when the national coding information does not exist in the DTV code stream, the DTV code stream is decoded in sequence according to the locally stored character set library.

Description

DTV code stream decoding method and device
Technical Field
The present invention relates to the field of code stream decoding technologies, and in particular, to a DTV code stream decoding method and apparatus.
Background
With the development of the times, the living standard of people is continuously improved, and the digital television is used more and more frequently, which is also called as a digital television or a digital television, and refers to a television type that all links from a studio to transmission, transmission and reception use digital television signals or all signal transmission of the system is transmitted through binary digital streams composed of 0 and 1 digital strings, program information in the digital television is generally realized through a DTV code stream, and the digital television decodes the DTV code stream to display text contents corresponding to the decoded DTV code stream on a display screen.
The existing DTV code stream decoding method is to extract the internal character coding information to obtain the corresponding decoding mode and decode the DTV code stream according to the obtained decoding mode so as to display the character content corresponding to the DTV code stream in the display equipment to complete the decoding process.
In the existing decoding process of the DTV code stream, some DTV code streams are not strictly manufactured according to the standard, character coding information is not added when the code streams are manufactured, and further, when the DTV code streams are decoded, a corresponding decoding mode is not obtained, so that the situation that character decoding errors occur in display equipment is caused.
Disclosure of Invention
Based on this, the present invention aims to provide a DTV code stream decoding method and apparatus capable of effectively preventing character decoding errors.
A DTV code stream decoding method, the method comprising:
obtaining a DTV code stream, and judging whether language coding information exists in the DTV code stream when character coding information does not exist in the DTV code stream;
if yes, inquiring a language decoding mode corresponding to the language coding information in a locally stored language decoding table, and decoding the DTV code stream according to the inquired corresponding language decoding mode;
if not, judging whether the country coding information exists in the DTV code stream, inquiring a country decoding mode corresponding to the country coding information in a locally stored country decoding table when the country coding information exists in the DTV code stream, and decoding the DTV code stream according to the inquired corresponding country decoding mode; and when the national coding information does not exist in the DTV code stream, decoding the DTV code stream in sequence according to a locally stored character set library.
The DTV code stream decoding method prevents the situation of character decoding error caused when the character coding information does not exist in the DTV code stream by inquiring the design of the language decoding mode corresponding to the language coding information in the language decoding table stored locally, by inquiring the design of the country decoding mode corresponding to the country coding information in the country decoding table stored locally, the situation of character decoding errors caused when the character coding information and the language coding information do not exist in the DTV code stream is prevented, by means of the design of sequentially decoding the DTV code stream according to the locally stored character set library, the situation that character decoding errors are caused when the character coding information, the language coding information and the country coding information do not exist in the DTV code stream is prevented.
Further, before the obtaining of the DTV code stream, the method further includes:
extracting language audio information of a plurality of countries and language decoding modes corresponding to the language audio information, and storing the language audio information and the language decoding modes correspondingly to obtain a language decoding table;
extracting a plurality of country names and official decoding modes corresponding to the country names, and storing the country names and the official decoding modes correspondingly to obtain the country decoding table.
Further, the step of querying a language decoding mode corresponding to the language coding information in a language decoding table stored locally and decoding the DTV code stream according to the queried corresponding language decoding mode includes:
extracting the language coding information, and performing language matching according to the language audio information in the language decoding table to obtain a current language;
and querying a language decoding mode corresponding to the current language in the language decoding table, and decoding the DTV code stream according to the queried language decoding mode.
Further, the step of querying a country decoding mode corresponding to the country code information in a locally stored country decoding table and decoding the DTV code stream according to the queried corresponding country decoding mode includes:
extracting the country code information, and performing country matching according to the country name in the country decoding table to obtain the current country;
and inquiring the official decoding mode corresponding to the current country in the country decoding table, and decoding the DTV code stream according to the inquired official decoding mode.
Further, the method further comprises:
and after the DTV code stream is decoded, storing the corresponding relation between the DTV code stream and the current decoding mode corresponding to the DTV code stream, so that the DTV code stream is decoded according to the corresponding relation when the same DTV code stream is obtained again.
A DTV code stream decoding device, comprising:
the first judgment module is used for acquiring a DTV code stream and judging whether language coding information exists in the DTV code stream when character coding information does not exist in the DTV code stream;
the first decoding module is used for inquiring a language decoding mode corresponding to the language coding information in a locally stored language decoding table when the first judging module judges that the language coding information exists in the DTV code stream, and decoding the DTV code stream according to the inquired corresponding language decoding mode;
the second decoding module is used for judging whether the country coding information exists in the DTV code stream or not when the first judging module judges that the language coding information does not exist in the DTV code stream, inquiring a country decoding mode corresponding to the country coding information in a locally stored country decoding table when the country coding information exists in the DTV code stream, and decoding the DTV code stream according to the inquired corresponding country decoding mode; and when the national coding information does not exist in the DTV code stream, decoding the DTV code stream in sequence according to a locally stored character set library.
The DTV code stream decoding device can inquire a decoding mode corresponding to the DTV code stream according to the language coding information and decode the DTV code stream through the design of the first decoding module, so that the situation that character decoding errors caused by the character coding information do not exist in the DTV code stream is prevented, the decoding mode corresponding to the DTV code stream can be inquired according to the country coding information and the DTV code stream is decoded through the design of the second decoding module, so that the situation that the character decoding errors caused by the language coding information do not exist in the DTV code stream, and the situation that the character decoding errors caused by the character coding information, the language coding information and the country coding information do not exist in the DTV code stream is prevented through the second decoding module.
Further, the DTV code stream decoding device further includes:
the first extraction module is used for extracting language audio information of a plurality of countries and language decoding modes corresponding to the language audio information;
the language storage module is used for correspondingly storing the language audio information and the language decoding mode according to the extraction result of the first extraction module so as to obtain the language decoding table;
the second extraction module is used for extracting a plurality of country names and official decoding modes corresponding to the country names;
and the country storage module is used for correspondingly storing the country name and the official decoding mode according to the extraction result of the second extraction module so as to obtain the country decoding table.
Further, the first decoding module includes:
the first matching module is used for extracting the language coding information and performing language matching according to the language audio information stored in the language decoding table to obtain the current language;
and the first query module is used for querying the language decoding mode corresponding to the current language in the language decoding table according to the matching result of the first matching module and decoding the DTV code stream according to the queried language decoding mode.
Further, the second decoding module comprises:
the second judgment module is used for judging whether the national coding information exists in the DTV code stream;
the second matching module is used for extracting the country code information when the second judging module judges that the country code information exists in the DTV code stream, and performing country matching according to the country name stored in the country decoding table to obtain the current country;
the second query module is used for querying the official decoding mode corresponding to the current country in the country decoding table according to the matching result of the second matching module and decoding the DTV code stream according to the queried official decoding mode;
and the third query module is used for querying the character set in the character set library and sequentially decoding the DTV code stream by using the character set when the second judgment module judges that the national coding information does not exist in the DTV code stream.
Further, the DTV code stream decoding device further includes:
and the recording module is used for storing the corresponding relation between the DTV code stream and the current decoding mode corresponding to the DTV code stream after the DTV code stream is decoded so as to decode the DTV code stream according to the corresponding relation when the same DTV code stream is obtained again.
Drawings
Fig. 1 is a flowchart of a DTV code stream decoding method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a DTV code stream decoding method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a DTV code stream decoding apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a DTV code stream decoding apparatus according to a fourth embodiment of the present invention;
description of the symbols of the main elements
DTV code stream decoding device 100,100a First judging module 10
First decoding module 20 First matching module 21
First query module 22 Second decoding module 30
Second judging module 31 Second matching module 32
Second query module 33 Third query module 34
Language memory module 40 Second extraction module 41
National storage module 42 First extraction module 43
Recording module 44
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order to facilitate a better understanding of the invention, the invention will be further explained below with reference to the accompanying drawings of embodiments. Embodiments of the present invention are shown in the drawings, but the present invention is not limited to the preferred embodiments described above. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Please refer to fig. 1, which is a flowchart of a DTV code stream decoding method according to a first embodiment of the present invention, including steps S10 to S30.
Step S10, obtaining DTV code stream, when there is no character coding information in the DTV code stream, judging whether there is language coding information in the DTV code stream;
when the character coding information is judged to exist in the DTV code stream, the DTV code stream can be directly decoded through the character coding information so as to display character contents corresponding to the DTV code stream in a display device, the language coding information is audio information in the DTV code stream, for example, the language coding information is Chinese pronunciation, English pronunciation or German pronunciation and the like so as to enable the corresponding DTV code stream to be Chinese, English or German and the like;
when the step S10 determines that the speech coding information exists in the DTV code stream, execute step S20.
Step S20, inquiring the language decoding mode corresponding to the language coding information in the language decoding table stored locally, and decoding the DTV code stream according to the inquired corresponding language decoding mode;
when the language coding information is judged to exist in the DTV code stream, inquiring a decoding mode corresponding to the language coding information in the language decoding table to decode the DTV code stream according to the inquired corresponding decoding mode, thereby preventing the situation of character decoding error caused by the absence of the character coding information in the DTV code stream;
when the step S10 determines that the language coding information does not exist in the DTV code stream, execute step S30.
Step S30, judging whether the country code information exists in the DTV code stream, when the country code information exists in the DTV code stream, inquiring a country decoding mode corresponding to the country code information in a locally stored country decoding table, and decoding the DTV code stream according to the inquired corresponding country decoding mode; when the national coding information does not exist in the DTV code stream, decoding the DTV code stream in sequence according to a locally stored character set library;
the country code information is country name information corresponding to the DTV code stream, and when the DTV code stream is judged to have the country code information, a decoding mode corresponding to the country code information in the country decoding table is inquired, so that the DTV code stream is decoded according to the inquired corresponding decoding mode, and further the situation of character decoding errors caused by the fact that the character code information does not exist in the DTV code stream and the language code information does not exist in the DTV code stream is prevented.
In this embodiment, a large number of character sets are stored in the character set library, and when it is determined that the text coding information, the language coding information, and the country coding information do not exist in the DTV code stream, the character sets are sequentially decoded on the DTV code stream, so that a decoding process of the DTV code stream is completed, and further a text decoding error caused by a DTV decoding error is prevented.
In this embodiment, by querying the design of the language decoding manner corresponding to the language coding information in the language decoding table stored locally, a situation of a text decoding error caused when the text coding information does not exist in the DTV code stream is prevented, by querying the design of the country decoding manner corresponding to the country coding information in the country decoding table stored locally, a situation of a text decoding error caused when neither the text coding information nor the language coding information exists in the DTV code stream is prevented, and by sequentially decoding the DTV code stream according to the locally stored character set library, a situation of a text decoding error caused when the text coding information, the language coding information, and the country coding information do not exist in the DTV code stream is prevented.
Referring to fig. 2, a flowchart of a DTV code stream decoding method according to a second embodiment of the present invention includes steps S11 to S91.
Step S11, extracting language audio information of a plurality of countries and language decoding modes corresponding to the language audio information, storing the language audio information and the language decoding modes correspondingly, extracting a plurality of country names and official decoding modes corresponding to the country names, and storing the country names and the official decoding modes correspondingly;
step S21, obtaining DTV code stream, and judging whether character coding information exists in the DTV code stream;
when the character coding information is judged to exist in the DTV code stream, the DTV code stream can be directly decoded through the character coding information, so that character contents corresponding to the DTV code stream are displayed in display equipment;
when the step S21 determines that there is no text encoding information in the DTV code stream, execute step S31.
Step S31, judging whether language coding information exists in the DTV code stream;
the language coding information is audio information in the DTV code stream, for example, the language coding information is a pronunciation of chinese, a pronunciation of english, or a pronunciation of german, so that the corresponding DTV code stream is a character of chinese, english, or german;
when the step S31 determines that the speech coding information exists in the DTV code stream, execute step S41.
Step S41, extracting the language coding information, and performing language matching according to the language audio information stored in the language decoding table to obtain the current language;
the language matching is carried out through the audio frequency of the language, the audio signal in the language coding information is extracted, and the same audio signal in the language coding table is inquired so as to enable the current language to be reached;
step S51, inquiring the language decoding mode corresponding to the current language in the language decoding table, and decoding the DTV code stream according to the inquired language decoding mode.
Wherein, a language in the language coding table corresponds to a decoding mode, for example, languages such as Chinese, English or German all correspond to a decoding mode, and when the current language is obtained, the decoding mode corresponding to the current language is inquired for decoding;
when the step S31 determines that the language coding information does not exist in the DTV code stream, execute step S61.
Step S61, judging whether the DTV code stream has country code information;
the country code information is country name information corresponding to the DTV code stream;
when the step S61 determines that the country code information exists in the DTV code stream, step S71 is executed.
Step S71, extracting the country code information, and performing country matching according to the country name stored in the country decoding table to obtain the current country;
wherein the country match is made to the current country by matching names of countries;
and step S81, inquiring the official decoding mode corresponding to the current country in the country decoding table, and decoding the DTV code stream according to the inquired official decoding mode.
When the step S61 determines that the country code information does not exist in the DTV code stream, execute step S91.
Step S91, decoding the DTV code stream in sequence according to the locally stored character set library;
when the character set library is judged to be free from the character coding information, the language coding information and the country coding information, the character sets are sequentially decoded on the DTV code stream, so that the decoding process of the DTV code stream is completed, and the condition of character decoding errors caused by the DTV decoding errors is prevented.
In this embodiment, the method further includes:
and after the DTV code stream is decoded, storing the corresponding relation between the DTV code stream and the current decoding mode corresponding to the DTV code stream, so that the DTV code stream is decoded according to the corresponding relation when the same DTV code stream is obtained again.
In this embodiment, through the design of language matching, a decoding manner corresponding to the language coding information can be obtained by querying the language coding table, so as to complete decoding of the DTV code stream, thereby preventing a text decoding error caused by absence of the text coding information in the DTV code stream.
Referring to fig. 3, a schematic structural diagram of a DTV code stream decoding apparatus 100 according to a third embodiment of the present invention includes:
the first judging module 10 is configured to acquire a DTV code stream, and judge whether language coding information exists in the DTV code stream when text coding information does not exist in the DTV code stream, where whether the DTV code stream carries the text coding information is judged by judging whether an information end of the DTV code stream carries specific coding information, and the text coding information carries a decoding manner corresponding to the DTV code stream, and when the first judging module 10 judges that the text coding information exists in the DTV code stream, the DTV code stream may be directly decoded according to the decoding manner carried in the text coding information, so that text content corresponding to the DTV code stream is displayed in a display device to complete a decoding process.
The first decoding module 20 is configured to, when the first determining module 10 determines that the language coding information exists in the DTV code stream, query a language decoding manner corresponding to the language coding information in a locally stored language decoding table, decode the DTV code stream according to the queried corresponding language decoding manner, and send text content corresponding to the DTV code stream after decoding to a display device for displaying, so as to complete a decoding and displaying process of the DTV code stream.
A second decoding module 30, configured to determine whether country code information exists in the DTV code stream when the first determining module 20 determines that the language code information does not exist in the DTV code stream, and query a country decoding manner corresponding to the country code information in a locally stored country decoding table when the country code information exists in the DTV code stream, and decode the DTV code stream according to the queried corresponding country decoding manner; and when the national coding information does not exist in the DTV code stream, sequentially decoding the DTV code stream according to a locally stored character set library, and sending the character content corresponding to the decoded DTV code stream to display equipment for displaying so as to finish the decoding and displaying processes of the DTV code stream.
The DTV code stream decoding apparatus 100 in this embodiment further includes:
a first extraction module 43, configured to extract language audio information of multiple countries and language decoding manners corresponding to the language audio information;
a language storage module 40, configured to store the language audio information and the language decoding manner correspondingly according to the extraction result of the first extraction module 43 to obtain the language decoding table, where through the design of the first extraction module 43 and the language storage module 40, the manufacture of the language decoding table is completed before the first determination module 10 obtains the DTV code stream, and the language coding information is audio information in the DTV code stream, for example, the language coding information is a chinese pronunciation, an english pronunciation, or a german pronunciation, so that the corresponding DTV code stream is a character of chinese, english, or german.
A second extraction module 41, configured to extract a plurality of country names and official decoding manners corresponding to the country names;
a country storage module 42, configured to store the country name and the official decoding manner correspondingly according to the extraction result of the second extraction module 41 to obtain the country decoding table, where through the design of the second extraction module 41 and the country storage module 42, the country decoding table is made before the first determination module 10 obtains the DTV code stream.
In this embodiment, the first decoding module 20 includes:
the first matching module 21 is configured to extract the language coding information, perform language matching according to the language audio information stored in the language decoding table to obtain a current language, where the language matching is performed through audio of the language, extract an audio signal in the language coding information, and query the same audio signal in the language coding table to obtain the current language.
A first query module 22, configured to query, according to the matching result of the first matching module 21, a language decoding manner corresponding to the current language in the language decoding table, and decode the DTV code stream according to the queried language decoding manner, where one language in the language encoding table corresponds to one decoding manner, for example, languages such as chinese, english, or german all correspond to one decoding manner, and when the current language is obtained, the decoding manner corresponding to the current language is queried for decoding.
The second decoding module 30 includes:
the second judging module 31 is configured to judge whether national coding information exists in the DTV code stream;
a second matching module 32, configured to, when the second determining module 31 determines that the country code information exists in the DTV code stream, extract the country code information, and perform country matching according to the country name stored in the country decoding table, so as to obtain a current country.
The second query module 33 is configured to query the official decoding manner corresponding to the current country in the country decoding table according to the matching result of the second matching module 32, and decode the DTV code stream according to the queried official decoding manner.
A third query module 34, configured to query the character sets in the character set library and decode the DTV code stream in sequence by using the character sets when the second determination module 31 determines that the country code information does not exist in the DTV code stream.
In this embodiment, through the design of the first decoding module 20, a decoding manner corresponding to the DTV code stream can be queried and decoded according to the language coding information, so as to prevent a situation that a character decoding error caused by the character coding information does not exist in the DTV code stream, through the design of the second decoding module 30, a decoding manner corresponding to the DTV code stream can be queried and decoded according to the country coding information, so as to prevent a situation that the character decoding error caused by the language coding information does not exist in the DTV code stream, and through the design of the third querying module 34, a situation that the character decoding error caused by the absence of the character coding information, the language coding information and the country coding information in the DTV code stream is prevented.
Referring to fig. 4, a schematic structural diagram of a DTV code stream decoding apparatus 100a according to a fourth embodiment of the present invention is shown, where the fourth embodiment is substantially the same as the third embodiment, and the DTV code stream decoding apparatus 100a further includes:
and the recording module 44 is configured to store a corresponding relationship between the DTV code stream and a current decoding mode corresponding to the DTV code stream after the DTV code stream is decoded, so that the DTV code stream is decoded according to the corresponding relationship when the same DTV code stream is obtained again.
In this embodiment, through the design of the recording module 44, when the same DTV code stream is obtained, a decoding manner corresponding to the DTV code stream can be directly queried, and then decoding can be directly performed, so that the decoding efficiency of the DTV code stream decoding apparatus 100a is improved, and user experience is improved.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, where the program may be stored in a computer readable storage medium, and when executed, the program includes the following steps:
obtaining a DTV code stream, and judging whether language coding information exists in the DTV code stream when character coding information does not exist in the DTV code stream;
if yes, inquiring a language decoding mode corresponding to the language coding information in a locally stored language decoding table, and decoding the DTV code stream according to the inquired corresponding language decoding mode;
if not, judging whether the country coding information exists in the DTV code stream, inquiring a country decoding mode corresponding to the country coding information in a locally stored country decoding table when the country coding information exists in the DTV code stream, and decoding the DTV code stream according to the inquired corresponding country decoding mode; when the country coding information does not exist in the DTV code stream, decoding the DTV code stream in sequence according to a locally stored character set library, wherein the storage medium comprises: ROM/RAM, magnetic disk, optical disk, etc.
The above-described embodiments describe the technical principles of the present invention, and these descriptions are only for the purpose of explaining the principles of the present invention and are not to be construed as limiting the scope of the present invention in any way. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.

Claims (8)

1. A DTV code stream decoding method, characterized in that the method comprises:
extracting language audio information of a plurality of countries and language decoding modes corresponding to the language audio information, and storing the language audio information and the language decoding modes correspondingly to obtain a language decoding table;
extracting a plurality of country names and official decoding modes corresponding to the country names, and storing the country names and the official decoding modes correspondingly to obtain a country decoding table;
obtaining a DTV code stream, and judging whether language coding information exists in the DTV code stream when character coding information does not exist in the DTV code stream;
if yes, inquiring a language decoding mode corresponding to the language coding information in the language decoding table, and decoding the DTV code stream according to the inquired corresponding language decoding mode;
if not, judging whether the country coding information exists in the DTV code stream, inquiring a country decoding mode corresponding to the country coding information in the country decoding table when the country coding information exists in the DTV code stream, and decoding the DTV code stream according to the inquired corresponding country decoding mode; and when the national coding information does not exist in the DTV code stream, decoding the DTV code stream in sequence according to a locally stored character set library.
2. The method of claim 1, wherein the step of querying a language decoding manner corresponding to the language coding information in a language decoding table stored locally and decoding the DTV code stream according to the queried corresponding language decoding manner comprises:
extracting the language coding information, and performing language matching according to the language audio information in the language decoding table to obtain a current language;
and querying a language decoding mode corresponding to the current language in the language decoding table, and decoding the DTV code stream according to the queried language decoding mode.
3. The method of claim 1, wherein the step of querying a country decoding mode corresponding to the country code information in a locally stored country decoding table and decoding the DTV code stream according to the queried corresponding country decoding mode comprises:
extracting the country code information, and performing country matching according to the country name in the country decoding table to obtain the current country;
and inquiring the official decoding mode corresponding to the current country in the country decoding table, and decoding the DTV code stream according to the inquired official decoding mode.
4. The method of decoding DTV code stream according to claim 1, further comprising:
and after the DTV code stream is decoded, storing the corresponding relation between the DTV code stream and the current decoding mode corresponding to the DTV code stream, so that the DTV code stream is decoded according to the corresponding relation when the same DTV code stream is obtained again.
5. A DTV code stream decoding device, characterized in that: the method comprises the following steps:
the first judgment module is used for acquiring a DTV code stream and judging whether language coding information exists in the DTV code stream when character coding information does not exist in the DTV code stream;
the first decoding module is used for inquiring a language decoding mode corresponding to the language coding information in a locally stored language decoding table when the first judging module judges that the language coding information exists in the DTV code stream, and decoding the DTV code stream according to the inquired corresponding language decoding mode;
the second decoding module is used for judging whether the country coding information exists in the DTV code stream or not when the first judging module judges that the language coding information does not exist in the DTV code stream, inquiring a country decoding mode corresponding to the country coding information in a locally stored country decoding table when the country coding information exists in the DTV code stream, and decoding the DTV code stream according to the inquired corresponding country decoding mode; when the national coding information does not exist in the DTV code stream, decoding the DTV code stream in sequence according to a locally stored character set library;
the DTV code stream decoding device further comprises:
the first extraction module is used for extracting language audio information of a plurality of countries and language decoding modes corresponding to the language audio information;
the language storage module is used for correspondingly storing the language audio information and the language decoding mode according to the extraction result of the first extraction module so as to obtain the language decoding table;
the second extraction module is used for extracting a plurality of country names and official decoding modes corresponding to the country names;
and the country storage module is used for correspondingly storing the country name and the official decoding mode according to the extraction result of the second extraction module so as to obtain the country decoding table.
6. The device for decoding DTV code stream according to claim 5, wherein the first decoding module comprises:
the first matching module is used for extracting the language coding information and performing language matching according to the language audio information stored in the language decoding table to obtain the current language;
and the first query module is used for querying the language decoding mode corresponding to the current language in the language decoding table according to the matching result of the first matching module and decoding the DTV code stream according to the queried language decoding mode.
7. The device for decoding DTV code stream according to claim 5, wherein the second decoding module comprises:
the second judgment module is used for judging whether the national coding information exists in the DTV code stream;
the second matching module is used for extracting the country code information when the second judging module judges that the country code information exists in the DTV code stream, and performing country matching according to the country name stored in the country decoding table to obtain the current country;
the second query module is used for querying the official decoding mode corresponding to the current country in the country decoding table according to the matching result of the second matching module and decoding the DTV code stream according to the queried official decoding mode;
and the third query module is used for querying the character set in the character set library and sequentially decoding the DTV code stream by using the character set when the second judgment module judges that the national coding information does not exist in the DTV code stream.
8. The device for decoding DTV code stream according to claim 5, further comprising:
and the recording module is used for storing the corresponding relation between the DTV code stream and the current decoding mode corresponding to the DTV code stream after the DTV code stream is decoded so as to decode the DTV code stream according to the corresponding relation when the same DTV code stream is obtained again.
CN201710332979.6A 2017-05-12 2017-05-12 DTV code stream decoding method and device Active CN107302722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710332979.6A CN107302722B (en) 2017-05-12 2017-05-12 DTV code stream decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710332979.6A CN107302722B (en) 2017-05-12 2017-05-12 DTV code stream decoding method and device

Publications (2)

Publication Number Publication Date
CN107302722A CN107302722A (en) 2017-10-27
CN107302722B true CN107302722B (en) 2020-08-14

Family

ID=60137475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710332979.6A Active CN107302722B (en) 2017-05-12 2017-05-12 DTV code stream decoding method and device

Country Status (1)

Country Link
CN (1) CN107302722B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131871B (en) * 2019-12-03 2021-03-19 海信视像科技股份有限公司 Method and display equipment for displaying EPG (electronic program guide) user interface during program playing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642235A (en) * 2004-01-12 2005-07-20 松下电器产业株式会社 Caption coding device
CN101771846A (en) * 2009-01-04 2010-07-07 联想(北京)有限公司 Caption correcting method and electronic equipment
CN102595082A (en) * 2012-01-30 2012-07-18 深圳创维-Rgb电子有限公司 Method and system for automatically displaying multi-format hidden captions of television set
CN105847931A (en) * 2016-03-28 2016-08-10 深圳Tcl新技术有限公司 Subtitle display method and subtitle display device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642235A (en) * 2004-01-12 2005-07-20 松下电器产业株式会社 Caption coding device
CN101771846A (en) * 2009-01-04 2010-07-07 联想(北京)有限公司 Caption correcting method and electronic equipment
CN102595082A (en) * 2012-01-30 2012-07-18 深圳创维-Rgb电子有限公司 Method and system for automatically displaying multi-format hidden captions of television set
CN105847931A (en) * 2016-03-28 2016-08-10 深圳Tcl新技术有限公司 Subtitle display method and subtitle display device

Also Published As

Publication number Publication date
CN107302722A (en) 2017-10-27

Similar Documents

Publication Publication Date Title
US20140350933A1 (en) Voice recognition apparatus and control method thereof
MX2014014741A (en) Methods and apparatus for identifying media.
CN103561217A (en) Method and terminal for generating captions
CN109473104B (en) Voice recognition network delay optimization method and device
CN103260071B (en) A kind of Set Top Box automatically selecting menu language and sound accompanying language and realize method
CN101924863A (en) Digital television equipment
CN105512182A (en) Speech control method and intelligent television
CN103607635A (en) Method, device and terminal for caption identification
US8782273B2 (en) Apparatus and method for generating a data stream and apparatus and method for reading a data stream
CN107302722B (en) DTV code stream decoding method and device
CN105847931B (en) Caption presentation method and device
CN105100852A (en) Voice-based remote control method, device and system for terminals
MX2021011102A (en) Probability initialization for video coding.
US20160196631A1 (en) Hybrid Automatic Content Recognition and Watermarking
KR20170070057A (en) Method for color mapping a video signal based on color mapping data and method of encoding a video signal and color mapping data and corresponding devices
CN102148939A (en) Method, device and television for real-time displaying subtitles of television program
CN105657575A (en) Video annotation methods and apparatuses
KR102594022B1 (en) Electronic device and method for updating channel map thereof
CN102164318A (en) Voice prompting method, device and digital television receiving terminal
US20130033641A1 (en) Method for auto-detecting audio language name and television using the same
CN103747284A (en) Video pushing method and server
CN109640165B (en) Multimedia playing method for switching audio tracks, terminal equipment and readable storage medium
CN103024116B (en) Information processing method based on double-tone multi-frequency coding matrix and information processing system
US20140344305A1 (en) System and method for managing related information of audio content
CN112312208A (en) Multimedia information processing method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant