[summary of the invention]
Can not show the problem of general, popular subtitle file content at present for solving when the displaying video information, be necessary to provide a kind of playing device and caption presentation method thereof that shows captions when being used in displaying video information with electronic product.
The present invention solves the problems of the technologies described above the technical scheme of being taked: a kind of captions that are used for multi-media signal device that displays the play is provided, these captions device that displays the play is used for when displaying video information showing subtitle file, and these captions device that displays the play comprises subtitle resolving module, captions display module and captions output module.Subtitle resolving module is resolved with the acquisition caption data at least one subtitle file, and caption data is stored in the data structure of consolidation form.The captions display module calls corresponding fontlib according to caption data, and is caption information via font display graphics user interface process.The captions output module synthesizes caption information and video information and exports the captions display message.
According to one preferred embodiment of the present invention, this caption data comprises: Word message, language message, demonstration time.
According to one preferred embodiment of the present invention, this fontlib comprises following message: font, font size, font, font color, and fontlib is supported following language: English, simplified form of Chinese Character, Chinese-traditional, French, German, Korean, Japanese, Italian, Turkish, Russia's language, Portuguese, Spanish, Albanian, Erse, Estonian, Basque, Byelorussian, Bulgarian, the north Germanic, Icelandic, Polish, Baltic Sea language, the language of POLO, the Brittani language, Danish, method sieve language, Finnish, Greenland language, Kazak, Dutch, Galician, Catalan, Czech, Cornish, Croatian, Kurdish, Latin language, Latvian, Lithuanian, luxemburg language, Romanian, Maltese, Malay, Macedonian, Mongol, Norwegian, Swedish, Sa Miyu, Serbian, Esperanto, Slovak, Slovene, Swahili, Tajiki, Thai, Welsh, Ukrainian, Ukrainian, Hebrew, Greek, Hungarian, Indonesian.
According to one preferred embodiment of the present invention, these captions device that displays the play is supported the subtitle file of following language: English, simplified form of Chinese Character, Chinese-traditional, French, German, Korean, Japanese, Italian, Turkish, Russia's language, Portuguese, Spanish, Albanian, Erse, Estonian, Basque, Byelorussian, Bulgarian, the north Germanic, Icelandic, Polish, Baltic Sea language, the language of POLO, the Brittani language, Danish, method sieve language, Finnish, Greenland language, Kazak, Dutch, Galician, Catalan, Czech, Cornish, Croatian, Kurdish, Latin language, Latvian, Lithuanian, luxemburg language, Romanian, Maltese, Malay, Macedonian, Mongol, Norwegian, Swedish, Sa Miyu, Serbian, Esperanto, Slovak, Slovene, Swahili, Tajiki, Thai, Welsh, Ukrainian, Ukrainian, Hebrew, Greek, Hungarian, Indonesian.
According to one preferred embodiment of the present invention, these captions device that displays the play is supported the text formatting subtitle file, and the extension name of text formatting subtitle file comprises: srt, smi, sub, rt, txt, ssa, aq, jss, js.
According to one preferred embodiment of the present invention, these captions device that displays the play is supported the automatic identification of subtitle language.
According to one preferred embodiment of the present invention, these captions device that displays the play is supported the demonstration of bilingual subtitles.
According to one preferred embodiment of the present invention, the device support that displays the play of these captions can load simultaneously the subtitle file of 5 kinds of language.
According to one preferred embodiment of the present invention, these these captions device that displays the play also comprises receiver module, can control whether to receive subtitle resolving module subtitle file is resolved the caption data of back gained, whether shows captions with control.
The present invention solves the problems of the technologies described above another technical scheme of being taked: a kind of caption presentation method that is used for multi-media signal is provided, this caption presentation method is used for showing subtitle file when displaying video information, this caption presentation method comprises the following steps: the captions analyzing step, at least one subtitle file is resolved with the acquisition caption data, and caption data is stored in the data structure of consolidation form; The captions step display calls corresponding fontlib according to caption information, and is caption information via font display graphics user interface process; Captions output step is synthesized caption information and video information and is exported demonstration.
Compared with prior art, the captions of the present invention device that displays the play has the following advantages: 1) provide a kind of video playback that can show subtitle file for the user; 2) support the text formatting captions to show; Support the subtitle file of multiple text formatting; 3) support built-in subtitle file; 4) support multilingual subtitle file; 5) the automatic identification of support subtitle language; 6) demonstration of support bilingual subtitles; 7) demonstration and the closing function of support captions.
[embodiment]
The present invention is described in detail below in conjunction with drawings and embodiments.
Fig. 1 is according to using the captions of the present invention device that displays the play to be applied in structural representation in the video play device.This video play device comprises video playback module 30, video parsing module 40, captions display the play device 50, display buffer 60 and display unit 70.Video playback module 30 receiver, video files 10 and with these video file 10 corresponding subtitle files 20, it transfers to video parsing module 40 with video file 10 and carries out the video data parsing to obtain video data, by playing program video data is converted to the video display message then.Video playback module 30 transfers to the captions device 50 that displays the play with subtitle file 20 and video display message and carries out caption data and resolve to obtain the captions display message.Video display message that video parsing module 40 is resolved and the captions captions display message that device 50 resolves that displays the play transfers to video playback module 30, video playback module 30 merges video display message and captions display message after transfer to display unit 70 by display buffer 60, thereby shows the captions image in the displaying video image information.
These captions device 50 that displays the play is used for when displaying video information showing subtitle file, mainly comprises following modules: subtitle resolving module 510, captions display module 520, captions output module 530.Subtitle resolving module 510 is resolved with the acquisition caption data at least one subtitle file 10, and caption data is stored in the data structure of consolidation form.Captions display module 520 calls corresponding fontlib according to caption data, and is caption information via font display graphics user interface process.Captions output module 530 synthesizes the captions display message with caption information and video display message.
Fig. 2 is the structural representation according to subtitle resolving module among Fig. 1.As shown in Figure 2, subtitle resolving module 510 comprises the data file 512 of captions analysis program 511 and unified structure, and it is resolved to obtain caption datas such as Word message, language message, demonstration time by 511 pairs of subtitle files 20 of captions analysis program.Captions analysis program 511 can be resolved the subtitle file of text formatting, as expands the text formatting subtitle file of srt, smi by name, sub, rt, txt, ssa, aq, jss or js.This different modules can be resolved a subtitle file, also can resolve a plurality of different types of subtitle files simultaneously.The caption data of resolving gained stores in the data file 512 of consolidation form.
Subtitle resolving module 510 is the identification caption language automatically, and these language comprise:
English, simplified form of Chinese Character, Chinese-traditional, French, German, Korean, Japanese, Italian, Turkish, Russia's language, Portuguese, Spanish, Albanian, Erse, Estonian, Basque, Byelorussian, Bulgarian, the north Germanic, Icelandic, Polish, Baltic Sea language, the language of POLO, the Brittani language, Danish, method sieve language, Finnish, Greenland language, Kazak, Dutch, Galician, Catalan, Czech, Cornish, Croatian, Kurdish, Latin language, Latvian, Lithuanian, luxemburg language, Romanian, Maltese, Malay, Macedonian, Mongol, Norwegian, Swedish, Sa Miyu, Serbian, Esperanto, Slovak, Slovene, Swahili, Tajiki, Thai, Welsh, Ukrainian, Ukrainian, Hebrew, Greek, Hungarian, Indonesian etc.
In order to realize the automatic identification and the switching of subtitle language, we do following agreement: the filename that is exactly subtitle file is to add that on the filename of video file various countries' language name suffix comes the language of identification caption.
As:
Movie.avi → movie file name
The subtitle file of Movie_cn.srt → Chinese
The subtitle file of Movie_en.srt → English.
Provide the corresponding relation of various countries' language file name and language below:
According to another preferred embodiment of the invention, also can discern the automatic identification of subtitle language by in subtitle file, making marks.
Fig. 3 is the structural representation according to font demonstration and output module among Fig. 1 and captions font display buffer module.As shown in Figure 3, captions display module 520 comprises fontlib 521 and font display graphics user interface 522.Captions display module 520 calls corresponding fontlib 521 according to the caption data of resolving the subtitle file gained in the subtitle resolving module 510, is treated to caption information via font display graphics user interface 522 then.Fontlib 521 comprises following message: font, font size, font, font color.Fontlib is also supported following language: English, simplified form of Chinese Character, Chinese-traditional, French, German, Korean, Japanese, Italian, Turkish, Russia's language, Portuguese, Spanish, Albanian, Erse, Estonian, Basque, Byelorussian, Bulgarian, the north Germanic, Icelandic, Polish, Baltic Sea language, the language of POLO, the Brittani language, Danish, method sieve language, Finnish, Greenland language, Kazak, Dutch, Galician, Catalan, Czech, Cornish, Croatian, Kurdish, Latin language, Latvian, Lithuanian, luxemburg language, Romanian, Maltese, Malay, Macedonian, Mongol, Norwegian, Swedish, Sa Miyu, Serbian, Esperanto, Slovak, Slovene, Swahili, Tajiki, Thai, Welsh, Ukrainian, Ukrainian, Hebrew, Greek, Hungarian, Indonesian.
For example, when user's download the subtitle file of a Movie_en.srt by name, in subtitle resolving module 510, will resolve this subtitle file, and acquisition related words information, language message, caption datas such as temporal information, according to aforementioned agreement, the language message of the subtitle file of this Movie_en.srt is English, font is Times new roman, font size is No. five, color is a white, font is overstriking, and captions display module 520 will call that font is Times new roman in the fontlib 521 according to the above-mentioned language message that subtitle resolving module obtained, font size is No. five, color is a white, font is the english font storehouse of overstriking.
As shown in Figure 3, captions output module 530 caption information that captions display module 520 is obtained and video information are synthesized and are exported the captions display message.For example, the captions display message can be stored into captions font display buffer, utilize captions font display buffer that the captions display message is handled especially, then will the captions font display buffer after special processing be added to LCD buffer memory and output show.Also the captions display message that can directly the captions display module be obtained directly is added in the video information and output shows.
Compared with prior art, electronic dictionary of the present invention, learning machine MP4 captions display module have the following advantages:
1) for providing a kind of MP4 of subtitle file that can show, the user plays.
2) support the text formatting captions to show.
3) subtitle file of 9 kinds of text formattings of support.
The extension name of these subtitle files is respectively: srt, smi, sub, rt, txt, ssa, aq, jss, js.
4) support the built-in subtitle file of MP4.
5) support the downloaded subtitle file.
6) support 60 multilingual subtitle files.These language comprise: English, simplified form of Chinese Character, Chinese-traditional, French, German, Korean, Japanese, Italian, Turkish, Russia's language, Portuguese, Spanish, Albanian, Erse, Estonian, Basque, Byelorussian, Bulgarian, the north Germanic, Icelandic, Polish, Baltic Sea language, the language of POLO, the Brittani language, Danish, method sieve language, Finnish, Greenland language, Kazak, Dutch, Galician, Catalan, Czech, Cornish, Croatian, Kurdish, Latin language, Latvian, Lithuanian, luxemburg language, Romanian, Maltese, Malay, Macedonian, Mongol, Norwegian, Swedish, Sa Miyu, Serbian, Esperanto, Slovak, Slovene, Swahili, Tajiki, Thai, Welsh, Ukrainian, Ukrainian, Hebrew, Greek, Hungarian, Indonesian etc.
7) the automatic identification of support subtitle language.
8) support the while can load the subtitle file of 5 kinds of language.
9) demonstration of support bilingual subtitles.
10) demonstration and the closing function of support captions.
In the above-described embodiments, only the present invention has been carried out exemplary description, but those skilled in the art can carry out various modifications to the present invention after reading present patent application under the situation that does not break away from the spirit and scope of the present invention.