CN102065228B - Title generator for playing general title file - Google Patents

Title generator for playing general title file Download PDF

Info

Publication number
CN102065228B
CN102065228B CN200910237573.5A CN200910237573A CN102065228B CN 102065228 B CN102065228 B CN 102065228B CN 200910237573 A CN200910237573 A CN 200910237573A CN 102065228 B CN102065228 B CN 102065228B
Authority
CN
China
Prior art keywords
file
captions
title
xml
subtitle
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.)
Expired - Fee Related
Application number
CN200910237573.5A
Other languages
Chinese (zh)
Other versions
CN102065228A (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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN200910237573.5A priority Critical patent/CN102065228B/en
Publication of CN102065228A publication Critical patent/CN102065228A/en
Application granted granted Critical
Publication of CN102065228B publication Critical patent/CN102065228B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Systems (AREA)
  • Studio Circuits (AREA)

Abstract

The invention discloses a title generator for playing a general title file, which comprises an analysis module and a playing module, wherein the analysis module is used for analyzing a general title file received by the current system, the general title file is used as title basic attribute information of XML (Extensive Makeup Language) metadata and a title XML file generated according to a preset rule, the title basic attribute information is obtained from a source title file; and the playing module is used for playing corresponding titles in a describing mode supported by the current system. The invention can ensure the generality of the title production and broadcast in a networking producing and broadcasting system, and effectively lowers the cost.

Description

A kind of film titler for broadcasting general subtitle file
Technical field
The present invention relates to the technical field that video-audio program makes, particularly relating to a kind of film titler for broadcasting general subtitle file.
Background technology
By PC, film titler generally adds that the subtitle superposition card of specialty and corresponding software form, be used for stacking chart's word curtain in vision signal.Be widely used in radio, TV and film industries.
Along with the development of network technology, in current radio, TV and film industries, the program manufacturing-broadcasting system of most TV station also achieves networking gradually, in the program manufacturing-broadcasting system of this networking, multiple program production company has oneself film titler respectively, the software of oneself is adopted to make captions according to the describing mode oneself defined and broadcast respectively, in this case, certain company often can not isolate the captions that another company makes, oneself again can only make captions, obviously too labor intensive, material resources.
Therefore, the technical problem needing those skilled in the art urgently to solve at present is exactly: how innovatively can propose a kind of film titler for broadcasting general subtitle file, to ensure the versatility of caption producing in networking manufacturing-broadcasting system, and effectively reduce costs.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of film titler for broadcasting general subtitle file, in order to ensure the versatility of caption producing in networking manufacturing-broadcasting system, and effectively reduces costs.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses a kind of film titler for broadcasting general subtitle file, comprising:
Parsing module, for resolving the general subtitle file that current system receives, described general subtitle file be according to as XML metadata captions base attribute information, according to presetting rule generate captions XML file, wherein, described captions base attribute information obtains from the subtitle file of source;
Broadcasting module, broadcasting corresponding captions for adopting the describing mode of current system support.
Preferably, described film titler, also comprises:
Judge module, for judging that whether the describing mode of each XML metadata is the describing mode that current system is supported, if so, then triggering and broadcasting module, if not, then triggering modular converter;
Modular converter, for the describing mode of described XML metadata being converted to the describing mode that current system is supported, and triggers broadcast module.
Preferably, the base attribute information of described captions comprises:
The file description information of captions, the content of subtitle segment and display attribute information.
Preferably, described XML metadata comprises the subtitle file descriptor as an XML metadata, and, as content and the display attribute information of the subtitle segment of the 2nd XML metadata,
Preferably, described captions comprise character caption, title cartoon or roll titles.
Compared with prior art, the present invention has the following advantages:
The present invention by according to as XML metadata captions base attribute information, according to presetting rule generate captions XML file resolve, obtain each XML metadata and describing mode thereof, and when described describing mode is the describing mode of current system support, broadcast corresponding captions.Because captions XML file is a kind of general data describing mode, realize not only simple, the separation record and broadcast of a large amount of dialogue libretto class captions in practical application can also be supported, and data volume is very little, be easy to store transmission, and this file structure also supports that multistage is deposited, thus effective tissue of a large amount of dialogue libretto content can be adapted to;
Moreover, unify the standard that different program production company make captions due to the present invention, the mode of regulation can have been adopted to be separated to captions, thus expending without the need to too much human and material resources, effectively reduce cost.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of a kind of film titler embodiment 1 for broadcasting general subtitle file of the present invention;
Fig. 2 is the structured flowchart of a kind of film titler embodiment 2 for broadcasting general subtitle file of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
The present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: multicomputer system, server, network PC, minicom, mainframe computer, the distributed computing environment (DCE) comprising above any system or equipment etc.
The present invention can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the present invention in a distributed computing environment, in these distributed computing environment (DCE), be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
With reference to figure 1, showing the structured flowchart of a kind of film titler embodiment 1 for broadcasting general subtitle file of the present invention, specifically can comprise with lower module:
Parsing module 11, for resolving the general subtitle file that current system receives, described general subtitle file be according to as XML metadata captions base attribute information, according to presetting rule generate captions XML file, wherein, described captions base attribute information obtains from the subtitle file of source;
Broadcasting module 12, broadcasting corresponding captions for adopting the describing mode of current system support.
In a particular application, described film titler can broadcast demand according to program (as news), makes subtitle template, as title template, reporter's template etc.The titles such as the fileinfo of the describing mode recording caption that described subtitle template can adopt current subtitle to support, spatial cue and dynamic effect, and store in the mode of disk file, thus the source that formed subtitle file.
In embodiments of the present invention, the base attribute information of the captions extracted from the subtitle file of described source, then can be understood as the general information describing caption object.Specifically, the base attribute information of described captions can comprise: the file description information of captions, the content of subtitle segment and display attribute information.In practice, in the television system of the title of the format version number of such as subtitle file, character set that subtitle file uses, subtitle file, subtitle file support, subtitle file, the data of the subtitle file header such as quantity of subtitle segment all belong to the file description information of captions.
In addition, well known to a person skilled in the art it is that subtitle segment (Section) comprises content and the display information of one section of captions, containing multi-screen captions in one section.Captions show for unit successively according to screen (Screen), for Display on the same screen multi-language captions, often screen can comprise multiple captions block (Block), captions block Parameter N is the captions block in each screen, in subtitle file, N is unified to give the display properties such as font, font size, color and position.Pretend the content for the subtitle segment of another kind of base attribute information and display attribute information, specifically can comprise subtitle segment identification information, subtitle segment structural information, captions screen content information etc.
Be understandable that, namely indication captions XML file of the present invention refers to the captions XML file For All-purpose Use extracted from the subtitle file of source (captions base attribute information) being organized generation in XML mode.So-called XML (Extensible Markup Language) i.e. extend markup language, it is that a kind of simple data store language, uses a series of simple mark data of description.Each data structure above-mentioned is referred to as metadata (Element) according to the term of XML, nestedly can comprise multiple sub-metadata in metadata.Based on the description rule of this XML, in specific implementation, preferably can using described subtitle file descriptor as an XML metadata, using the content of subtitle segment and display attribute information as the 2nd XML metadata, by writing an XML metadata and the 2nd XML metadata in XML file respectively, the captions XML file that the present invention resolves can be organized as.
Such as, suppose that the nested sub-metadata of a described XML metadata comprises: television system Video Standard, subtitle segment quantity Section Count that subtitle file identification marking File ID, subtitle file format version File Version, character set numbering Code Page, the title Program of subtitle file that subtitle file uses, subtitle file are supported; The XML file of corresponding formation is as shown in following code:
<File Info>
<File ID>CCTV Subtitle Sequence File</File ID>
<File Version>1.0</Version>
<Code Page>UTF-16</Code Page>
<Program> practical work interview the 22nd phase </Program>
<Video Standard>HD_1080_25i</Video Standard>
<Section Count>2</Section Count>
</File Info>
The file then parsing subtitle file is called CCTV Subtitle Sequence File, subtitle file format version number is 1.0, current use UTF-16 character, and banner is " practical work interview the 22nd phase ", the television system supported is HD_1080_25i, and also has the content of 2 subtitle segment.
Being appreciated that namely content and the association attributes of above-mentioned 2 subtitle segment are defined in the 2nd XML metadata, namely obtaining the output of subtitle segment content according to corresponding definition by resolving the 2nd XML metadata.Due to the example more complicated of corresponding XML file, but essence is identical with the example of above-mentioned XML file, therefore is not repeated herein.
For the parsing of described XML file, any one mode of the prior art is adopted to generate corresponding resolver or analytical tool all can realize, such as, adopt DOM resolver to set up the tree structure data corresponding with XML file in internal memory, the mark of XML file, the content of text of mark, entity etc. all can be corresponding with certain node of the data of tree in internal memory.Use DOM resolver can operate by an application program node set in internal memory easily and carry out processing XML document, obtain the data needed for oneself.Certainly, aforesaid way be only used as example, the present invention to this without the need to restricting.
In specific implementation, all right embedded editor module of described film titler, to carry out editor, the amendment of captions XML file at any time, and the storage of supporting document.
With reference to figure 2, showing the structured flowchart of a kind of film titler embodiment 2 for broadcasting general subtitle file of the present invention, specifically can comprise with lower module:
Parsing module 21, for resolving the general subtitle file that current system receives, described general subtitle file be according to as XML metadata captions base attribute information, according to presetting rule generate captions XML file, wherein, described captions base attribute information obtains from the subtitle file of source;
Judge module 22, for judging that whether the describing mode of each XML metadata is the describing mode that current system is supported, if so, then triggering and broadcasting module 24, if not, then triggering modular converter 23;
Modular converter 23, for the describing mode of described XML metadata being converted to the describing mode that current system is supported, and triggers broadcast module 24;
Broadcasting module 24, broadcasting corresponding captions for adopting the describing mode of current system support.
The present embodiment, compared to the embodiment shown in Fig. 1, adds the process of describing mode in current system not support situation to XML metadata.Such as, what XML metadata adopted for the location expression mode of character in captions block is the definition of relative coordinate system, and the support of current subtitle machine is the definition of absolute coordinate system, in the present embodiment, then first by this character position from after the definition of relative coordinate system is converted to the definition of absolute coordinate system, then to broadcast.Namely when resolving described XML file, if find, current system does not support the describing mode of XML metadata in described XML file, then after first its being converted to the describing mode of current system support, then broadcast corresponding captions.
It should be noted that, only for the record and broadcast of character telltale title file mechanism in this manual, in specific implementation, record and broadcast of the present invention mechanism can also be adopted for title cartoon file, roll titles file, such as, for roll titles file, extract the base attribute of its rolling time, roll mode, then generating XML file as metadata or sub-metadata, relevant captions can be made when broadcasting to export according to the attribute such as rolling time, roll mode by resolving this XML file.
What each embodiment in this specification stressed is all the difference with other embodiments, between each embodiment identical similar part mutually see.
Above a kind of film titler for broadcasting general subtitle file provided by the present invention is described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (4)

1. the film titler for broadcasting general subtitle file, is characterized in that, comprising:
Parsing module, for resolving the general subtitle file that current system receives, described general subtitle file be according to as XML metadata captions base attribute information, according to presetting rule generate captions XML file, wherein, described captions base attribute information obtains from the subtitle file of source;
Judge module, for judging that whether the describing mode of each XML metadata is the describing mode that current system is supported, if so, then triggering and broadcasting module, if not, then triggering modular converter;
Modular converter, for the describing mode of described XML metadata being converted to the describing mode that current system is supported, and triggers broadcast module;
Broadcasting module, broadcasting corresponding captions for adopting the describing mode of current system support.
2. film titler as claimed in claim 1, it is characterized in that, the base attribute information of described captions comprises:
The file description information of captions, the content of subtitle segment and display attribute information.
3. film titler as claimed in claim 2, it is characterized in that, described XML metadata comprises the subtitle file descriptor as an XML metadata, and, as content and the display attribute information of the subtitle segment of the 2nd XML metadata,
4. film titler as claimed in claim 1, it is characterized in that, described captions comprise character caption, title cartoon or roll titles.
CN200910237573.5A 2009-11-12 2009-11-12 Title generator for playing general title file Expired - Fee Related CN102065228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910237573.5A CN102065228B (en) 2009-11-12 2009-11-12 Title generator for playing general title file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910237573.5A CN102065228B (en) 2009-11-12 2009-11-12 Title generator for playing general title file

Publications (2)

Publication Number Publication Date
CN102065228A CN102065228A (en) 2011-05-18
CN102065228B true CN102065228B (en) 2015-07-08

Family

ID=44000309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910237573.5A Expired - Fee Related CN102065228B (en) 2009-11-12 2009-11-12 Title generator for playing general title file

Country Status (1)

Country Link
CN (1) CN102065228B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739979B (en) * 2011-09-01 2017-11-10 新奥特(北京)视频技术有限公司 The general packaging method and system of a kind of subtitle template
CN102427512A (en) * 2011-10-10 2012-04-25 中央电视台 General exchangeable subtitle generating and multiplexing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914912A (en) * 2004-02-03 2007-02-14 Lg电子株式会社 Text subtitle decoder and method for decoding text subtitle streams
CN101111898A (en) * 2005-02-25 2008-01-23 株式会社东芝 Content reproduction apparatus and subtitle reproduction method
CN101388969A (en) * 2008-09-10 2009-03-18 新奥特(北京)视频技术有限公司 On-line playbill driven multiple channel subtitle editing and playing method
CN101452723A (en) * 2008-10-16 2009-06-10 北京光线传媒有限公司 Media file playing method, playing system and media player

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914912A (en) * 2004-02-03 2007-02-14 Lg电子株式会社 Text subtitle decoder and method for decoding text subtitle streams
CN101111898A (en) * 2005-02-25 2008-01-23 株式会社东芝 Content reproduction apparatus and subtitle reproduction method
CN101388969A (en) * 2008-09-10 2009-03-18 新奥特(北京)视频技术有限公司 On-line playbill driven multiple channel subtitle editing and playing method
CN101452723A (en) * 2008-10-16 2009-06-10 北京光线传媒有限公司 Media file playing method, playing system and media player

Also Published As

Publication number Publication date
CN102065228A (en) 2011-05-18

Similar Documents

Publication Publication Date Title
CN102779167B (en) The method and system of display web page in the terminal
CN102065234B (en) Caption producing and broadcasting method and system based on distributive type caption processing system
US20070198590A1 (en) Mpv file creating method and appartus, and storage medium therefor
CN103353878A (en) Method for displaying files of different file formats in webpage
US20190286684A1 (en) Reception device, information processing method in reception device, transmission device, information processing device, and information processing method
WO2016032080A1 (en) Chart conversion system using metadata and method therefor
CN102917258A (en) Video playing method, terminal and system based on video contents
CN101908052A (en) Making method and device of multimedia program
CN105007539A (en) HTML template-based method, equipment and system for releasing graphics and text information via television
CN111611776B (en) Method and device for compatible edition flow document content and supporting synchronous reading
CN102118643B (en) Network subtitle playing system and method
CN103024564B (en) IPTV platform EPG page visual development and automatic generation method
CN102065228B (en) Title generator for playing general title file
CN102065230B (en) Networked caption manufacturing and broadcasting system
CN101909047A (en) Method and device for acquiring multimedia programs
CN106951405B (en) Data processing method and device based on typesetting engine
Sarkis et al. A multi-screen refactoring system for video-centric web applications
CN102065235B (en) Method and device for generating universal subtitle
CN102065229B (en) Method and device for manufacturing and broadcasting universal caption
CN102065236B (en) Fabricating method and device for subtitle file
KR102274313B1 (en) A method and apparatus for automatically converting web content to video content
CN104683883A (en) Method and device for generating playing strategy
CN102065233B (en) Caption generator
CN115879417A (en) Media editing method, device, computer and readable storage medium
CN102118582A (en) Subtitle broadcasting device with separated production and broadcast and broadcasting method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150708

Termination date: 20161112

CF01 Termination of patent right due to non-payment of annual fee