CN102111571B - Method and device for broadcasting caption primitives - Google Patents
Method and device for broadcasting caption primitives Download PDFInfo
- Publication number
- CN102111571B CN102111571B CN200910244232.0A CN200910244232A CN102111571B CN 102111571 B CN102111571 B CN 102111571B CN 200910244232 A CN200910244232 A CN 200910244232A CN 102111571 B CN102111571 B CN 102111571B
- Authority
- CN
- China
- Prior art keywords
- pel
- broadcast
- queue
- polytype
- broadcasts
- 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
Links
Landscapes
- Studio Circuits (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a method and a device for broadcasting caption primitives, which is used for solving the problems that the real-time is not achieved when existing captions are broadcast and the unity for broadcasting multiple types of captions is not achieved. The method comprises the following steps: acquiring broadcasting primitives from a render queue in real time and rendering the acquired broadcasting primitives as well as adding the rendered broadcasting primitives to a broadcasting queue, wherein the broadcasting primitives comprise multiple types of primitives; and acquiring broadcasting primitives from the broadcasting queue in real time and broadcasting the broadcasting primitives in sequence, wherein the multiple types of broadcasting primitives are mixed into one-path signals for outputting. According to the method and device, the real-time for broadcasting the primitives is ensured, the fluency of broadcasting pictures is also ensured, and multiple types of primitives are broadcast on a signal caption machine in a mixed mode.
Description
Technical field
The present invention relates to caption technology field, particularly relates to a kind of captions pel broadcasting method and device.
Background technology
The making of program mainly comprises the making of video and the making of captions, and wherein the making of captions is completed by film titler usually.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.The feature of film titler is: in real time, need not generate, bright in luster, the loss of signal is little in superposition, is suitable for TV station's superposition station symbol, footmark, a left side fly advertisement etc.
The base unit that captions make is pel, and current film titler is when broadcasting title, and being all that elder generation is disposable plays up all broadcast pels, and then is broadcasted in order by all pels played up.Like this, same pel needs to wait for that all other pel has been played up and could broadcast after having played up, therefore the display of television image cannot reach real-time.Especially for the program of the real-time update such as stock consulting, when roll screen special efficacy is drawn at the process end, because stock market data dynamically update all in real time, so cannot ensure that it is up-to-date for broadcasting data.
And current separate unit film titler can only realize a kind of broadcast of primitive types.Because for different primitive types, as scene, roll screen, footmark, clock etc., there is independently distinctive broadcast mode separately, but different application caption playing software installed all respectively by current film titler, often kind of film titler can only broadcast according to a kind of the pel that mode broadcasts a type, and under same film titler platform, mixing simultaneously cannot broadcast polytype pel.Therefore, when needing to broadcast polytype pel in a program, multiple stage film titler equipment is needed just can to complete these work.Such as, the wall scroll caption playing in common scenarios needs a film titler, and the end draws rolling news to broadcast needs again a film titler, and TV station's footmark animation broadcasts also needs a film titler, and present quotation data also need a film titler.
In sum, in the real-time of caption playing and the uniformity of polymorphic type broadcast, also there is many defects in current film titler.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of captions pel broadcasting method and device, to solve the uniformity problem that existing caption playing cannot reach real-time and polymorphic type broadcast.
In order to solve the problem, the invention discloses a kind of captions pel broadcasting method, comprising:
Obtain from render-ahead queue in real time and broadcast pel and play up, add broadcast queue after playing up, described broadcast pel comprises polytype pel;
Real-time acquisition from broadcast queue is broadcasted pel and broadcasts in order, and wherein polytype broadcast pel is mixed into a road signal broadcast.
Preferably, described method also comprises:
The pel of preset polytype template pel and every type broadcasts mode;
Real-time acquisition broadcast information, and broadcast information is replaced corresponding template pel, generate and broadcast pel;
Broadcast pel is added render-ahead queue.
Wherein, when polytype broadcast pel is mixed into a road signal broadcast, broadcast according to respective broadcast mode respectively.
Preferably, described acquisition from render-ahead queue is in real time broadcasted pel and plays up, and adds broadcast queue and comprise after playing up:
Empty output target is obtained from chained list;
Obtain from render-ahead queue and broadcast pel;
Described broadcast pel is rendered into described output target;
Described output target is added broadcast queue.
Preferably, described polytype broadcast pel is mixed into a road signal and broadcasts and comprise:
Obtain from broadcast queue and export target, described output target comprises polytype broadcast pel;
Output target is mixed into output board card to broadcast.
Present invention also offers a kind of captions pel broadcast device, comprising:
Real-time rendering module, broadcast pel for obtaining from render-ahead queue in real time and play up, add broadcast queue after playing up, described broadcast pel comprises polytype pel;
Module is broadcasted in polymorphic type mixing, broadcasts pel for real-time acquisition from broadcast queue and broadcasts in order, and wherein polytype broadcast pel is mixed into a road signal broadcast.
Preferably, described device also comprises:
Polymorphic type pel storehouse, for arranging polytype template pel;
Pel broadcasts control module, broadcasts mode for the pel arranging every type;
Template replacement module, for obtaining broadcast information in real time, and replaces corresponding template pel by broadcast information, generates and broadcasts pel; Broadcast pel is added render-ahead queue.
Preferably, described real-time rendering module comprises:
First acquiring unit, for obtaining empty output target from chained list;
Second acquisition unit, broadcasts pel for obtaining from render-ahead queue;
Rendering unit, for being rendered into described output target by described broadcast pel;
Output unit, for adding broadcast queue by described output target.
Wherein, described polytype template pel comprises common captions pel, roll screen captions pel, present quotation pel, in real time picture pel and special efficacy captions pel.
Wherein, described device is arranged in separate unit film titler.
Compared with prior art, the present invention has the following advantages:
The present invention carries out in real time to playing up and broadcasting of pel.By arranging render-ahead queue and broadcasting queue, after film titler obtains broadcast information in real time and generates broadcast pel, put into render-ahead queue at once, rendering program constantly obtains the broadcast pel needing to play up from render-ahead queue, put into broadcast queue again after having played up, broadcast program constantly obtains from broadcast queue and broadcasts pel and broadcast in order.For same broadcast pel, just can enter after having played up at once and broadcast queue and broadcast, and not need to wait for that other all broadcast pels have all been played up to enter again and broadcast queue and wait for broadcast.Therefore, this invention ensures that the real-time that pel broadcasts, also ensure that the fluency broadcasting picture simultaneously.
And the present invention can also mix the polytype pel of broadcast on separate unit film titler.Separate unit film titler is provided with polymorphic type pel storehouse, during broadcast, polymorphic type pel may be mixed in in a road signal and exports, and achieves the unified of polymorphic type pel and broadcasts.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of captions pel broadcasting method described in the embodiment of the present invention;
Fig. 2 is the flow chart that in embodiment described in Fig. 1, pel is played up;
Fig. 3 is the flow chart that in embodiment described in Fig. 1, pel broadcasts;
Fig. 4 is the structure chart of a kind of captions pel broadcast device described in the embodiment 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 program very high for requirement of real-time broadcasts, and as the program of stock consulting class, the present invention proposes a kind of subtitle broadcasting method, can ensure the real-time that program broadcasts, and the mixing that separate unit film titler simultaneously can also be used to realize polymorphic type captions pel is broadcasted.
Be described in detail below by embodiment.
With reference to Fig. 1, it is the flow chart of a kind of captions pel broadcasting method described in the embodiment of the present invention.
Step 101, the pel of preset polytype template pel and every type broadcasts mode;
Make template process in, according to broadcast needs, each content that will broadcast is divided into dissimilar template pel respectively, customize inside template pel broadcast pel pattern, font size, color etc. attribute.Template pel comprises polytype, as common captions pel, roll screen captions pel, present quotation pel, in real time picture pel and special efficacy captions pel etc.
Meanwhile, the pel of every type has oneself distinctive broadcast mode, therefore also needs to arrange corresponding caption playing program to often kind of template pel, and namely each pel all calls corresponding broadcast program and broadcasts.
It should be noted that, said process is all complete in independent film titler, is different from the mode that the every platform film titler of prior art can only broadcast the pel of a type.
Step 102, obtains broadcast information in real time, and broadcast information is replaced corresponding template pel, generates and broadcasts pel;
It is real-time dynamic change that the places such as stock exchange push the transaction data of coming by satellite, and film titler needs this change of fast Acquisition, and the captions that real-time update is broadcasted.
Often kind of broadcast information can find corresponding template pel, utilizes broadcast information to replace corresponding template pel, just obtains the pel that can broadcast.
Step 103, adds render-ahead queue by broadcast pel;
Just render-ahead queue is put at once, to ensure real-time whenever pel is broadcasted in generation one.
Step 104, obtain from render-ahead queue in real time and broadcast pel and play up, add broadcast queue after playing up, described broadcast pel comprises polytype pel;
Play up control program can circulate from render-ahead queue take out broadcast pel play up, and put into broadcast queue wait for broadcast.Wherein, the broadcast pel in render-ahead queue may be various dissimilar pels.
Step 105, obtains in real time and broadcasts pel and broadcast in order from broadcast queue, and wherein polytype broadcast pel is mixed into a road signal broadcast.
Broadcast control program can circulate from broadcasting taking-up broadcast pel queue, and exported by the output board card of film titler.Described output board card is a hardware device in film titler, can referred to as title insert.Film titler is made up of computer, title insert and captions Software for producing three part.Captions Software for producing controls captions exactly and is added in which way on background frame, is the instrument mutual with user, does not have captions software, and user just has no way computer for controlling, just can not make captions.Title insert to allow background frame to input, and after overlapping text, the final equipment exported with credit video.
Wherein, for the various dissimilar broadcast pel broadcasted in queue, broadcast control program and by their Mixed design to output board card, and a road signal can be exported by board.And when picture is play, often kind of captions pel all can coordinate picture to broadcast according to the broadcast mode of oneself.
Above-mentioned handling process has following characteristics:
The first, provide two thread parallels execution and play up and broadcast process.By arranging render-ahead queue and broadcasting queue, after film titler obtains broadcast information in real time and generates broadcast pel, put into render-ahead queue at once, rendering program constantly obtains the broadcast pel needing to play up from render-ahead queue, put into broadcast queue again after having played up, broadcast program constantly obtains from broadcast queue and broadcasts pel and broadcast in order.For same broadcast pel, just can enter after having played up at once and broadcast queue and broadcast, and not need to wait for that other all broadcast pels have all been played up to enter again and broadcast queue and wait for broadcast.Therefore, this invention ensures that the real-time that pel broadcasts, also ensure that the fluency broadcasting picture simultaneously.
Second, polytype pel is mixed into a road signal by separate unit film titler and broadcasts, and be divided into multiple signals to broadcast by multiple stage film titler in prior art, therefore, present invention eliminates follow-up multiple signals overlap-add procedure process, in separate unit film titler, just achieve the unified of polymorphic type pel broadcast.
Said method needs the program of real-time update for broadcast contents such as stock consultings, can ensure the uniformity of real-time and the polymorphic type caption playing broadcasted.
Play up and broadcast process for above-mentioned, describe in detail respectively below by Fig. 2 and Fig. 3.
With reference to Fig. 2, it is the flow chart that pel is played up.
Step 201, obtains empty output target from chained list;
The output target of described sky refers to one piece of empty temporary memory space, for depositing rendering result.
Step 202, obtains and broadcasts pel from render-ahead queue;
Various types of broadcast pel is housed in described render-ahead queue.
Step 203, is rendered into described output target by described broadcast pel;
Keep in by current rendering result and export target.
Step 204, adds broadcast queue by described output target.
Send into by rendering result and broadcast queue, broadcasting in queue is wait for the data broadcasted.
Above-mentioned steps 201 to step 204 is processing procedures of an iterative cycles, constantly has broadcast pel to add, also constantly have and broadcast pel taking-up in render-ahead queue.
With reference to Fig. 3, it is the flow chart that pel broadcasts.
Step 301, obtain from broadcast queue and export target, described output target comprises polytype broadcast pel;
Step 302, is mixed into output board card and broadcasts by output target.
Above-mentioned steps 301 to step 302 is also the processing procedure of an iterative cycles, broadcasts in queue and constantly has broadcast pel to add, also constantly have and broadcast pel taking-up.One is broadcasted pel and just can directly broadcast after playing up, ensure that real-time.And, a few frame can also be shifted to an earlier date and play up, play up preparation as carried out five frames in advance to dissimilar broadcast pel, and the image frame played up is broadcasted in order in real time, ensure that the real-time of data, also ensure that the fluency broadcasting picture simultaneously.
For said method, present invention also offers corresponding device embodiment.
With reference to Fig. 4, it is the structure chart of a kind of captions pel broadcast device described in the embodiment of the present invention.
Described device is arranged in separate unit film titler, mainly comprises:
Real-time rendering module 41, broadcast pel for obtaining from render-ahead queue in real time and play up, add broadcast queue after playing up, described broadcast pel comprises polytype pel;
Module 42 is broadcasted in polymorphic type mixing, broadcasts pel for real-time acquisition from broadcast queue and broadcasts in order, and wherein polytype broadcast pel is mixed into a road signal broadcast.
Wherein, described polytype template pel comprises common captions pel, roll screen captions pel, present quotation pel, in real time picture pel and special efficacy captions pel etc.
Concrete, described real-time rendering module 41 can comprise further:
First acquiring unit, for obtaining empty output target from chained list;
Second acquisition unit, broadcasts pel for obtaining from render-ahead queue;
Rendering unit, for being rendered into described output target by described broadcast pel;
Output unit, for adding broadcast queue by described output target.
Preferably, described film titler can also comprise:
Polymorphic type pel storehouse 43, for arranging polytype template pel;
Pel broadcasts control module 44, broadcasts mode for the pel arranging every type;
Template replacement module 45, for obtaining broadcast information in real time, and replaces corresponding template pel by broadcast information, generates and broadcasts pel; Broadcast pel is added render-ahead queue.
Described device can mix the polytype pel of broadcast on separate unit film titler, and can ensure the real-time that pel broadcasts.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Above to a kind of captions pel broadcasting method provided by the present invention and device, be 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 (7)
1. a captions pel broadcasting method, is characterized in that, comprising:
The pel of preset polytype template pel and every type broadcasts mode;
Real-time acquisition broadcast information, and broadcast information is replaced corresponding template pel, generate and broadcast pel;
Broadcast pel is added render-ahead queue;
Obtain from render-ahead queue in real time and broadcast pel and play up, add broadcast queue after playing up, described broadcast pel comprises polytype pel;
Real-time acquisition from broadcast queue is broadcasted pel and broadcasts in order, and wherein polytype broadcast pel is mixed into a road signal broadcast.
2. method according to claim 1, is characterized in that:
When polytype broadcast pel is mixed into a road signal broadcast, broadcast according to respective broadcast mode respectively.
3. method according to claim 1, is characterized in that, described acquisition from render-ahead queue is in real time broadcasted pel and play up, and adds broadcast queue and comprise after playing up:
Empty output target is obtained from chained list;
Obtain from render-ahead queue and broadcast pel;
Described broadcast pel is rendered into described output target;
Described output target is added broadcast queue.
4. method according to claim 3, is characterized in that, described polytype broadcast pel is mixed into a road signal broadcast and comprises:
Obtain from broadcast queue and export target, described output target comprises polytype broadcast pel;
Output target is mixed into output board card to broadcast.
5. a captions pel broadcast device, is characterized in that, comprising:
Polymorphic type pel storehouse, for arranging polytype template pel;
Pel broadcasts control module, broadcasts mode for the pel arranging every type;
Template replacement module, for obtaining broadcast information in real time, and replaces corresponding template pel by broadcast information, generates and broadcasts pel; Broadcast pel is added render-ahead queue;
Real-time rendering module, broadcast pel for obtaining from render-ahead queue in real time and play up, add broadcast queue after playing up, described broadcast pel comprises polytype pel;
Module is broadcasted in polymorphic type mixing, broadcasts pel for real-time acquisition from broadcast queue and broadcasts in order, and wherein polytype broadcast pel is mixed into a road signal broadcast;
Described device is arranged in separate unit film titler.
6. device according to claim 5, is characterized in that, described real-time rendering module comprises:
First acquiring unit, for obtaining empty output target from chained list;
Second acquisition unit, broadcasts pel for obtaining from render-ahead queue;
Rendering unit, for being rendered into described output target by described broadcast pel;
Output unit, for adding broadcast queue by described output target.
7., according to the arbitrary described device of claim 5 to 6, it is characterized in that:
Described polytype template pel comprises common captions pel, roll screen captions pel, present quotation pel, in real time picture pel and special efficacy captions pel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910244232.0A CN102111571B (en) | 2009-12-28 | 2009-12-28 | Method and device for broadcasting caption primitives |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910244232.0A CN102111571B (en) | 2009-12-28 | 2009-12-28 | Method and device for broadcasting caption primitives |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102111571A CN102111571A (en) | 2011-06-29 |
CN102111571B true CN102111571B (en) | 2015-04-22 |
Family
ID=44175579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910244232.0A Expired - Fee Related CN102111571B (en) | 2009-12-28 | 2009-12-28 | Method and device for broadcasting caption primitives |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102111571B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856691B (en) * | 2014-03-13 | 2017-09-26 | 中央电视台 | Pack the broadcast control method and system of subitem |
CN111031393A (en) * | 2019-12-26 | 2020-04-17 | 广州酷狗计算机科技有限公司 | Video playing method, device, terminal and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1645916A (en) * | 2005-02-24 | 2005-07-27 | 威盛电子股份有限公司 | Device and method for detecting real-time captions rolling |
CN101483723A (en) * | 2008-01-11 | 2009-07-15 | 新奥特(北京)视频技术有限公司 | Method for performance guarantee of television subtitle playing apparatus based on diversity application |
-
2009
- 2009-12-28 CN CN200910244232.0A patent/CN102111571B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1645916A (en) * | 2005-02-24 | 2005-07-27 | 威盛电子股份有限公司 | Device and method for detecting real-time captions rolling |
CN101483723A (en) * | 2008-01-11 | 2009-07-15 | 新奥特(北京)视频技术有限公司 | Method for performance guarantee of television subtitle playing apparatus based on diversity application |
Non-Patent Citations (1)
Title |
---|
新闻直播***中字幕机备份及应急处理实例;杜春喜;《中国有线电视》;20060531(第5期);第465-466页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102111571A (en) | 2011-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4481166B2 (en) | Method and system enabling real-time mixing of composite and video images by a user | |
CN103905744B (en) | One kind renders synthetic method and system | |
US8401339B1 (en) | Apparatus for partitioning and processing a digital image using two or more defined regions | |
CN105578248B (en) | Fancy splicing playing method, device and system | |
US20180077469A1 (en) | Using a webpage to insert graphical elements into a video program stream | |
CN113778360B (en) | Screen projection method and electronic equipment | |
CN105100870A (en) | Screenshot method and terminal equipment | |
CN102739984A (en) | Method and system for realizing high-definition virtual scenery | |
CN110213640B (en) | Virtual article generation method, device and equipment | |
CN105915972A (en) | Virtual reality 4K video optimization method and device | |
CN102111571B (en) | Method and device for broadcasting caption primitives | |
CN106686405A (en) | Video rebroadcasting method and system | |
CN212137804U (en) | Point-to-point video splicing system | |
CN112312040B (en) | Video processor and display system | |
CN105808184A (en) | Method and device for displaying Android 2D (Two-dimensional) application image, and headset equipment | |
CN102111568B (en) | Method for drawing time-sharing tendency chart and character generator | |
Kim et al. | Design and implementation for interactive augmented broadcasting system | |
CN104284099A (en) | Large-screen display method and system based on multi-channel input | |
CN113301425A (en) | Video playing method, video playing device and electronic equipment | |
CN105191298A (en) | System for providing complex-dimensional content service using complex 2D-3D content file, method for providing said service, and complex-dimensional content file therefor | |
CN105704474A (en) | Image processing device and image processing method | |
CN102111572B (en) | A kind of polymorphic type captions pel broadcast device and broadcasting method thereof | |
CN109889765A (en) | Method for processing video frequency, video process apparatus and conference system | |
CN111913776B (en) | Content display method, device and equipment | |
CN214151678U (en) | Dual-screen different display system under android system |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150422 Termination date: 20161228 |