CN105491386B - A kind of format conversion method and device of video data - Google Patents

A kind of format conversion method and device of video data Download PDF

Info

Publication number
CN105491386B
CN105491386B CN201410482570.9A CN201410482570A CN105491386B CN 105491386 B CN105491386 B CN 105491386B CN 201410482570 A CN201410482570 A CN 201410482570A CN 105491386 B CN105491386 B CN 105491386B
Authority
CN
China
Prior art keywords
video data
frame video
intelligent information
information
frame
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.)
Active
Application number
CN201410482570.9A
Other languages
Chinese (zh)
Other versions
CN105491386A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201410482570.9A priority Critical patent/CN105491386B/en
Publication of CN105491386A publication Critical patent/CN105491386A/en
Application granted granted Critical
Publication of CN105491386B publication Critical patent/CN105491386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of format conversion method of video data and devices: each frame original video data received is decoded into predetermined format respectively;For decoded every frame video data, when determining it, there are when corresponding intelligent information, corresponding intelligent information is added on the frame video data, and the frame video data for being superimposed with intelligent information is recoded according to scheduled compressed format, otherwise, directly the frame video data is recoded according to scheduled compressed format;Each frame video data after recodification is packaged into target code stream.Using scheme of the present invention, the information content for showing user can be enriched.

Description

A kind of format conversion method and device of video data
Technical field
The present invention relates to data processing technique, in particular to the format conversion method and device of a kind of video data.
Background technique
The format of video data is converted, and is referred to and is packaged to original video data and the conversion of coded format etc., turns The image information for changing front and back is almost the same, the information except original image information, such as intelligent information can not be added, to limit The subsequent information content for showing user.
Summary of the invention
In view of this, can enrich and show the present invention provides a kind of format conversion method of video data and device The information content of user.
In order to achieve the above object, the technical scheme of the present invention is realized as follows:
A kind of format conversion method of video data, comprising:
Each frame original video data received is decoded into predetermined format respectively;
For decoded every frame video data, when determining that it, there are when corresponding intelligent information, corresponding intelligence is believed Breath is added on the frame video data, and the frame video data for being superimposed with intelligent information is carried out according to scheduled compressed format It recodes, otherwise, directly the frame video data is recoded according to scheduled compressed format;
Each frame video data after recodification is packaged into target code stream.
A kind of format conversion apparatus of video data, comprising: parsing module, decoder module, information Fusion Module, coding mould Block and synthesis module;
The parsing module for obtaining each frame original video data, and is sent to the decoder module;
The decoder module is sent after each frame original video data received is decoded into predetermined format respectively To the information Fusion Module;
The information Fusion Module, for for the every frame video data received, there are corresponding intelligence when determining it When information, after corresponding intelligent information is added on the frame video data, it is sent to the coding module, otherwise, directly will The frame video data is sent to the coding module;
The coding module is recoded according to scheduled compressed format respectively for that will receive each frame video data Afterwards, it is sent to the synthesis module;
The synthesis module, for each frame video data received to be packaged into target code stream.
As it can be seen that, for video data, intelligence letter can be superimposed except original image information using scheme of the present invention Breath to realize the information fusion of video data and intelligent information, and then enriches the subsequent information content for showing user; Moreover, scheme of the present invention implement it is simple and convenient, consequently facilitating being popularized and being promoted.
Detailed description of the invention
Fig. 1 is the flow chart of the format conversion method embodiment of video data of the present invention.
Fig. 2 is the process schematic that the present invention is superimposed intelligent information on video data.
Fig. 3 is the component value storage format schematic diagram of each pixel under existing YV12 format.
Fig. 4 is the composed structure schematic diagram of the format conversion apparatus embodiment of video data of the present invention.
Specific embodiment
Aiming at the problems existing in the prior art, a kind of format conversion plan of video data, energy are provided in the present invention Enough abundant information contents etc. for showing user.
In order to be clearer and more clear technical solution of the present invention, hereinafter, referring to the drawings and the embodiments, to institute of the present invention The scheme of stating is described in further detail.
Fig. 1 is the flow chart of the format conversion method embodiment of video data of the present invention.As shown in Figure 1, including following step Rapid 11~13.
Step 11: each frame original video data received is decoded into predetermined format respectively.
In practical applications, original video data can be extracted from container, and is decoded into predetermined format respectively, The predetermined format can be yuv format or rgb format etc..
Step 12: decoded every frame video data is directed to, when determining that it, will be corresponding there are when corresponding intelligent information Intelligent information is added on the frame video data, and will be superimposed with the frame video data of intelligent information according to scheduled compression lattice Formula is recoded, and otherwise, directly the frame video data is recoded according to scheduled compressed format.
It can be directly by it according to scheduled compression lattice for decoded every frame video data according to existing processing mode Formula is recoded, and after using scheme of the present invention, for decoded every frame video data, corresponded to when determining that it exists Intelligent information when, can corresponding intelligent information is added on the frame video data first, then will be superimposed with intelligent letter again The frame video data of breath is recoded according to scheduled compressed format, otherwise, i.e., when determining that the frame video data is not present When corresponding intelligent information, just directly the frame video data can be recoded according to scheduled compressed format.
The scheduled compressed format is specially which kind of format can be determined according to actual needs.
Step 13: each frame video data after recodification is packaged into target code stream.
In this step, can carrying out that treated according to mode shown in step 12, each frame video data is packaged into target code stream And it exports, the subsequent display that video pictures and intelligent information can be carried out on ordinary playing device.
The specific implementation of step 11 and step 13 is the prior art, how to carry out recoding described in step 12 same It for the prior art, repeating no more, mainly how to realize video counts to how to be superimposed intelligent information on video data below It is described in detail according to the information fusion with intelligent information.
One) information merges
Specifically, for decoded every frame video data, can determine whether that the frame video counts have been received respectively According to corresponding intelligent information;If it is, the intelligent information received is added on the frame video data;If it is not, then needle Intelligent information retrieval is carried out to the frame video data, and when extracting result is not sky, the intelligent information extracted is superimposed Onto the frame video data.
That is, when needing to a certain frame video data overlay intelligent information, if having been received that the frame regards The intelligent information received then can directly be added on the frame video data by frequency according to corresponding intelligent information;Otherwise, it can press According to existing way, intelligent information retrieval is carried out for the frame video data, and when extracting result is not sky, by what is extracted Intelligent information is added on the frame video data;If both not receiving intelligent information, intelligent information is not also extracted, then then Without being superimposed intelligent information on the frame video data.
In practical applications, user prespecified may need to show which intelligent information (needed for oneself), without It is to show all intelligent information receiving or extracting, in this way, every frame video data is directed to, when this has been received in determination When the corresponding intelligent information of frame video data, it is also necessary to whether further determine that in the intelligent information received comprising needed for user Intelligent information, if it is, intelligent information needed for receive, user is added on the frame video data;If not, It then can be used and do not receive the processing mode as the corresponding intelligent information of frame video data, that is, be directed to the frame video data Intelligent information retrieval is carried out, and when extracting result is not sky, the intelligent information extracted is added to the frame video data On, specifically, intelligent information retrieval needed for user being carried out for the frame video data, and be not empty when extracting result When, intelligent information needed for extract, user is added on the frame video data.
The intelligent information typically includes, but not limited to: target following frame, motion profile, warning line, temperature figure, character Deng.
In addition, for every frame video data, intelligent information is added on the frame video data in scheme of the present invention Mode can are as follows: by intelligent information be abstracted as image pixel information rule;According to the image pixel information rule taken out to this Frame video data is modified.
Image pixel information rule can include: the pixel position for needing to modify and modified value etc..
The pixel for needing to modify may be independent point, or be combined into the form of line or frame, to the value of pixel It modifies, can behave as color and/or transparency of pixel etc. and change.
Based on above-mentioned introduction, Fig. 2 is the process schematic that the present invention is superimposed intelligent information on video data.Such as Fig. 2 institute Show, includes the following steps 21~28.
Step 21: obtaining decoded each frame video data respectively.
Step 22: for the every frame video data got, determining whether that having received the frame video data corresponds to respectively Intelligent information otherwise, execute step 25 if so, then follow the steps 23.
Step 23: determining whether comprising intelligent information needed for user in the intelligent information received, if it is, executing Step 24, otherwise, step 25 is executed.
Step 24: using receive, intelligent information needed for user as the intelligent information of required superposition, executing step later Rapid 27.
Step 25: intelligent information retrieval needed for carrying out user for the frame video data executes step 26 later.
Step 26: when extracting result is not sky, using extract, intelligent information needed for user as required superposition Intelligent information executes step 27 later.
Step 27: the intelligent information of required superposition is abstracted as image pixel information rule.
Step 28: being modified, be superimposed with to the frame video data according to the image pixel information rule taken out The frame video data of intelligent information.
In above-mentioned steps 27, how intelligent information is abstracted as image pixel information rule is the prior art.For example, drawing It detected a target following frame in face, then the location information of each pixel on the target following frame and set Value of modified each pixel etc. is image pixel information rule.
It is not limited in addition, how to be modified according to the image pixel information rule taken out to video data in step 28 System, can be determined according to actual needs.For example, other effects can also be used in such a way that individual element point is modified The higher mode of rate.
By taking the YV12 format of plane (Planar) most common in coding and decoding video as an example, this yuv format is that plane is deposited The 4:2:0 sampled data of storage, each pixel correspond to a Y-component value, and 4 adjacent pixels share a UV component Value, Fig. 3 are the component value storage format schematic diagram of each pixel under existing YV12 format.As shown in figure 3, horizontal when needing to modify When horizontal line, can successively each pixel on blocky modification line YUV component value, modified component value be abstracted by intelligent information and At image pixel information rule determine;For vertical horizontal line, since the YUV component value of each pixel on line is not continuously to deposit Storage, each pixel on line can be modified in the way of increment stepping by image width;For oblique line, to guarantee that pixel is close Collection can traverse along horizontal direction (x-axis) when the slope value of oblique line is between [- 1,1] and modify each pixel, other slopes Then (y-axis) traversal modifies each pixel to value along vertical direction.Frame is formed by connecting by line, does not have difference on technological essence, It repeats no more.
The present invention discloses a kind of format conversion apparatus of video data.
Fig. 4 is the composed structure schematic diagram of the format conversion apparatus embodiment of video data of the present invention.As shown in figure 4, packet It includes: parsing module, decoder module, information Fusion Module, coding module and synthesis module.
Parsing module for obtaining each frame original video data, and is sent to decoder module;
Decoder module is sent to letter after each frame original video data received is decoded into predetermined format respectively Cease Fusion Module;
Information Fusion Module, for for the every frame video data received, there are corresponding intelligent information when determining it When, after corresponding intelligent information is added on the frame video data, it is sent to coding module, otherwise, directly by the frame video Data are sent to coding module;
Coding module, for that will receive after each frame video data recoded according to scheduled compressed format respectively, It is sent to synthesis module;
Synthesis module, for each frame video data received to be packaged into target code stream.
Specifically,
Information Fusion Module for the every frame video data received can determine whether that the frame video has been received respectively The corresponding intelligent information of data;If it is, the intelligent information received is added on the frame video data;If it is not, then Intelligent information retrieval is carried out for the frame video data, and when extracting result is not sky, the intelligent information extracted is folded It is added on the frame video data.
The intelligent information that information Fusion Module receives receives intelligent letter typically from parsing module, i.e. parsing module After breath, information Fusion Module can be directly sent it to, the processing of decoder module is needed not move through.
In addition,
Information Fusion Module can be further used for, and for the every frame video data received, determine whether respectively The corresponding intelligent information of frame video data is received, if it is, further determining that in the intelligent information received whether wrap Containing intelligent information needed for user, if it is, intelligent information needed for receive, user is added to the frame video data On;If not receiving the corresponding intelligent information of frame video data, or user institute is not included in the intelligent information received The intelligent information needed, then intelligent information retrieval needed for carrying out user for the frame video data, and be not when extraction result When empty, intelligent information needed for extract, user is added on the frame video data.
Further more,
Information Fusion Module can be for the every frame video data for needing to be superimposed intelligent information, respectively by the intelligence of required superposition Information is image pixel information rule, and is modified according to image pixel information rule to the frame video data, is obtained It is superimposed with the frame video data of intelligent information.
Wherein,
Image pixel information rule can include: the pixel position for needing to modify and modified value.
The specific workflow of Fig. 4 shown device embodiment please refers to the respective description in preceding method embodiment, herein It repeats no more.
In short, for video data, intelligence letter can be superimposed except original image information using scheme of the present invention Breath to realize the information fusion of video data and intelligent information, and then enriches the subsequent information content for showing user; Moreover, scheme of the present invention implement it is simple and convenient, consequently facilitating being popularized and being promoted.
In conclusion the above is merely preferred embodiments of the present invention, being not intended to limit the scope of the present invention. All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention Within protection scope.

Claims (8)

1. a kind of format conversion method of video data characterized by comprising
Each frame original video data received is decoded into predetermined format respectively;
For decoded every frame video data, when determining that it, there are when corresponding intelligent information, corresponding intelligent information is folded It is added on the frame video data, and the frame video data for being superimposed with intelligent information is rearranged according to scheduled compressed format Code, otherwise, directly recodes the frame video data according to scheduled compressed format, wherein the intelligent information is former Information except beginning image information;
Each frame video data after recodification is packaged into target code stream;
It is described to be directed to decoded every frame video data, when determining that it there are when corresponding intelligent information, corresponding intelligence is believed It ceases on the frame video data that is added to and includes:
For decoded every frame video data, when not receiving the corresponding intelligent information of the frame video data, for the frame Video data carries out intelligent information retrieval, and when extracting result is not sky, the intelligent information extracted is added to the frame On video data.
2. the method according to claim 1, wherein
The intelligent information that will be received be added on the frame video data comprise determining that in the intelligent information received whether Comprising intelligent information needed for user, if it is, intelligent information needed for receive, user is added to the frame video counts According to upper;
It is described to carry out intelligent information retrieval for the frame video data, and in the intelligence that when extracting result is not sky, will be extracted It can include: intelligent information retrieval needed for carrying out user for the frame video data in information superposition to the frame video data, and When extracting result is not sky, intelligent information needed for extract, user is added on the frame video data;
This method further comprises: when the intelligent information needed for not including user in the intelligent information received, for the frame Video data carry out user needed for intelligent information retrieval, and when extract result be not sky when, will be needed for extract, user Intelligent information be added on the frame video data.
3. method according to claim 1 or 2, which is characterized in that
Described intelligent information is added on the frame video data include:
Intelligent information is abstracted as image pixel information rule;
It is modified according to described image Pixel Information rule to the frame video data.
4. according to the method described in claim 3, it is characterized in that,
Described image Pixel Information rule includes: the pixel position for needing to modify and modified value.
5. a kind of format conversion apparatus of video data characterized by comprising parsing module, decoder module, information merge mould Block, coding module and synthesis module;
The parsing module for obtaining each frame original video data, and is sent to the decoder module;
The decoder module is sent to institute after each frame original video data received is decoded into predetermined format respectively State information Fusion Module;
The information Fusion Module, for for the every frame video data received, there are corresponding intelligent information when determining it When, after corresponding intelligent information is added on the frame video data, it is sent to the coding module, otherwise, directly by the frame Video data is sent to the coding module, wherein the intelligent information is the information except raw frames information;
The coding module, for that will receive after each frame video data recoded according to scheduled compressed format respectively, It is sent to the synthesis module;
The synthesis module, for each frame video data received to be packaged into target code stream;
The information Fusion Module is also used to for decoded every frame video data, corresponding when not receiving the frame video data Intelligent information when, for the frame video data carry out intelligent information retrieval, and when extract result be not sky when, will extract Intelligent information be added on the frame video data.
6. device according to claim 5, which is characterized in that
The information Fusion Module is further used for, and for the every frame video data received, determines whether respectively received To the corresponding intelligent information of frame video data, if it is, whether further determining that in the intelligent information received comprising using Intelligent information needed for family, if it is, intelligent information needed for receive, user is added on the frame video data; If not receiving the corresponding intelligent information of frame video data, or do not include needed for user in the intelligent information received Intelligent information, then for the frame video data carry out user needed for intelligent information retrieval, and when extract result be not sky when, Intelligent information needed for extract, user is added on the frame video data.
7. device according to claim 5 or 6, which is characterized in that
The information Fusion Module is directed to the every frame video data for needing to be superimposed intelligent information, respectively believes the intelligence of required superposition Breath is abstracted as image pixel information rule, and is modified according to described image Pixel Information rule to the frame video data, obtains To the frame video data for being superimposed with intelligent information.
8. device according to claim 7, which is characterized in that
Described image Pixel Information rule includes: the pixel position for needing to modify and modified value.
CN201410482570.9A 2014-09-19 2014-09-19 A kind of format conversion method and device of video data Active CN105491386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410482570.9A CN105491386B (en) 2014-09-19 2014-09-19 A kind of format conversion method and device of video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410482570.9A CN105491386B (en) 2014-09-19 2014-09-19 A kind of format conversion method and device of video data

Publications (2)

Publication Number Publication Date
CN105491386A CN105491386A (en) 2016-04-13
CN105491386B true CN105491386B (en) 2019-05-28

Family

ID=55678053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410482570.9A Active CN105491386B (en) 2014-09-19 2014-09-19 A kind of format conversion method and device of video data

Country Status (1)

Country Link
CN (1) CN105491386B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115866298B (en) * 2022-11-24 2023-12-19 苏州睿芯通量科技有限公司 Video processing method, system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694985A (en) * 2011-03-22 2012-09-26 杭州普维光电技术有限公司 Information superposition method, information extraction method, apparatus and system of video images
CN103402100A (en) * 2013-08-23 2013-11-20 北京奇艺世纪科技有限公司 Video processing method and mobile terminal
CN103888840A (en) * 2014-03-27 2014-06-25 电子科技大学 Method and device for dragging and zooming video mobile terminal in real time

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200952486A (en) * 2008-06-13 2009-12-16 Ind Tech Res Inst Video surveillance system, module and method for annotation and de-annotation thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694985A (en) * 2011-03-22 2012-09-26 杭州普维光电技术有限公司 Information superposition method, information extraction method, apparatus and system of video images
CN103402100A (en) * 2013-08-23 2013-11-20 北京奇艺世纪科技有限公司 Video processing method and mobile terminal
CN103888840A (en) * 2014-03-27 2014-06-25 电子科技大学 Method and device for dragging and zooming video mobile terminal in real time

Also Published As

Publication number Publication date
CN105491386A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
US10448031B2 (en) Method of generating media file and storage medium storing media file generation program
EP3311585B1 (en) Image data encapsulation
JP7098786B2 (en) Image data encapsulation
WO2008088752A3 (en) System and method for encoding scrolling raster images
CN105744345B (en) Video-frequency compression method and device
CN106791854B (en) Image coding, coding/decoding method and device
CN103220531A (en) Image signal decoding apparatus, image signal decoding method, image signal encoding apparatus, image signal encoding method, and program
CN103339932A (en) Coding and decoding utilizing picture boundary padding in flexible partitioning
EP3043313A1 (en) Jpeg picture composite method and method and apparatus for superimposing osd information
CN110674787A (en) Video decompression method and system based on Hog feature and lgb classifier
CN103248830A (en) Real-time video combination method for augmented reality scene of mobile intelligent terminal
CN105491386B (en) A kind of format conversion method and device of video data
CN104333732B (en) A kind of distributed video analysis method and system
SG11201408431PA (en) Method for encoding a digital video image
CN103475877A (en) Video transmission method and system
CN103037206A (en) Method and system of video transmission
CN101489052B (en) Subtitle data processing method and apparatus
CN109644284B (en) Transmission device, transmission method, reception device, and reception method
CN106341666A (en) Method for effectively reducing volume of video file through dynamic area capture technology
US20150271492A1 (en) Systems and Methods for Group of Pictures Encoding
CN102694985B (en) Information superposition method, information extraction method, apparatus and system of video images
CN102685397A (en) Method for overlaying pictures in video
CN108293142A (en) Sending device, sending method, reception device and method of reseptance
WO2022183346A1 (en) Feature data encoding method, feature data decoding method, devices, and storage medium
CN107809638B (en) Filtering processing method and system based on camera image video mixed subject

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