CN102739975A - Method and system for realizing dynamic two-dimensional subtitle through data array - Google Patents

Method and system for realizing dynamic two-dimensional subtitle through data array Download PDF

Info

Publication number
CN102739975A
CN102739975A CN201110126817XA CN201110126817A CN102739975A CN 102739975 A CN102739975 A CN 102739975A CN 201110126817X A CN201110126817X A CN 201110126817XA CN 201110126817 A CN201110126817 A CN 201110126817A CN 102739975 A CN102739975 A CN 102739975A
Authority
CN
China
Prior art keywords
unit
data array
resolution
special efficacy
caption window
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.)
Granted
Application number
CN201110126817XA
Other languages
Chinese (zh)
Other versions
CN102739975B (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.)
Beijing Jinsong Chuangyi Technology Co.,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 CN201110126817.XA priority Critical patent/CN102739975B/en
Publication of CN102739975A publication Critical patent/CN102739975A/en
Application granted granted Critical
Publication of CN102739975B publication Critical patent/CN102739975B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Circuits (AREA)

Abstract

The invention discloses a method and a system for realizing a dynamic two-dimensional subtitle through a data array, mainly relating to the making and processing of a special subtitle effect in the field of broadcast television program making and broadcasting. The method comprises the following steps of: 1) determining a subtitle window resolution; 2) establishing a system process array unit according to the subtitle window resolution, and recording unit assignment corresponding to each frame during the special effect process in the unit; 3) establishing a system special subtitle effect data array unit databank in which a frame variable is used as a key word; and 4) reading the databank sequentially in accordance with the order of frames. The system comprises a subtitle window information reading unit, a special effect data array generating unit, a special effect data array unit databank establishing unit and a frame reading unit. According to the method and the system, selections for setting the resolution are provided for a user; subtitle window files with the same size and same resolution can be set up flexibly; by establishing the special effect data array, the actual pixel attribute change condition of the subtitle window is recoded, thereby accomplishing the establishment of the corresponding databank; for the subtitle window which is set up, the assignment may not be calculated; a duty ratio optimizing method is provided; and the pixel on which the assignment is not carried out in the subtitle window can be separated from the whole databank to be assigned uniformly, and thus the assignment number of the pixels in the actual subtitle window is reduced.

Description

A kind of method and system that realize the Dynamic Two-dimensional captions through data array
Technical field
The present invention relates to making of program captions and broadcast and correlative technology field, relate in particular to a kind of method and system that realize the Dynamic Two-dimensional captions through data array.
Background technology
In existing program making and broadcast and correlative technology field, in the process to the program material making, in order better literal to be showed; Need a large amount of captions to synthesize, particularly in large-scale 3D film, material are made and play, in order to obtain better effect; Usually need in captions, insert special effects, improve constantly, occur 3D effect captions stunt successively along with what stunt was required; 3D captions stunt need be calculated lot of data in implementation procedure, and will carry out great amount of calculation by the GPU of graphic display card usually, in order to obtain the picture of high-quality; To the graphic operation processing speed, call the GPU function so hardware is had higher requirement because calculating can relate to, in the prior art; Film titler in making, playing process, provide hardware and software environment preferably in 3D captions special efficacy, and handles the restriction that the material processing speed receives the GPU disposal ability; And when playing, also there is a same requirement; In 3D captions building-up process, because handled a large amount of image files, so file needs bigger memory space and spatial cache.
Particularly in captions metamorphic animation manufacturing process, because need play order according to frame, every frame picture is calculated, therefore increased amount of calculation, particularly when resolution requirement was higher, problem was particularly outstanding.
Between above situation, in realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
Be out of shape in the making, in building-up process owing to need jumbo memory space to reach the speed of service fast at the 3D captions; So having relatively high expectations to graphic display card and GPU; In carrying out simple special efficacy building-up process, caused the waste of system, simultaneously; Also there are many-sided restrictions such as the speed of service and disposal ability for playback equipment, give the making of 3D captions distortion special efficacy and use generation to come restriction.
Simultaneously; In existing captions metamorphic animation processing procedure; Amount of calculation is directly related with the resolution of caption window, in high-resolution, large-area captions image processing process, can take a large amount of system resource; And because computational speed causes the captions generated time longer, situation about can not satisfy the demand.
Summary of the invention
To deficiency of the prior art; Reach the technical problem that the present invention will solve; The present invention provides a kind of method and system through data array realization Dynamic Two-dimensional captions, is used for 3D special efficacy captions being out of shape special efficacy manufacturing process at film titler, and in special efficacy generation and the broadcast.
A kind of method through data array realization Dynamic Two-dimensional captions, said step specifically comprises: 1) confirm caption window resolution; 2) set up system handles ordered series of numbers unit according to caption window resolution, and in said unit, write down the pairing unit of every frame assignment in the special efficacy process, become the special efficacy data array; 3) be that system special efficacy data array cell data storehouse set up in keyword with the frame variable; 4) with the frame be order, the order reading database.
Preferably, concrete steps comprise in the said step 1): 11) obtain the parameters of basic dimensions of caption window, and obtain user preset resolution; 12) through the parameters of basic dimensions of said caption window, obtain ultimate resolution; 13) whether judges presets resolution greater than said ultimate resolution, if confirm that then ultimate resolution is a caption window resolution, otherwise, confirm as caption window resolution according to user preset resolution.
Preferably, said parameters of basic dimensions comprises: distortion caption window length value X 1, distortion caption window width value Y 1
Preferably, comprise at least in the said special efficacy data array: special efficacy title, frame variable information.
Preferably, also comprise in the concrete steps said step 2): 2A) duty ratio optimization;
Preferably, said duty ratio optimization concrete steps comprise: 2A1) assignment is unified in the ordered series of numbers unit that does not have attribute change in the special efficacy data array; 2A2) above-mentioned unified assignment unit is set up duty ratio separately and optimize database.
Preferably, said step 4) can also comprise: at first duty ratio is optimized database and unify assignment.
The present invention provides a kind of system through data array realization Dynamic Two-dimensional captions, and specifically comprise: the unit is set up, the frame reading unit in caption window information reading unit, special efficacy data array generation unit, special efficacy data array cell data storehouse.Said caption window information reading unit is used to obtain definite caption window resolution; Said special efficacy data array generation unit is used for setting up system handles ordered series of numbers unit according to caption window resolution; And in said unit the pairing unit of every frame assignment in the record special efficacy process; Become the special efficacy data array, it is that system special efficacy data array cell data storehouse set up in keyword that said special efficacy data array cell data storehouse sets up that the unit is used for the frame variable.
Wherein, it is order that said frame reading unit is used for the frame, the order reading database.
Above technical scheme can find out that the present invention has the following advantages:
At first, the selection that the present invention can provide the user that resolution is set to same size, same resolution caption window file, can be set more flexibly;
Secondly, the present invention is through setting up the special efficacy data array, thus the pixel property situation of change in the actual caption window of record, thus accomplish the foundation of institute's correspondence database, to the caption window that configures, can realize disregarding the arithmetic talent value.
At last, the present invention provides the duty ratio optimization method, thereby the pixel of not carrying out assignment in the caption window is therefrom separated in the overall data storehouse, unifies assignment, thereby has reduced the assignment quantity of actual caption window interior pixel.
Description of drawings
Fig. 1 is a kind of method sketch map of realizing the Dynamic Two-dimensional captions through data array of the present invention;
Fig. 2 is a kind of system schematic that realizes the Dynamic Two-dimensional captions through data array of the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, complete description; Obvious described embodiment only is a part of embodiment of the present invention, is not whole embodiment, based on the embodiment among the present invention; Those of ordinary skills are not paying the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment one:
See also Fig. 1, the inventive method first embodiment, a kind of method that realizes the Dynamic Two-dimensional captions through data array:
At first, confirm caption window resolution, concrete grammar is: obtain the parameters of basic dimensions of caption window, wherein, distortion caption window length value X1, distortion caption window width value Y1;
And obtain user preset resolution, through the parameters of basic dimensions of said caption window, obtain ultimate resolution; Thereby whether the preset resolution of judges is greater than said ultimate resolution, if then definite ultimate resolution is a caption window resolution, otherwise, confirm as caption window resolution according to user preset resolution.
Afterwards, set up system handles ordered series of numbers unit, and in said unit, write down the pairing unit of every frame assignment in the special efficacy process, become the special efficacy data array according to caption window resolution; Special efficacy title, frame variable information.And can carry out duty ratio optimization; Detailed process does, assignment is unified in the ordered series of numbers unit that does not have attribute change in the special efficacy data array, after assignment, above-mentioned unified assignment unit set up duty ratio separately and optimizes database.
At last, be that system special efficacy data array cell data storehouse set up in keyword with the frame variable, when special efficacy is played up; Can with the frame order; The order reading database if in this process, there is duty ratio optimization, then at first optimized database to duty ratio and is unified assignment.
Embodiment two:
See also Fig. 2; The inventive method second embodiment; The present invention provides a kind of system through data array realization Dynamic Two-dimensional captions, and specifically comprise: the unit is set up, the frame reading unit in caption window information reading unit, special efficacy data array generation unit, special efficacy data array cell data storehouse.Said caption window information reading unit is used to obtain definite caption window resolution; Said special efficacy data array generation unit is used for setting up system handles ordered series of numbers unit according to caption window resolution; And in said unit the pairing unit of every frame assignment in the record special efficacy process; Become the special efficacy data array, it is that system special efficacy data array cell data storehouse set up in keyword that said special efficacy data array cell data storehouse sets up that the unit is used for the frame variable.
Wherein, it is order that said frame reading unit is used for the frame, the order reading database.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (12)

1. one kind is passed through the method that data array realizes the Dynamic Two-dimensional captions, and it is characterized in that: said step specifically comprises:
1) confirms caption window resolution;
2) set up system handles ordered series of numbers unit according to caption window resolution, and in said unit, write down the pairing unit of every frame assignment in the special efficacy process, become the special efficacy data array;
3) be that system special efficacy data array cell data storehouse set up in keyword with the frame variable;
4) with the frame be order, the order reading database.
2. the method described in claim 1, it is characterized in that: concrete steps comprise in the said step 1): 11) obtain the parameters of basic dimensions of caption window, and obtain user preset resolution;
12) through the parameters of basic dimensions of said caption window, obtain ultimate resolution;
13) whether judges presets resolution greater than said ultimate resolution, if confirm that then ultimate resolution is a caption window resolution, otherwise, confirm as caption window resolution according to user preset resolution.
3. the method described in claim 2, it is characterized in that: said parameters of basic dimensions comprises: distortion caption window length value X 1, distortion caption window width value Y 1
4. the method described in claim 1 is characterized in that: comprise at least in the said special efficacy data array: special efficacy title, frame variable information.
5. the method described in claim 1 is characterized in that: also comprise in the concrete steps said step 2):
2A) duty ratio optimization;
6. the method described in claim 5 is characterized in that: said duty ratio is optimized concrete steps and is comprised:
2A1) assignment is unified in the ordered series of numbers unit that does not have attribute change in the special efficacy data array;
2A2) above-mentioned unified assignment unit is set up duty ratio separately and optimize database.
7. the method described in claim 1, it is characterized in that: said step 4) can also comprise:
At first duty ratio is optimized database and unify assignment.
8. one kind is passed through the system that data array realizes the Dynamic Two-dimensional captions, and it is characterized in that: said system specifically comprises: the unit is set up, the frame reading unit in caption window information reading unit, special efficacy data array generation unit, special efficacy data array cell data storehouse.
9. system as claimed in claim 8 is characterized in that: said caption window information reading unit is used to obtain definite caption window resolution.
10. system as claimed in claim 8; It is characterized in that: said special efficacy data array generation unit is used for setting up system handles ordered series of numbers unit according to caption window resolution; And in said unit, write down the pairing unit of every frame assignment in the special efficacy process, become the special efficacy data array.
11. system as claimed in claim 8 is characterized in that: it is that system special efficacy data array cell data storehouse set up in keyword that said special efficacy data array cell data storehouse sets up that the unit is used for the frame variable.
12. system as claimed in claim 8 is characterized in that: it is order that said frame reading unit is used for the frame, the order reading database.
CN201110126817.XA 2011-05-17 2011-05-17 A kind of method and system that dynamic two-dimensional caption is realized by data array Active CN102739975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110126817.XA CN102739975B (en) 2011-05-17 2011-05-17 A kind of method and system that dynamic two-dimensional caption is realized by data array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110126817.XA CN102739975B (en) 2011-05-17 2011-05-17 A kind of method and system that dynamic two-dimensional caption is realized by data array

Publications (2)

Publication Number Publication Date
CN102739975A true CN102739975A (en) 2012-10-17
CN102739975B CN102739975B (en) 2017-09-12

Family

ID=46994676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110126817.XA Active CN102739975B (en) 2011-05-17 2011-05-17 A kind of method and system that dynamic two-dimensional caption is realized by data array

Country Status (1)

Country Link
CN (1) CN102739975B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4011401A (en) * 1975-04-25 1977-03-08 Sarkes Tarzian, Inc. Special effects generator capable of repositioning image segments
CN1503159A (en) * 2002-11-25 2004-06-09 ���µ�����ҵ��ʽ���� Short film generation/reproduction apparatus and method thereof
CN1615002A (en) * 2004-11-17 2005-05-11 威盛电子股份有限公司 Apparatus and method for detecting captions rolling
CN101027909A (en) * 2004-09-23 2007-08-29 汤姆森许可公司 Inserting metadata for trick play in video transport stream
CN101197948A (en) * 2007-12-04 2008-06-11 北京工业大学 Method for implementing multiple special effects of icon and subtitling in video
CN102055912A (en) * 2009-10-29 2011-05-11 北京中星微电子有限公司 Video application system, video special effect processing system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4011401A (en) * 1975-04-25 1977-03-08 Sarkes Tarzian, Inc. Special effects generator capable of repositioning image segments
CN1503159A (en) * 2002-11-25 2004-06-09 ���µ�����ҵ��ʽ���� Short film generation/reproduction apparatus and method thereof
CN101027909A (en) * 2004-09-23 2007-08-29 汤姆森许可公司 Inserting metadata for trick play in video transport stream
CN1615002A (en) * 2004-11-17 2005-05-11 威盛电子股份有限公司 Apparatus and method for detecting captions rolling
CN101197948A (en) * 2007-12-04 2008-06-11 北京工业大学 Method for implementing multiple special effects of icon and subtitling in video
CN102055912A (en) * 2009-10-29 2011-05-11 北京中星微电子有限公司 Video application system, video special effect processing system and method

Also Published As

Publication number Publication date
CN102739975B (en) 2017-09-12

Similar Documents

Publication Publication Date Title
CN103440612A (en) Image processing method and device in GPU vitualization
TW200803464A (en) Method and apparatus for scheduling the processing of multimedia data in parallel processing systems
CN105307028A (en) Video editing method and device specific to video materials of plurality of lenses
CN111556325A (en) Audio and video combined rendering method, medium and computer equipment
CN102959947B (en) Image synthesizing device and picture synthesis method
CN103593156A (en) Three-dimensional panoramic display method and device
CN102769732A (en) Method for converting video fields
CN105898320A (en) Panorama video decoding method and device and terminal equipment based on Android platform
CN104506920A (en) Method and device for playing omnimedia data information
CN102739975A (en) Method and system for realizing dynamic two-dimensional subtitle through data array
CN104253807A (en) Media resource control method and device
CN104185085B (en) A kind of VOD method and device
CN102739976A (en) Method and system for realizing dynamic two-dimensional subtitle of shadow
CN101521833A (en) Processing method and processing device of transport stream for test
CN103455474A (en) Editing method and system of image materials
CN114157895A (en) Video processing method and device, electronic equipment and storage medium
CN102752522A (en) Method and system for later stage edition of videos
CN105049929A (en) Method and device for video rendering
CN102724425A (en) Television image and text template broadcasting method
CN101656851B (en) Method and device for displaying program information
US20060115150A1 (en) Calculation method of a cumulative histogram
CN1698371A (en) Method for resizing images using the inverse discrete cosine transform
CN102638644A (en) Method for synchronous display
CN102752536A (en) Method for playing television image-text measuring screen
CN103064861A (en) Method and device for previewing media files and electronic devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211216

Address after: 100195 room 104, floor 1, building 1, courtyard 131, West Fourth Ring North Road, Haidian District, Beijing

Patentee after: Beijing Jinsong Chuangyi Technology Co.,Ltd.

Address before: 100195 new technology building, 49 Wukesong Road, Haidian District, Beijing

Patentee before: China Digital Video (Beijing) Co.,Ltd.

TR01 Transfer of patent right