CN109246434A - Video coding, coding/decoding method and electronic equipment - Google Patents
Video coding, coding/decoding method and electronic equipment Download PDFInfo
- Publication number
- CN109246434A CN109246434A CN201811366190.3A CN201811366190A CN109246434A CN 109246434 A CN109246434 A CN 109246434A CN 201811366190 A CN201811366190 A CN 201811366190A CN 109246434 A CN109246434 A CN 109246434A
- Authority
- CN
- China
- Prior art keywords
- video
- area
- data
- coding
- video area
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 103
- 238000011282 treatment Methods 0.000 claims abstract description 59
- 230000008569 process Effects 0.000 claims abstract description 41
- 238000012545 processing Methods 0.000 claims abstract description 28
- 230000004044 response Effects 0.000 claims description 28
- 238000005538 encapsulation Methods 0.000 claims description 26
- 230000005540 biological transmission Effects 0.000 claims description 21
- 238000000605 extraction Methods 0.000 abstract description 5
- 230000000694 effects Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 11
- 230000006835 compression Effects 0.000 description 7
- 238000007906 compression Methods 0.000 description 7
- 230000033001 locomotion Effects 0.000 description 3
- 206010039203 Road traffic accident Diseases 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 241001269238 Data Species 0.000 description 1
- 108700026244 Open Reading Frames Proteins 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
This application provides Video coding, coding/decoding method and electronic equipments, by determining the first video area and the second video area in video to be processed in method for video coding, then coded treatment is carried out to the first video area and the second video area using different coding modes, it ensure that the target area determined to user carries out coded treatment using the coding mode of meet demand, simultaneously, it can be decoded processing for the video of different coding mode in video encoding/decoding method, can satisfy different video extraction demands.Allow the video of the target area of user's determination in decoding process to reduce distortion, so that user obtains demand information high-definition, meets user and the demand of effective information is obtained by video and improves the experience effect of user.
Description
Technical field
Present application relates generally to video technique fields, more particularly to a kind of Video coding, coding/decoding method and electricity
Sub- equipment.
Background technique
With the development of information technology, vision signal is become in people's daily life with advantages such as its intuitive and high efficiency
Obtain the most important mode of information.Since the data volume that vision signal includes is big, need to occupy a large amount of transmission bandwidth and storage
Space.For effective transimission and storage vision signal, need to carry out compressed encoding to vision signal.
But these existing Video coding modes are usually to damage, i.e., are decoded to the video pictures after coding
When reduction, the picture after reduction has certain distortion relative to raw frames, for there is the vision signal of specific use as supervised
Video is controlled, picture is unintelligible since the distortion of picture will cause, and cannot achieve the need that acquisition of information is carried out using the vision signal
It asks.
Summary of the invention
In view of this, this application provides following technical schemes:
A kind of method for video coding, comprising:
Determine the first video area and the second video area corresponding to video to be processed;
First coded treatment is executed to the corresponding video pictures in first video area, obtains the first video data;
Video pictures are corresponded to second video area and execute the second coded treatment, obtain the second video data, it is described
Second coded treatment is different from the coding parameter of first coded treatment;
First video data and second video data are packaged, target video file is obtained.
Optionally, the first video area and the second video area corresponding to determination video to be processed, comprising:
In response to the operational order received, corresponding first video area of video to be processed is determined;
By the corresponding video area of the video to be processed except first video area, it is determined as the second video area
Domain.
Optionally, the first video area and the second video area corresponding to determination video to be processed, comprising:
In response to the identification condition received, video pictures identification is carried out to the video to be processed, the knowledge will be met
The video area of other condition is determined as the first video area;
By the corresponding video area of the video to be processed except first video area, it is determined as the second video area
Domain.
Optionally, the operational order includes coordinate setting information;
Wherein, the operational order in response to receiving determines corresponding first video area of video to be processed, packet
It includes:
Based on the coordinate setting information, calculates and obtain corresponding first video area of the video to be processed.
Optionally, this method further include:
It is at least two video areas in response to first video area;
Based on the selection instruction received, the corresponding target area in first video area is determined;
The corresponding video area of the video to be processed except the target area is determined as the second video area.
Optionally, this method further include:
According to the transmission conditions of the video to be processed, the coding parameter of the first coded treatment is determined;
The resolution ratio of video acquisition device based on the video to be processed, determines the coding parameter of the second coded treatment.
Optionally, described to be packaged first video data and second video data, obtain target video
File, comprising:
It parses the first video data and obtains first coding data and the first metadata;
It parses the second video data and obtains the second coded data and the second metadata;
The first coding data and second coded data are spliced, coded data is obtained;
First metadata and second metadata are spliced, metadata is obtained;
The coded data and the metadata are subjected to video frame encapsulation, obtain target video file.
A kind of video encoding/decoding method, comprising:
Obtain target video file;
The target video file is parsed, video data encoder is obtained;
Based on the video data encoder, video area and coding mode corresponding with the video area are determined;
The determining and matched decoding process of the coding mode;
Processing is decoded to the corresponding video area of the decoding process based on the decoding process, is obtained and the view
The corresponding video pictures in frequency domain;
The video pictures are subjected to video encapsulation, obtain target video.
Optionally, this method further include:
It include the first video area and the second video area in response to the video area;
It, will first video area correspondence if the corresponding coding mode in first video area is uncoded mode
Video pictures, with to second video area be decoded processing obtain video pictures carry out video encapsulation, obtain target
Video.
A kind of electronic equipment, including memory, first processor and second processor, wherein
The first processor, for determining the first video area and the second video area corresponding to video to be processed;
First coded treatment is executed to the corresponding video pictures in first video area, obtains the first video data;To described second
Video area correspond to video pictures execute the second coded treatment, obtain the second video data, second coded treatment with it is described
The coding parameter of first coded treatment is different;First video data and second video data are packaged, obtained
Target video file;
The second processor, for obtaining target video file;The target video file is parsed, Video coding is obtained
Data;Based on the video data encoder, video area and coding mode corresponding with the video area are determined;Determining and institute
State the matched decoding process of coding mode;The corresponding video area of the decoding process is decoded based on the decoding process
Processing obtains video pictures corresponding with the video area;The video pictures are subjected to video encapsulation, obtain target view
Frequently.
It can be seen that compared with prior art, this application provides Video coding, coding/decoding method and electronic equipments, regarding
By determining the first video area and the second video area in video to be processed in frequency coding method, different volumes is then used
Code mode carries out coded treatment to the first video area and the second video area, ensure that and uses to the target area that user determines
The coding mode of meet demand carries out coded treatment, meanwhile, the view of different coding mode can be directed in video encoding/decoding method
Frequency is decoded processing, can satisfy different video extraction demands.So that the target area that user determines in decoding process
Video can reduce distortion, so that user obtains demand information high-definition, meet user and obtained effectively by video
The demand of information and improve the experience effect of user.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 shows a kind of flow diagram of method for video coding provided by the embodiments of the present application;
Fig. 2 shows a kind of flow diagrams of video data packaging method provided by the embodiments of the present application;
Fig. 3 shows a kind of flow diagram of video encoding/decoding method provided by the embodiments of the present application;
Fig. 4 shows a kind of schematic diagram of video area provided by the embodiments of the present application;
Fig. 5 shows a kind of structural schematic diagram of video coding apparatus provided by the embodiments of the present application;
Fig. 6 shows a kind of structural schematic diagram of video decoder provided by the embodiments of the present application;
Fig. 7 shows the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Referring to Fig. 1, it illustrates a kind of flow diagram of method for video coding one embodiment of the application, the present embodiment
Method may include:
S101, the first video area and the second video area corresponding to video to be processed are determined.
In video transmitting procedure, in order to meet the transmission quantity of video data and the bandwidth requirement of transmission network, usually want
It can just be transmitted after handling original video, the original video handled at this time is designated as view to be processed
Frequently.Video to be processed is divided in embodiments herein, has obtained the first video area and the second video area.
Wherein, video divide standard needs be configured according to the correlation properties of the video to be processed, for example, can according to picture
Middle specific information is divided, and can also be divided according to screen resolution precision, can also according to video requency frame data amount into
Row divide etc., in this embodiment of the present application with no restrictions, as long as can satisfy user to the particular demands of transmission of video.
It should be noted that in this embodiment only by the first video area and the second video area as treating place
It only includes a video area, corresponding first video area that the segmentation range for managing video division, which is not the first video area,
It may include multiple video areas, these video areas can satisfy the same Parameter Conditions, for example, its compression accuracy is
One precision, these video areas also can satisfy same parameters range, for example, including personage's first.Equally, the second video area
It may be multiple video areas, only the division condition of the second video area and the division condition of the first video area are different.
S102, the first coded treatment is executed to the corresponding video pictures in the first video area, obtains the first video data;
S103, video pictures the second coded treatment of execution is corresponded to the second video area, obtain the second video data.
After the first video area and the second video area that video to be processed has been determined, need to different video areas
Domain executes different coded treatments, the demand of video can satisfy to guarantee that treated user.Video coding mode is exactly logical
Specific compress technique is crossed, the file of some video format is converted into the mode of another video format file.Video is spread
In defeated mostly important encoding and decoding standard have International Telecommunication Association H.261, H.263, H.264, movement stand motion picture expert group version M-
The standard of JPEG and the MPEG of Motion Picture Experts Group of International Organization for standardization series, are furthermore widely used on the internet
Code encoding/decoding mode etc..
Different coding modes can be compatible with simultaneously in the embodiment of the present application to compile the different zones of same video
Code processing, wherein the coding parameter of the first coded treatment and the second coded treatment is different, which is to refer to characterization two
The major parameter information, such as compression ratio, video size etc. of kind coding mode, which determined by user demand,
If user needs to obtain the relatively clear video pictures of the first video area by taking compression ratio as an example, the first coded treatment can be with
For uncoded processing, i.e., to the video pictures of the first video area without any coding after, obtain the first video data, it is corresponding
The second coded treatment be H.264 to encode, that is, realize to the compression ratio of the 100:1 of the video pictures of the second video area, obtain
Second video data.Then the compression ratio of the first coded treatment is 1:1, and the compression ratio of the second coded treatment is 100:1.It can also adopt
The first coded treatment and the second coded treatment are determined with the difference of other coding parameters.It should be noted that if first compiles
Code processing is uncoded processing, it is merely meant that the video pictures to the first video area do not use at any coding mode
Reason, it is not intended that the video pictures of the first video area without any processing, for example, can according to user demand into
Row picture extraction process.
After carrying out different coding processing to the video pictures in different video region, obtains different video datas and protected
It deposits, convenient for the use to subsequent processing or transmission.
S104, the first video data and the second video data are packaged, obtain target video file.
It in order to guarantee the integrality of transmission of video, needs that treated that video data is packaged by different video, i.e., will
Corresponding first video data in first video area the second video data corresponding with the second video area carries out splicing, obtains
To a complete video to be transmitted, to carry out transmission of video.Or save the video after encapsulation, so as to subsequent need
It asks.
The embodiment of the present application provides a kind of method for video coding, by determining the first video area in video to be processed
With the second video area, then the first video area and the second video area are carried out at coding using different coding modes
Reason ensure that the target area determined to user carries out coded treatment using the coding mode of meet demand, so that decoding
The video for the target area that user determines in journey can reduce distortion, so that user obtains demand information high-definition, meet
User obtains the demand of effective information by video and improves the experience effect of user.
Fully meet what user extracted particular video information in order to guarantee that the video area of video to be processed divides
Demand further comprises two kinds of methods for carrying out region division to video to be processed in another embodiment of the application, wherein the
A kind of method that video area divides may include:
S201, the operational order in response to receiving determine corresponding first video area of video to be processed;
S202, by the corresponding video area of video to be processed except the first video area, be determined as the second video area.
In this embodiment, operational order is video pictures content of the user according to video to be processed, the video area of proposition
Domain divides condition, which may include the coordinate information, video frame information or video location of specific video area
Information etc. can accurately extract the video area of user's needs in video to be processed according to the operational order, will expire
The video area of sufficient user operation instruction is determined as the first video area, by the video pair to be processed except first video area
Other video areas answered, are determined as the second video area.That is the first video area is the video area comprising user demand information
Domain, and the second video area is common video area.
For example, if operational order includes coordinate setting information, the corresponding method when determining the first video area are as follows:
Based on coordinate setting information, calculates and obtain corresponding first video area of video to be processed.Sat according to the video that user provides
Location information is marked, the location information set of the picture area of the corresponding video to be processed of the coordinate is calculated, it can be to each area
Domain carries out unified number, convenient for the differentiation to video area, so that these regions are determined as the first video area.
The division of above-mentioned video area is the video stroke that clear, the specific video provided based on user divides that condition carries out
Point, the video extraction condition that can also be provided in this embodiment according to user carries out video division, i.e. second of video area
The method of division may comprise steps of:
S301, the identification condition in response to receiving carry out video pictures identification to video to be processed, will meet the knowledge
The video area of other condition is determined as the first video area;
S302, by the corresponding video area of video to be processed except the first video area, be determined as the second video area.
Identification condition is to be proposed according to information such as the purposes of video to be processed to particular video frequency picture or video information
Screening conditions, the identification condition include identification condition to particular persons, to the identification condition of locality and/or to it is specific when
Between one of the identification condition of video pictures or a variety of.For example, identification condition is to filter out the video including personage's first to draw
Face first passes through picture identification technology at this time, obtains the video pictures that these include personage's first, by the corresponding view of these video pictures
Frequency domain is denoted as the first video area.In this way in subsequent video coding process can by include personage's first video area into
The first coded treatment of row obtains high-resolution picture and analyzes convenient for user specific information.
The method for video coding in another embodiment of the application further include:
S401, in response to the first video area be at least two video areas;
S402, based on the selection instruction received, determine the corresponding target area in the first video area;
S403, the corresponding video area of video to be processed except target area is determined as the second video area.
The first video area that condition determines either still is identified according to operational order, may include at least two videos
At this moment region needs to determine final target area according to the demand of user, if these video areas are desired by user
Video area, then these video areas are all determined as target area;If a part of video area in these video areas
Domain is the video area that user needs, then this partial video region is determined as target area.Obtaining the first video area
And first video area when being multiple video areas, the corresponding information in each video area can be distributed to corresponding mark
Information, is sent to user for identification information, determines target area for user.
Then, the video area except target area is redefined as the second video area, if target area is in this way
A part of video area of first video area, then the second video area includes the remaining video area in the first video area at this time
Domain, and include the video area for being unsatisfactory for operational order or identifying condition.
It is corresponding, it also can receive external increase and instruct, i.e., the first video area currently selected can not fully meet use
The demand at family can then be instructed according to the increase of user, increase by the first video area.
Another in the application is that the method for a kind of first coded treatment and the second coded treatment is additionally provided in embodiment,
This method comprises:
S501, according to the transmission conditions of video to be processed, determine the coding parameter of the first coded treatment;
The resolution ratio of S502, video acquisition device based on video to be processed, determine the coding parameter of the second coded treatment.
The transmission conditions of video to be processed characterize transmitting terminal in video transmitting procedure, receiving end and transmission of video medium
Some conditions may include the permission of the bandwidth constraints, transmission the video size condition, receiving end of transmitting terminal of transmission network
Maximum receive amount of video condition and user to after transmission of video clarity require etc. conditions, to determine the first coded treatment
Coding parameter, the coding mode met the requirements is then filtered out according to coding parameter, or by the way of not encoding into
Row processing.
The resolution ratio of video acquisition device be primarily referred to as the camera of video acquisition end resolution ratio and corresponding video
The conditions such as the bandwidth of transmission medium, naturally it is also possible to be determined acording to the requirement of user, in order to realize intelligent automation really
Determine coding parameter, the resolution ratio of preferred acquisition device determines the coding parameter of the second coding in the present embodiment, can be more
The video properties of currently pending video are adapted to, coding work amount is reduced.
A kind of method of video data encapsulation, referring to fig. 2, this method packet are additionally provided in another embodiment of the application
It includes:
S601, the first video data of parsing obtain first coding data and the first metadata;
S602, the second video data of parsing obtain the second coded data and the second metadata;
S603, first coding data and the second coded data are spliced, obtains coded data;
S604, the first metadata and the second metadata are spliced, obtains metadata;
S605, coded data and metadata are subjected to video frame encapsulation, obtain target video file.
After encoding to different video areas using different coding processing modes, the first video area can be corresponded to
The first video data is obtained, corresponding second video area obtains the second video data.Then it needs to carry out video to video data
Parsing obtains coded data and metadata, wherein coded data can characterize word shared by coding mode, video area respectively
The information such as joint number, metadata can characterize the position of the coding of coding region, the video area in currently camera shooting picture face, depending on
Byte number information etc. shared by frequency domain.Then, whole video frame encapsulation is carried out according to coded data and metadata.If corresponding
One coded treatment is uncoded processing mode, then corresponding first coding data can be expressed as its uncoded data.For example, according to
The secondary correspondence first coding data by each first video area is added to the corresponding second coded data end in the second video area
Tail, and corresponding first metadata and the second metadata are successively added in the corresponding data of metadata of the video frame, base
Whole video frame encapsulation is carried out in newly-generated image coded data and metadata, obtains target video file.It in this way being capable of base
Video data after coded treatment carries out the data splicing of different coding mode, obtains complete video file, realizes pair
The compatibility and processing of different coding mode.
It is corresponding with method for video coding provided herein, one kind is additionally provided in another embodiment of the application
Video encoding/decoding method, referring to Fig. 3, which includes:
S701, target video file is obtained;
Wherein, which is video file to be decoded, for example, by encoding compressed target video text
Part is transmitted to receiving end by transmission network, then the video file that receiving end receives is pending decoded video file.
S702, parsing target video file, obtain video data encoder;
After obtaining target video file, needs to parse the target video file, can be characterized to obtain
The video data encoder that video compress mode and video area divide.It can identification information by video file, file type
Information etc. is parsed, wherein video data encoder may include coding mode information, video area number information, video area
Domain byte number information etc..
S703, it is based on video data encoder, determines the corresponding coding mode in video area and video area.
Because covering the main information of the video after having carried out coded treatment in video data encoder, it is possible to root
The corresponding coding mode in each video area is determined according to the information.
S704, determination and the matched decoding process of coding mode.
Each coding mode has corresponding decoding process, therefore can determine decoding process according to coding mode,
So that the process being decoded to file is more accurate and efficient.
S705, processing, acquisition and video area are decoded to the corresponding video area of decoding process based on decoding process
Corresponding video pictures.
It, can be to not if target video file corresponds to the tupe of different coding mode using different video region
Use different decoding processes with video area, to obtain corresponding video pictures, realize to the compatibilities of different decoding processes and
Processing.
S706, video pictures are carried out to video encapsulation, obtains target video.
It is that each video area is respectively corresponded into decoding process in decoding process, obtains complete view to meet user
The demand of frequency needs to splice the video after decoding process, is then presented to user.
A kind of video encoding/decoding method is provided in embodiments herein, it in the method can be based on target video text
Part parsing obtains video data encoder, and then the determining and matched decoding process of coding mode in video data encoder, is based on
Different decoding processes obtains target video after being decoded to corresponding different video area, realizes to different volumes
The decoding process of the video area of code mode meets user and carries out the decoding requirements after coded treatment to different video region,
User is realized to the demand high-definition of particular video information.
In another embodiment of the application, above-mentioned video encoding/decoding method further include:
S801, include the first video area and the second video area in response to video area;
If S802, the corresponding coding mode in the first video area are uncoded mode, and the first video area is corresponding
Video pictures are decoded processing with the second video area and obtain video pictures progress video encapsulation, obtain target video.
Due to that video can be divided into different video areas according to code requirement in video-coding process,
Such as the first video area of video area high-definition is required, at this moment in order to guarantee that higher image sharpness can be to
One video area, which carries out uncoded processing, can be not processed first video area then in decoding process, directly obtain
The video pictures obtain video pictures with other regional decodings and carry out video frame encapsulation, obtain target video.
A kind of Video coding and decoded specific application scenarios are additionally provided in embodiments herein, in the application
It is to carry out information extraction for some critical events in video pictures in scene, this requires be directed to the view of these critical events
Frequency picture can possess higher clarity, and the generation of distortion phenomenon is reduced in current video codec transmission process.If
Video to be processed is monitor video, and critical event is a traffic accident picture in the video.
One group of coordinate setting information of external user input is received, the coordinate setting information representation traffic accident picture is regarding
Location information in frequency.In conjunction with the information such as resolution ratio of camera head and monitoring setting, the corresponding monitoring of the coordinate setting information is calculated
That is carried out generic reference numeral to each region by the location information set of picture area.Referring to fig. 4, it illustrates the application realities
A kind of schematic diagram of video area of example offer is provided.It wherein, include three specific regions i.e. first in entire monitor video
Video area, the video collection of the specific region are as follows: (r1, x1, y1, m1, k1), (r2, x2, y2, m2, k2), (r3, x3, y3,
M3, k3) }, wherein r represents zone number, and x and y represent the coordinate in the region lower left corner, and m and k represent the coordinate in the region lower right corner.
Above-mentioned coordinate form is a kind of embodiment provided in the present embodiment, can also define upper right angular coordinate and the lower left corner is sat
Mark, or define diagonal line coordinates etc., the application is without limitation.Meanwhile if including multiple particular video frequency regions, Ke Yijie
It receives externally input region and increases or delete instruction, corresponding particular video frequency region is selected according to instruction.
According to should through determining particular video frequency region (region1, region2 and region3 in such as Fig. 4) information, cut out
The corresponding video area part of current monitor video is cut, and (including but not limited to according to the coded format of camera setting
H.263, the coding modes such as H.264) picture remainder is encoded, the data after coding are expressed as OD, and metadata is denoted as
OM(encode_type,size).Its uncoded data is expressed as RD for each selection area, metadata is denoted as RM=
(ID, P, Size), wherein ID represents the number of the video area, and P represents position of the region in current camera picture,
Size represents the occupied byte number in the video area.The RD of each selection area is once attached to OM data end, and handle
Corresponding RM data and OM data are successively added in the metadata of the frame, based on newly-generated image coded data and metadata
Carry out whole video frame encapsulation.
When receiving after above-mentioned Video coding treated video requency frame data, the metadata letter of the video frame is parsed
Breath, obtains uncoded zone list.It is directed to each uncoded region, the byte of regional display occupancy is found according to its number
Number, and corresponding uncoded image data is extracted according to order of the region in coded data.For passing through in picture
The region of compression is encoded, " encode_type " field analyzed in its corresponding metadata obtains used coding mode, and
Corresponding decoding algorithm is called to be decoded.According to the location information that above-mentioned various pieces occupy in video pictures, each portion
Divide decoded image data to carry out splicing to export as target video.
A kind of method for video coding of corresponding the application, present invention also provides a kind of video coding apparatus.Referring to Fig. 5,
It illustrates a kind of corresponding structural schematic diagram of one embodiment of video coding apparatus of the application, the device of the present embodiment can be with
Include:
Area determination unit 10, for determining the first video area and the second video area corresponding to video to be processed;
First coding unit 11, for executing the first coded treatment to the corresponding video pictures in first video area,
Obtain the first video data;
Second coding unit 12 executes the second coded treatment for corresponding to video pictures to second video area, obtains
The second video data is obtained, second coded treatment is different from the coding parameter of first coded treatment;
Encapsulation unit 13 obtains target for first video data and second video data to be packaged
Video file.
In the embodiment of another video coding apparatus of the application, which may include:
First response subelement determines corresponding first view of video to be processed for the operational order in response to receiving
Frequency domain;
It is corresponding, if the operational order received in the first response subelement includes coordinate setting information, the first sound
Subelement is answered, is specifically used for: based on the coordinate setting information, calculating and obtains corresponding first video area of the video to be processed
Domain.
First determines subelement, for by the corresponding video area of the video to be processed except first video area
Domain is determined as the second video area.
In the embodiment of another video coding apparatus of the application, which can also include:
Second response subelement carries out video picture to the video to be processed for the identification condition in response to receiving
Face identification, is determined as the first video area for the video area for meeting the identification condition;
Second determines subelement, for by the corresponding video area of the video to be processed except first video area
Domain is determined as the second video area.
On the basis of the embodiment of above-mentioned video coding apparatus, the device in another embodiment of the application is also wrapped
It includes:
Region response unit, for being at least two video areas in response to first video area;
Instruction receiving unit, for determining the corresponding target in first video area based on the selection instruction received
Region;
Second video area determination unit, for by the corresponding video of the video to be processed except the target area
Region is determined as the second video area.
In the embodiment of another video coding apparatus of the application, which further includes coding mode determination unit,
In, which is specifically used for: according to the transmission conditions of the video to be processed, determining the first coded treatment
Coding parameter;
The resolution ratio of video acquisition device based on the video to be processed, determines the coding parameter of the second coded treatment.
In the embodiment of another video coding apparatus of the application, the encapsulation unit 13 of the device includes:
First parsing subunit obtains first coding data and the first metadata for parsing the first video data;
Second parsing subunit obtains the second coded data and the second metadata for parsing the second video data;
First splicing subelement is obtained for splicing the first coding data and second coded data
Coded data;
Second splicing subelement obtains first number for splicing first metadata and second metadata
According to;
Subelement is encapsulated, for the coded data and the metadata to be carried out video frame encapsulation, obtains target video
File.
A kind of video encoding/decoding method of corresponding the application, present invention also provides a kind of video decoders.Referring to Fig. 6,
It illustrates a kind of structural schematic diagrams of video decoder one embodiment of the application, and the video decoder of the present embodiment can
To include:
Acquiring unit 20, for obtaining target video file;
Resolution unit 21 obtains video data encoder for parsing the target video file;
Encode determination unit 22, for be based on the video data encoder, determine video area and with the video area
Corresponding coding mode;
Decoding determination unit 23, for the determining and matched decoding process of the coding mode;
Codec processing unit 24, for being solved based on the decoding process to the corresponding video area of the decoding process
Code processing, obtains video pictures corresponding with the video area;
Video encapsulation unit 25 obtains target video for the video pictures to be carried out video encapsulation.
In the embodiment of another video decoder of the application, the device further include:
Response unit, for including the first video area and the second video area in response to the video area;
Target video acquiring unit, if being uncoded mode for the corresponding coding mode in first video area,
By the corresponding video pictures in first video area, video pictures are obtained with processing is decoded to second video area
Video encapsulation is carried out, target video is obtained.
By video coding apparatus provided by the embodiments of the present application and video decoder, particular video frequency region can be adopted
With specific encoding and decoding processing mode, specified regional display Lossless transport can be realized, guarantee video definition, and compared to
All videos are transmitted to reduce the mode of distortion using uncoded mode, can also reduce entire video pictures transmission
Data volume.
A kind of electronic equipment is additionally provided in embodiments herein, referring to Fig. 7, the electronic equipment include memory 30,
First processor 31 and second processor 32, wherein memory 30 is for storing executable program, and first processor 31 is for holding
The program that line storage 30 stores, i.e. first processor 31 are specifically used for executing following procedure step:
S311, the first video area and the second video area corresponding to video to be processed are determined;
S312, the first coded treatment is executed to the corresponding video pictures in first video area, obtains the first video counts
According to;
S313, video pictures the second coded treatment of execution is corresponded to second video area, obtain the second video data,
Second coded treatment is different from the coding parameter of first coded treatment;
S314, first video data and second video data are packaged, obtain target video file;
In another embodiment, first processor 31 can also be real by executing the executable program stored in memory 30
It is existing:
In response to the operational order received, corresponding first video area of video to be processed is determined;
By the corresponding video area of the video to be processed except first video area, it is determined as the second video area
Domain.
Or it realizes:
In response to the identification condition received, video pictures identification is carried out to the video to be processed, the knowledge will be met
The video area of other condition is determined as the first video area;
By the corresponding video area of the video to be processed except first video area, it is determined as the second video area
Domain.
In another embodiment, first processor 31 can also be real by executing the executable program stored in memory 30
It is existing:
Include coordinate setting information in response to operational order, be based on the coordinate setting information, calculates described in obtaining wait locate
Manage corresponding first video area of video.
In another embodiment, first processor 31 can also be real by executing the executable program stored in memory 30
It is existing:
It is at least two video areas in response to first video area;
Based on the selection instruction received, the corresponding target area in first video area is determined;
The corresponding video area of the video to be processed except the target area is determined as the second video area.
In another embodiment, first processor 31 can also be real by executing the executable program stored in memory 30
It is existing:
According to the transmission conditions of the video to be processed, the coding parameter of the first coded treatment is determined;
The resolution ratio of video acquisition device based on the video to be processed, determines the coding parameter of the second coded treatment.
In another embodiment, first processor 31 can also be real by executing the executable program stored in memory 30
It is existing:
It parses the first video data and obtains first coding data and the first metadata;
It parses the second video data and obtains the second coded data and the second metadata;
The first coding data and second coded data are spliced, coded data is obtained;
First metadata and second metadata are spliced, metadata is obtained;
The coded data and the metadata are subjected to video frame encapsulation, obtain target video file.
In another embodiment, second processor 32 can also be real by executing the executable program stored in memory 30
It is existing:
S321, target video file is obtained;
S322, the parsing target video file, obtain video data encoder;
S323, it is based on the video data encoder, determines video area and coding mode corresponding with the video area;
S324, determination and the matched decoding process of the coding mode;
S325, processing is decoded to the corresponding video area of the decoding process based on the decoding process, obtain with
The corresponding video pictures in the video area;
The video pictures are subjected to video encapsulation, obtain target video.
In another embodiment, second processor 32 can also be real by executing the executable program stored in memory 30
It is existing:
It include the first video area and the second video area in response to the video area;
It, will first video area correspondence if the corresponding coding mode in first video area is uncoded mode
Video pictures, with to second video area be decoded processing obtain video pictures carry out video encapsulation, obtain target
Video.
By electronic equipment provided by the present application, it can be executed based on first processor and different zones are carried out not to video
Same coded treatment executes the decoding process to different video region by second processor, the picture after ensure that coding and decoding video
Face meets user demand, improves user experience.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: movable storage device, it is read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or
The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the application is realized in the form of software function module and as independent product
When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the application is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with
Personal computer, server or network equipment etc.) execute each embodiment the method for the application all or part.
And storage medium above-mentioned includes: that movable storage device, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
In addition, it should also be noted that, about in the various embodiments described above, such as first, second or the like relational terms
Be used merely to an operation, unit or module and another operated, unit or module distinguish, and not necessarily require or
Imply that there are any actual relationship or orders between these units, operation or module.Moreover, term " includes ", " packet
Containing " or any other variant thereof is intended to cover non-exclusive inclusion, so that including the process, method of a series of elements
Or system not only includes those elements, but also including other elements that are not explicitly listed, or it is this for further including
Process, method or the intrinsic element of system.In the absence of more restrictions, being limited by sentence "including a ..."
Element, it is not excluded that include the element process, method or system in there is also other identical elements.
The above is only the preferred embodiment of the application, it is noted that is come for those of ordinary skill in the art
It says, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications also should be regarded as
The protection scope of the application.
Claims (10)
1. a kind of method for video coding, comprising:
Determine the first video area and the second video area corresponding to video to be processed;
First coded treatment is executed to the corresponding video pictures in first video area, obtains the first video data;
To second video area correspond to video pictures execute the second coded treatment, obtain the second video data, described second
Coded treatment is different from the coding parameter of first coded treatment;
First video data and second video data are packaged, target video file is obtained.
2. according to the method described in claim 1, the first video area corresponding to determination video to be processed and the second view
Frequency domain, comprising:
In response to the operational order received, corresponding first video area of video to be processed is determined;
By the corresponding video area of the video to be processed except first video area, it is determined as the second video area.
3. according to the method described in claim 1, the first video area corresponding to determination video to be processed and the second view
Frequency domain, comprising:
In response to the identification condition received, video pictures identification is carried out to the video to be processed, the identification item will be met
The video area of part is determined as the first video area;
By the corresponding video area of the video to be processed except first video area, it is determined as the second video area.
4. according to the method described in claim 2, the operational order includes coordinate setting information;
Wherein, the operational order in response to receiving determines corresponding first video area of video to be processed, comprising:
Based on the coordinate setting information, calculates and obtain corresponding first video area of the video to be processed.
5. the method according to claim 3 or 4, this method further include:
It is at least two video areas in response to first video area;
Based on the selection instruction received, the corresponding target area in first video area is determined;
The corresponding video area of the video to be processed except the target area is determined as the second video area.
6. according to the method described in claim 1, this method further include:
According to the transmission conditions of the video to be processed, the coding parameter of the first coded treatment is determined;
The resolution ratio of video acquisition device based on the video to be processed, determines the coding parameter of the second coded treatment.
7. according to the method described in claim 1, described seal first video data and second video data
Dress obtains target video file, comprising:
It parses the first video data and obtains first coding data and the first metadata;
It parses the second video data and obtains the second coded data and the second metadata;
The first coding data and second coded data are spliced, coded data is obtained;
First metadata and second metadata are spliced, metadata is obtained;
The coded data and the metadata are subjected to video frame encapsulation, obtain target video file.
8. a kind of video encoding/decoding method, comprising:
Obtain target video file;
The target video file is parsed, video data encoder is obtained;
Based on the video data encoder, video area and coding mode corresponding with the video area are determined;
The determining and matched decoding process of the coding mode;
Processing is decoded to the corresponding video area of the decoding process based on the decoding process, is obtained and the video area
The corresponding video pictures in domain;
The video pictures are subjected to video encapsulation, obtain target video.
9. according to the method described in claim 8, this method further include:
It include the first video area and the second video area in response to the video area;
If the corresponding coding mode in first video area is uncoded mode, by the corresponding view in first video area
Frequency picture obtains video pictures progress video encapsulation with processing is decoded to second video area, obtains target video.
10. a kind of electronic equipment, including memory, first processor and second processor, wherein
The first processor, for determining the first video area and the second video area corresponding to video to be processed;To institute
It states the corresponding video pictures in the first video area and executes the first coded treatment, obtain the first video data;To second video
Region corresponds to video pictures and executes the second coded treatment, obtains the second video data, second coded treatment and described first
The coding parameter of coded treatment is different;First video data and second video data are packaged, target is obtained
Video file;
The second processor, for obtaining target video file;The target video file is parsed, Video coding number is obtained
According to;Based on the video data encoder, video area and coding mode corresponding with the video area are determined;It is determining with it is described
The matched decoding process of coding mode;Place is decoded to the corresponding video area of the decoding process based on the decoding process
Reason obtains video pictures corresponding with the video area;The video pictures are subjected to video encapsulation, obtain target video.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811366190.3A CN109246434B (en) | 2018-11-16 | 2018-11-16 | Video encoding method, video decoding method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811366190.3A CN109246434B (en) | 2018-11-16 | 2018-11-16 | Video encoding method, video decoding method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109246434A true CN109246434A (en) | 2019-01-18 |
CN109246434B CN109246434B (en) | 2023-03-21 |
Family
ID=65074922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811366190.3A Active CN109246434B (en) | 2018-11-16 | 2018-11-16 | Video encoding method, video decoding method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109246434B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117651141A (en) * | 2023-11-29 | 2024-03-05 | 联想(北京)有限公司 | Processing method and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101945275A (en) * | 2010-08-18 | 2011-01-12 | 镇江唐桥微电子有限公司 | Video coding method based on region of interest (ROI) |
CN103974071A (en) * | 2013-01-29 | 2014-08-06 | 富士通株式会社 | Video coding method and equipment on basis of regions of interest |
US20140254670A1 (en) * | 2013-03-07 | 2014-09-11 | Samsung Electronics Co., Ltd. | Method and apparatus for roi coding using variable block size coding information |
CN104378635A (en) * | 2014-10-28 | 2015-02-25 | 西交利物浦大学 | Video region-of-interest (ROI) encoding method based on microphone array assistance |
CN106572350A (en) * | 2015-10-08 | 2017-04-19 | 三星电子株式会社 | Electronic device configured to non-uniformly encode/decode image data according to display shape |
WO2018093182A1 (en) * | 2016-11-16 | 2018-05-24 | Samsung Electronics Co., Ltd. | Image management method and apparatus thereof |
CN108429921A (en) * | 2017-02-14 | 2018-08-21 | 北京金山云网络技术有限公司 | A video encoding and decoding method and device |
US20180249076A1 (en) * | 2017-02-27 | 2018-08-30 | Alibaba Group Holding Limited | Image Mapping and Processing Method, Apparatus and Machine-Readable Media |
-
2018
- 2018-11-16 CN CN201811366190.3A patent/CN109246434B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101945275A (en) * | 2010-08-18 | 2011-01-12 | 镇江唐桥微电子有限公司 | Video coding method based on region of interest (ROI) |
CN103974071A (en) * | 2013-01-29 | 2014-08-06 | 富士通株式会社 | Video coding method and equipment on basis of regions of interest |
US20140254670A1 (en) * | 2013-03-07 | 2014-09-11 | Samsung Electronics Co., Ltd. | Method and apparatus for roi coding using variable block size coding information |
CN104378635A (en) * | 2014-10-28 | 2015-02-25 | 西交利物浦大学 | Video region-of-interest (ROI) encoding method based on microphone array assistance |
CN106572350A (en) * | 2015-10-08 | 2017-04-19 | 三星电子株式会社 | Electronic device configured to non-uniformly encode/decode image data according to display shape |
WO2018093182A1 (en) * | 2016-11-16 | 2018-05-24 | Samsung Electronics Co., Ltd. | Image management method and apparatus thereof |
CN108429921A (en) * | 2017-02-14 | 2018-08-21 | 北京金山云网络技术有限公司 | A video encoding and decoding method and device |
US20180249076A1 (en) * | 2017-02-27 | 2018-08-30 | Alibaba Group Holding Limited | Image Mapping and Processing Method, Apparatus and Machine-Readable Media |
Non-Patent Citations (1)
Title |
---|
陈文静等: "基于提升小波变换的视频图像编码技术研究", 《微型机与应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117651141A (en) * | 2023-11-29 | 2024-03-05 | 联想(北京)有限公司 | Processing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109246434B (en) | 2023-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104301737B (en) | The coding/decoding method of target image block and coding method and decoder and encoder | |
CN101543078B (en) | Information processing device and method | |
EP3209018B1 (en) | Decoding method and apparatus | |
US9521407B2 (en) | Method and device for coding and decoding images | |
CN105681791B (en) | Self-adapted remote desktop transmission method and system | |
US20120057640A1 (en) | Video Analytics for Security Systems and Methods | |
KR101633576B1 (en) | Hypothetical reference decoder for multiview video coding | |
US20040196905A1 (en) | Apparatus and method of parallel processing an MPEG-4 data stream | |
US8923640B1 (en) | Coherence groups: region descriptors for low bit rate encoding | |
EP3869807A1 (en) | Image encoding and decoding method and device | |
CN101389005A (en) | A method and device for blocking a specific position of an image | |
EP4231644A1 (en) | Video frame compression method and apparatus, and video frame decompression method and apparatus | |
CN110351564A (en) | A kind of text clearly video compress transmission method and system | |
CN106850515A (en) | A kind of data processing method and video acquisition device, decoding apparatus | |
CN106031168A (en) | Adaptive processing of video streams with reduced color resolution | |
CN114531528A (en) | Method for video processing and image processing apparatus | |
CN117336490A (en) | Depth video encoding and decoding method, system and storage medium based on area of interest | |
CN109151505A (en) | A kind of video transcoding method, system, device and computer readable storage medium | |
CN109246434A (en) | Video coding, coding/decoding method and electronic equipment | |
WO2012027891A1 (en) | Video analytics for security systems and methods | |
CN113840160A (en) | Event data transmission method, system, electronic equipment and readable storage medium | |
CN113706573B (en) | Method and device for detecting moving object and storage medium | |
US20140092987A1 (en) | Entropy coding techniques and protocol to support parallel processing with low latency | |
US6909450B2 (en) | Video encoding and decoding method of mitigating data losses in an encoded video signal transmitted through a channel | |
CN113259680B (en) | Video stream decoding method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |