CN101489052A - Subtitle data processing method and apparatus - Google Patents

Subtitle data processing method and apparatus Download PDF

Info

Publication number
CN101489052A
CN101489052A CNA2008100561532A CN200810056153A CN101489052A CN 101489052 A CN101489052 A CN 101489052A CN A2008100561532 A CNA2008100561532 A CN A2008100561532A CN 200810056153 A CN200810056153 A CN 200810056153A CN 101489052 A CN101489052 A CN 101489052A
Authority
CN
China
Prior art keywords
data
caption
subtitling
image data
effective coverage
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
CNA2008100561532A
Other languages
Chinese (zh)
Other versions
CN101489052B (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.)
National Source Coding Center Digital Audio And Video Frequency Technology (beijing) Co Ltd
CHINA NETCOM BROADBAND SERVICES APPLICATION NATIONAL ENGINEERING LAB Co Ltd
Original Assignee
National Source Coding Center Digital Audio And Video Frequency Technology (beijing) Co Ltd
CHINA NETCOM BROADBAND SERVICES APPLICATION NATIONAL ENGINEERING LAB Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National Source Coding Center Digital Audio And Video Frequency Technology (beijing) Co Ltd, CHINA NETCOM BROADBAND SERVICES APPLICATION NATIONAL ENGINEERING LAB Co Ltd filed Critical National Source Coding Center Digital Audio And Video Frequency Technology (beijing) Co Ltd
Priority to CN2008100561532A priority Critical patent/CN101489052B/en
Publication of CN101489052A publication Critical patent/CN101489052A/en
Application granted granted Critical
Publication of CN101489052B publication Critical patent/CN101489052B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Systems (AREA)

Abstract

The invention discloses a subtitling data handling method and an apparatus. The method comprises: acquiring the subtitling data and a subtitling control data; acquiring an effective zone of a subtitling bitmap; re-generating the subtitling image data according to the effective zone and modifying the subtitling control data; synthesizing the re-generated subtitling image data and the modified subtitling control data to a subtitling stream data and outputting the data. The apparatus comprises: a subtitling stream data analytical element for acquiring the subtitling image data and the subtitling control data; an effective zone identification unit for acquiring the effective zone of the subtitling bitmap; a tailoring synthesis unit for re-generating the subtitling image data according to the effective zone, and modifying the subtitling control data; an output unit for synthesizing the re-generated subtitling image data and modified subtitling control data to the subtitling stream data and outputting the data. The invention reduces the subtitling data bulk, improves a network band-width use ratio of an applied system and hoists the efficiency of the subtitling data following handling unit.

Description

The processing method of caption data and device
Technical field
The present invention relates to a kind of processing method and device of caption data, especially a kind of processing method and device of caption data being cut out processing.
Background technology
Multiplex audio frequency, video flowing have high requirements for transmission bandwidth, therefore, many methods having occurred compresses the data of audio frequency and video, and then transmission, output treating capacity with the decoding that reduces volume of transmitted data and terminal, but in the prior art, through the audio frequency of overcompression, the possibility that video has not reduced substantially again.
Caption data and video flowing transmit together, processing caption data method of the prior art, directly extract caption data from video flowing, strange field data in the frame caption data and even field data are synthesized, direct then and this frame image shows together.
Captions display processing method of the prior art does not effectively compress processing to the caption data amount, has a large amount of redundant datas in the caption data, for example, and the spacing between row and the row etc.; Existing subtitle data encoding application model is encoded entire image fully, though can reduce certain data volume, does not reach the most efficiently and uses, and for caption data, also has very big compression stroke.
Summary of the invention
The processing method and the device that the purpose of this invention is to provide a kind of caption data reducing the caption data amount of caption data transmission quantity and decoding terminals, and then improve the resource consumption and the operational efficiency of whole video system.
For achieving the above object, the invention provides a kind of processing method of caption data, comprising:
The caption stream data are resolved, obtain caption image data and captions control data;
The caption image data are discerned, obtained the effective coverage of subtitle bitmap;
Regenerate the caption image data according to described effective coverage, and revise the captions control data;
With described caption image data that regenerate and the synthetic caption stream data of amended captions control data, and output.
The present invention also provides a kind of processing unit of caption data, comprising:
Caption stream data parsing unit is used for the caption stream data are resolved, and obtains caption image data and captions control data;
The effective coverage recognition unit is used for the caption image data are discerned, and obtains the effective coverage of subtitle bitmap;
Cut out synthesis unit, be used for regenerating the caption image data, and revise the captions control data according to described effective coverage;
Output unit, with described caption image data that regenerate and the synthetic caption stream data of amended captions control data, and output.
As shown from the above technical solution, the present invention has reduced the caption data amount by the processing of cutting out to caption data, has improved the network bandwidth utilance of application system, has reduced the caption data amount of decoding terminals, has promoted the efficient of caption data subsequent treatment unit.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the flow chart of the processing method of the embodiment of the invention one caption data;
Fig. 2 is the structural representation of the processing unit of the embodiment of the invention two caption datas.
Embodiment
Embodiment one
The captions demonstration and the image displaying principle of terminal equipment are similar, all are to be divided into strange two of idol field to carry out the interlacing scan demonstration, and caption data is generally encoded respectively and fluidisation to the even field data in strange field respectively.
Present embodiment relates to a kind of processing method of caption data, as shown in Figure 1, mainly comprises the steps:
Step 11, the caption stream data are resolved, obtain caption image data and captions control data;
Include the multiframe caption data in the caption stream data, each frame caption data comprises two parts content: captions view data and captions control data.The captions view data mainly is with the data behind the subtitle bitmap coding, these data are divided into two, are respectively even field data piece and strange field data piece, and this two blocks of data is decoded respectively will obtain the bitmap that two interlacing show, the bitmap that two interlacing are shown merges formation, just complete subtitle bitmap.Captions control data essential record data such as subtitle bitmap size, color, displaing coordinate initial point, demonstration time, odd and even data block boundary.
Step 12, the caption image data are discerned, obtained the effective coverage of subtitle bitmap;
Subtitle bitmap often comprises a large amount of useless transparent regions, and this class zone is redundant, and shows to terminal and to have brought too much amount of calculation, has reduced data processing efficiency, and present embodiment is by identifying the transparent region that can reduce, and then reduces data redundancy.
Concrete recognition methods can identify transparent row by the parsing to strange field, even field data piece line data, obtains effective rectangular area in nontransparent zone then by statistical computation.
Step 13, regenerate the caption image data, and revise the captions control data according to described effective coverage;
This step can be specially: the effective rectangular area data to strange field, even field data piece are extracted, and revise the captions control data then, and promptly the subtitle bitmap size and the origin of coordinates, odd and even data block boundary three item number certificates form new caption frame.
Step 14, with the synthetic caption stream data of the described caption image data that regenerate and amended captions control data, and output.
By in the present embodiment to the processing of cutting out of caption data, show at terminal effect that shows and the image of not cutting out at last in full accord, and data volume decreased average 35%, the terminal amount of calculation also significantly reduces.
In the present embodiment, before step 1, can also comprise:
Step 10, from program stream data, extract the caption stream data;
Caption stream mainly comes from the sub data flow in the private data stream of program stream, and this data flow can be carried a plurality of caption stream, thereby comes the type and the caption stream ID of identification caption stream to discern a plurality of caption stream by this data flow load first byte.
Embodiment two
Present embodiment relates to a kind of processing unit of caption data, as shown in Figure 2, comprising:
Caption stream data parsing unit 1 is used for the caption stream data are resolved, and obtains caption image data and captions control data;
Effective coverage recognition unit 2 is used for the caption image data are discerned, and obtains the effective coverage of subtitle bitmap;
Cut out synthesis unit 3, be used for regenerating the caption image data, and revise the captions control data according to described effective coverage;
Output unit 4, with described caption image data that regenerate and the synthetic caption stream data of amended captions control data, and output.
Wherein, this device can further include: the caption stream data extracting unit is used for extracting the caption stream data from program stream data.
Wherein, described the caption image data are discerned, the effective coverage that obtains subtitle bitmap can be specially:
Line data in dual field data block and the strange field data piece is resolved, and identifies the transparent row in the caption image, obtains nontransparent zone in the described caption image by statistical computation then.
Describedly regenerate the caption image data, and revise the captions control data and can be specially according to described effective coverage:
Respectively the data in the nontransparent zone of strange field data piece and even field data piece are extracted, revised subtitle bitmap size, the origin of coordinates and odd and even data block boundary data in the captions control data then.
By the foregoing description as can be seen, the processing of cutting out by to caption data further reduces the caption data amount, can improve the network bandwidth utilance of application system, promotes the efficient of caption data subsequent treatment unit.
The processing caption data method of the embodiment of the invention and device are by effective coverage identification, tailoring technique, can be applied to multitone rail, multiword curtain AVS (Audio Video coding Standard, the audio frequency and video coding standard) captions of IPTV (IPTV) system advance to handle, but be not limited in the said system, thereby reduction data traffic, alleviate the terminal processes load, simultaneously with the correctness that can also guarantee that terminal output captions show, thus the elevator system application space.
One of ordinary skill in the art will appreciate that: all or part of step and the processing unit of realizing the embodiment of said method and device, can finish by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.

Claims (10)

1, a kind of processing method of caption data is characterized in that, comprising:
The caption stream data are resolved, obtain caption image data and captions control data;
The caption image data are discerned, obtained the effective coverage of subtitle bitmap;
Regenerate the caption image data according to described effective coverage, and revise the captions control data;
With described caption image data that regenerate and the synthetic caption stream data of amended captions control data, and output.
2, method according to claim 1 is characterized in that, described effective coverage is specially the nontransparent zone in the described subtitle bitmap.
3, method according to claim 2 is characterized in that, described the caption image data is discerned, and the effective coverage that obtains subtitle bitmap is specially:
Line data in dual field data block and the strange field data piece is resolved, and identifies the transparent row in the subtitle bitmap, obtains nontransparent zone in the described subtitle bitmap by statistical computation then.
4, method according to claim 3 is characterized in that, describedly regenerates the caption image data according to described effective coverage, and revises the captions control data and be specially:
Respectively the data in the nontransparent zone of strange field data piece and even field data piece are extracted, revised subtitle bitmap size, the origin of coordinates and odd and even data block boundary data in the captions control data then.
5, method according to claim 1 is characterized in that, described the caption stream data is resolved, and obtains caption image data and captions control data and also comprises before: extract the caption stream data from program stream data.
According to the described method of the arbitrary claim of claim 1 to 5, it is characterized in that 6, described effective coverage is a rectangle.
7, a kind of processing unit of caption data is characterized in that, comprising:
Caption stream data parsing unit is used for the caption stream data are resolved, and obtains caption image data and captions control data;
The effective coverage recognition unit is used for the caption image data are discerned, and obtains the effective coverage of subtitle bitmap;
Cut out synthesis unit, be used for regenerating the caption image data, and revise the captions control data according to described effective coverage;
Output unit, with described caption image data that regenerate and the synthetic caption stream data of amended captions control data, and output.
8, device according to claim 7 is characterized in that, also comprises: the caption stream data extracting unit is used for extracting the caption stream data from program stream data.
9, device according to claim 7 is characterized in that, described the caption image data is discerned, and the effective coverage that obtains subtitle bitmap is specially:
Line data in dual field data block and the strange field data piece is resolved, and identifies the transparent row in the caption image, obtains nontransparent zone in the described caption image by statistical computation then.
10, device according to claim 7 is characterized in that, describedly regenerates the caption image data according to described effective coverage, and revises the captions control data and be specially:
Respectively the data in the nontransparent zone of strange field data piece and even field data piece are extracted, revised subtitle bitmap size, the origin of coordinates and odd and even data block boundary data in the captions control data then.
CN2008100561532A 2008-01-14 2008-01-14 Subtitle data processing method and apparatus Expired - Fee Related CN101489052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100561532A CN101489052B (en) 2008-01-14 2008-01-14 Subtitle data processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100561532A CN101489052B (en) 2008-01-14 2008-01-14 Subtitle data processing method and apparatus

Publications (2)

Publication Number Publication Date
CN101489052A true CN101489052A (en) 2009-07-22
CN101489052B CN101489052B (en) 2010-12-01

Family

ID=40891705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100561532A Expired - Fee Related CN101489052B (en) 2008-01-14 2008-01-14 Subtitle data processing method and apparatus

Country Status (1)

Country Link
CN (1) CN101489052B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082932A (en) * 2009-11-30 2011-06-01 新奥特(北京)视频技术有限公司 Method and device for updating subtitle in secondary software
CN105282397A (en) * 2014-07-22 2016-01-27 北京数码视讯科技股份有限公司 De-interlacing method and device for motioning subtitles
CN106063252A (en) * 2013-12-17 2016-10-26 英特尔公司 Techniques for processing subtitles
CN108572807A (en) * 2017-03-14 2018-09-25 深圳市中兴微电子技术有限公司 A kind of method and device reducing display controller bandwidth consumption

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100828354B1 (en) * 2003-08-20 2008-05-08 삼성전자주식회사 Apparatus and method for controlling position of caption
CN1992861A (en) * 2005-12-26 2007-07-04 财团法人工业技术研究院 Recording medium for storing subtitling data structure method for playing the subtitling data
CN1897652A (en) * 2006-05-30 2007-01-17 深圳创维-Rgb电子有限公司 Hidden-caption decoding method
CN101086834A (en) * 2006-06-06 2007-12-12 华为技术有限公司 A method for controlling display effect of caption and control device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082932A (en) * 2009-11-30 2011-06-01 新奥特(北京)视频技术有限公司 Method and device for updating subtitle in secondary software
CN102082932B (en) * 2009-11-30 2015-03-25 新奥特(北京)视频技术有限公司 Method and device for updating subtitle in secondary software
CN106063252A (en) * 2013-12-17 2016-10-26 英特尔公司 Techniques for processing subtitles
CN106063252B (en) * 2013-12-17 2020-06-05 英特尔公司 Apparatus and method for processing subtitle
CN105282397A (en) * 2014-07-22 2016-01-27 北京数码视讯科技股份有限公司 De-interlacing method and device for motioning subtitles
CN105282397B (en) * 2014-07-22 2019-03-29 北京数码视讯科技股份有限公司 Move the interlace-removing method and device of subtitle
CN108572807A (en) * 2017-03-14 2018-09-25 深圳市中兴微电子技术有限公司 A kind of method and device reducing display controller bandwidth consumption
US10796670B1 (en) 2017-03-14 2020-10-06 Sanechips Technology Co., Ltd. Method and device for reducing bandwidth consumption, display controller, and storage medium

Also Published As

Publication number Publication date
CN101489052B (en) 2010-12-01

Similar Documents

Publication Publication Date Title
CN107886560B (en) Animation resource processing method and device
US9325993B2 (en) Encoding or decoding method and apparatus
CN104540000A (en) Method for generating dynamic thumbnail and terminal
CN101489052B (en) Subtitle data processing method and apparatus
CN105659594A (en) Data processing apparatus for transmitting/receiving compressed pixel data groups of picture and indication information of pixel data grouping setting and related data processing method
CN102821275A (en) Data compression method, data compression device, data decompression method and data decompression device
CN102802021A (en) Method and device for editing multi-media data
CN102833463A (en) Picture processing method and picture processing equipment
EP2403263A3 (en) Encoding device and method, decoding device and method, editing device and method, recoding medium, and program
CN104575427A (en) High-compression-ratio lossless image compression method suitable for embedded system decoding
CN105323593A (en) Multimedia transcoding scheduling method and multimedia transcoding scheduling device
CN105141962B (en) A kind of Large Volume Data hidden method towards H.264/AVC video code flow
CN102647584A (en) Video file generation method and system
CN111200740A (en) Encoding method and encoder
CN105704215A (en) File sharing system and corresponding file sending and receiving method and device
CN112689194B (en) Functional machine video music matching method and device, terminal equipment and storage medium
CN104104897A (en) Mobile terminal video editing method and device
KR102313555B1 (en) System and method for 3D Model compression and decompression based on 3D Mesh
CN102047662A (en) Encoder
EP3170306B1 (en) Multilevel video compression, decompression, and display for 4k and 8k applications
CN204131646U (en) A kind of digital video signal decoder
CN101257590B (en) Coding, decoding method and device, display system
US10283094B1 (en) Run-length compression and decompression of media tiles
CN204377045U (en) A kind of network digital video camera carrying floor Presentation Function
CN109168008B (en) Cloud distribution-based massive traffic video information processing method

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: 20101201

Termination date: 20150114

EXPY Termination of patent right or utility model