CN107948650A - A kind of method for video coding and device - Google Patents
A kind of method for video coding and device Download PDFInfo
- Publication number
- CN107948650A CN107948650A CN201711425671.2A CN201711425671A CN107948650A CN 107948650 A CN107948650 A CN 107948650A CN 201711425671 A CN201711425671 A CN 201711425671A CN 107948650 A CN107948650 A CN 107948650A
- Authority
- CN
- China
- Prior art keywords
- video
- compression ratio
- clear area
- fuzzy region
- encoded
- 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.)
- Pending
Links
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
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Abstract
The present invention discloses a kind of method for video coding and device, is related to technical field of video processing, the method for video coding includes:Obtain the video with Deep Canvas of video camera shooting;Identify the clear area in the video and fuzzy region;Clear area is encoded with the first compression ratio, fuzzy region is encoded with the second compression ratio, to obtain corresponding encoded video;Wherein described second compression ratio is more than first compression ratio.The present invention uses different compression ratios to the depth of field region of the video of video camera shooting and background area, in the case where ensureing image sharpness, effectively reduces data volume size, reduces demand of the video network transmission to bandwidth.
Description
Technical field
The present invention relates to technical field of video processing, more particularly to a kind of method for video coding and device.
Background technology
In order to meet the needs of video network transmission, it usually needs carry out coding compression to the video of video camera shooting.
In general, when carrying out Video coding, code check is higher, and the quality of video is better.And high code check is often to network
What is transmitted is more demanding, and the video of high code check often under conditions of network transmission condition is restricted, broadcasting interim card occurs and shows
As.
Video coding includes static coding (CBR) and dynamic coding (VBR), and the code check of each frame picture of static coding is all
Identical, suitable for network flow-medium Video coding, lasting code check can ensure video when playing, it is not easy to interim card occur and delay
Phenomena such as rushing;The mode for the dynamic regulation code check that dynamic coding is taken, different compression ratios is used for different situations.
In the prior art, when playing the video of network transmission, if bandwidth is inadequate, it will cause video buffer
Phenomenon, seriously affects user's sensory experience.The method for reducing and playing code check will be usually used, reduces clarity, increase is smooth
Degree, so as to ensure the fluency of video playing.The Internet video image quality for making to play in this way cannot ensure.
The content of the invention
The technical problems to be solved by the invention are that the video of video camera shooting is when playing Internet video, network video
Frequency is often limited by network transfer speeds, the fluency that can not ensure the clarity of picture at the same time and play.
For the above-mentioned deficiency of the prior art, a kind of method for video coding and device are proposed.
The method for video coding includes:
Obtain the video with Deep Canvas of video camera shooting;
Identify the clear area in the video and fuzzy region;
Clear area is encoded with the first compression ratio, fuzzy region is encoded with the second compression ratio, to obtain
Corresponding encoded video;Wherein described second compression ratio is more than first compression ratio.
Further, the clear area in the identification video and fuzzy region include:
The video is resolved into the corresponding image of each frame;
The clear area and fuzzy region of each two field picture are identified.
Further, it is described that clear area is encoded with the first compression ratio, with the second compression ratio to fuzzy region into
Row coding, is included with obtaining corresponding encoded video:
To each two field picture of the video, clear area is encoded with the first compression ratio, with the second compression ratio pair
Fuzzy region is encoded, to obtain corresponding encoded video.
Further, the video is the video shot in video conference;Wherein, the clear area is human body parts,
Fuzzy region is the background parts of video.
Further, when being compressed to the video, first compression ratio and second compression ratio are carried out
Dynamic adjustment, so that the highest code check of compressed video output is less than default code check.
The video coding apparatus includes:
Video acquiring module, for obtaining the video with Deep Canvas of video camera shooting;
Identification module, for identifying clear area and fuzzy region in the video;
Coding module, for being encoded with the first compression ratio to clear area, with the second compression ratio to fuzzy region into
Row coding, to obtain corresponding encoded video;Wherein described second compression ratio is more than first compression ratio.
Further, the identification module includes:
Submodule is decomposed, for the video to be resolved into the corresponding image of each frame;
Identify submodule, be identified for the clear area to each two field picture and fuzzy region.
Further, the coding module includes:
Encoding submodule, for each two field picture to the video, encodes clear area with the first compression ratio,
Fuzzy region is encoded with the second compression ratio, to obtain corresponding encoded video.
Further, the video is the video shot in video conference;Wherein, the clear area is human body parts,
Fuzzy region is the background parts of video.
Further, the coding module, is additionally operable to when being compressed to the video, to first compression ratio and
Second compression ratio is dynamically adjusted, so that the highest code check of compressed video output is less than default code check.
The present invention uses different compression ratios to the depth of field region of the video of video camera shooting and background area, is ensureing picture
In the case of the clarity of face, data volume size is effectively reduced, demand of the video network transmission to bandwidth is reduced, to balance video camera
The video of shooting is when playing Internet video, the clarity of picture and the fluency played.
Brief description of the drawings
Fig. 1 is a kind of flow chart for method for video coding that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of method for video coding provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structure diagram for video coding apparatus that the embodiment of the present invention three provides.
Embodiment
It is the specific embodiment of the present invention and with reference to attached drawing below, technical scheme is further described,
But the present invention is not limited to these embodiments.
It is also understood that specific embodiment described herein is used only for understanding the present invention, it is not used to limit this hair
It is bright.
In the present invention, the video of video camera shooting has Deep Canvas, and the image definition in field depth is higher,
It is denoted as clear area or depth of field region;Image definition outside field depth is relatively low, is denoted as fuzzy region.
When the video shot to video camera carries out network transmission, it is necessary to be compressed to video, due to fuzzy region
Details is less, and fuzzy region is compressed by the present invention with larger compression ratio, to reduce the code check of video entirety.
Method of the present invention is particularly suitable for the video of the shallow depth of field.
The depth of field (DOF), refers to be surveyed in the imaging that camera lens or other imager forward positions can obtain picture rich in detail
Fixed subject longitudinal separation scope.
Embodiment one
A kind of method for video coding provided in this embodiment, its flow chart is as shown in Figure 1, details are as follows with reference to attached drawing:
Step S101, obtains the video with Deep Canvas of video camera shooting.
In general, the video of video camera shooting has Deep Canvas.Video pictures are clear in field depth, are denoted as clear
Clear region or depth of field region;Video pictures outside field depth obscure, and become fuzzy region.
Step S102, identifies the clear area in the video and fuzzy region.
The video is the video shot in video conference;Wherein, the clear area is human body parts, and fuzzy region is
The background parts of video.Video camera is in shooting, by focal point control in human body parts.
Clear area in video and fuzzy region are identified, due to clear area and fuzzy region in video
Change during position, so needing individually to identify each frame picture of video.
Further, the clear area in the identification video and fuzzy region include:
The video is resolved into the corresponding image of each frame;
The clear area and fuzzy region of each two field picture are identified.
Step S103, encodes clear area with the first compression ratio, and fuzzy region is compiled with the second compression ratio
Code, to obtain corresponding encoded video;Wherein described second compression ratio is more than first compression ratio.
Different compression ratios is used to clear area and fuzzy region.Specifically, with the first compression ratio to clear area into
Row coding, encodes fuzzy region with the second compression ratio.
Wherein, when being compressed to the video, to first compression ratio and second compression ratio into Mobile state
Adjustment so that the highest code check of compressed video output is less than default code check.
In general, the Common Parameters encoded using dynamic code rate (VBR) to video include target bit rate, maximum code
Rate, minimum code rate.
The clear area of each two field picture and the change of fuzzy region, dynamically carry out difference to each two field picture of video
Processing, i.e., dynamically set the first compression ratio and the second compression ratio to each two field picture.The video after ensureing coding can be set
Highest code check be less than default code check, phenomena such as in network transmission, to occur without interim card buffering.
In general, compression ratio is smaller, and the code check of video is bigger;Compression ratio is smaller, and the code check of video is bigger.
Further, the highest code check of the video after coding can be limited by adjusting the first compression ratio and the second compression ratio
Within default code check.
Less compression ratio is used to clear area, more picture details can be retained, improve the quality of video pictures,
Larger compression ratio is used to fuzzy region, the code check of video can be reduced.In the case where ensureing image sharpness, effectively drop
Low data bulk size, reduces demand of the video network transmission to bandwidth, and network video is being played to balance the video of video camera shooting
During frequency, the clarity of picture and the fluency played.
Step S103 and step S102 can be carried out at the same time.Due to needing the clear area to each frame video image
It is identified with fuzzy region, in identification process, identified two field picture can be encoded.This depends on program
Implementation.
It should be appreciated that above-mentioned step does not have stringent execution sequence, it is all to be contemplated that and do not influence the reality of function
Existing change all should be within the scope of the present invention.
Embodiment two
A kind of method for video coding provided in this embodiment, its flow chart is as shown in Fig. 2, details are as follows with reference to attached drawing:
Step S201, obtains the video with Deep Canvas of video camera shooting.
Step S202, the corresponding image of each frame is resolved into by the video.
The video that video camera is shot is resolved into two field picture, individually to be handled each two field picture.
Step S203, is identified the clear area and fuzzy region of each two field picture.
The clear area and fuzzy region of each two field picture are identified.
Step S204, to each two field picture of the video, encodes clear area with the first compression ratio, with second
Compression ratio encodes fuzzy region, to obtain corresponding encoded video.
In general, the details of clear area is more, it is necessary to retain details;The details of fuzzy region is less, and details is few.
Wherein, second compression ratio is more than the first compression ratio, so that clear area retains more details, ensures picture
Clarity.
The video is handled in units of frame, because the clear area and fuzzy region per two field picture are different
's.
Embodiment three
A kind of video coding apparatus provided in this embodiment, its structure diagram is as shown in figure 3, details are as follows with reference to attached drawing:
The video coding apparatus includes:
Video acquiring module 31, for obtaining the video with Deep Canvas of video camera shooting;
Identification module 32, for identifying clear area and fuzzy region in the video;
Coding module 33, for being encoded with the first compression ratio to clear area, with the second compression ratio to fuzzy region
Encoded, to obtain corresponding encoded video;Wherein described second compression ratio is more than first compression ratio.
Further, the identification module 32 includes:
Submodule is decomposed, for the video to be resolved into the corresponding image of each frame;
Identify submodule, be identified for the clear area to each two field picture and fuzzy region.
Further, the coding module 33 includes:
Encoding submodule, for each two field picture to the video, encodes clear area with the first compression ratio,
Fuzzy region is encoded with the second compression ratio, to obtain corresponding encoded video.
Further, the video is the video shot in video conference;Wherein, the clear area is human body parts,
Fuzzy region is the background parts of video.
Further, the coding module, is additionally operable to when being compressed to the video, to first compression ratio and
Second compression ratio is dynamically adjusted, so that the highest code check of compressed video output is less than default code check.
Since video coding apparatus provided in this embodiment is applied to foregoing embodiment of the method, relevant content is referring to side
Method embodiment, which is not described herein again.
In embodiment provided herein, it should be appreciated that described method and system is all schematical, in reality
By adjusting can difference in the implementation process of border.
In addition, the specific name of each functional unit or module is also only to facilitate mutually differentiation, is not used to the present invention
Protection domain.
Specific embodiment described herein is only to spirit explanation for example of the invention.Technology belonging to the present invention is led
The technical staff in domain can do various modifications or additions to described specific embodiment or replace in a similar way
Generation, but without departing from spirit of the invention or beyond the scope of the appended claims.
Claims (10)
1. a kind of method for video coding, it is characterised in that including step:
Obtain the video with Deep Canvas of video camera shooting;
Identify the clear area in the video and fuzzy region;
Clear area is encoded with the first compression ratio, fuzzy region is encoded with the second compression ratio, to obtain correspondence
Encoded video;Wherein described second compression ratio is more than first compression ratio.
2. method for video coding according to claim 1, it is characterised in that the clear area in the identification video
Include with fuzzy region:
The video is resolved into the corresponding image of each frame;
The clear area and fuzzy region of each two field picture are identified.
3. method for video coding according to claim 2, it is characterised in that it is described with the first compression ratio to clear area into
Row coding, encodes fuzzy region with the second compression ratio, is included with obtaining corresponding encoded video:
To each two field picture of the video, clear area is encoded with the first compression ratio, with the second compression ratio to fuzzy
Region is encoded, to obtain corresponding encoded video.
4. according to claim 1-3 any one of them method for video coding, it is characterised in that the video is in video conference
The video of shooting;Wherein, the clear area is human body parts, and fuzzy region is the background parts of video.
5. method for video coding according to claim 1, it is characterised in that further include:
When being compressed to the video, first compression ratio and second compression ratio are dynamically adjusted, with
The highest code check of compressed video output is set to be less than default code check.
A kind of 6. video coding apparatus, it is characterised in that including:
Video acquiring module, for obtaining the video with Deep Canvas of video camera shooting;
Identification module, for identifying clear area and fuzzy region in the video;
Coding module, for being encoded with the first compression ratio to clear area, compiles fuzzy region with the second compression ratio
Code, to obtain corresponding encoded video;Wherein described second compression ratio is more than first compression ratio.
7. video coding apparatus according to claim 6, it is characterised in that the identification module includes:
Submodule is decomposed, for the video to be resolved into the corresponding image of each frame;
Identify submodule, be identified for the clear area to each two field picture and fuzzy region.
8. video coding apparatus according to claim 7, it is characterised in that the coding module includes:
Encoding submodule, for each two field picture to the video, encodes clear area with the first compression ratio, with
Two compression ratios encode fuzzy region, to obtain corresponding encoded video.
9. according to claim 6-8 any one of them video coding apparatus, it is characterised in that the video is in video conference
The video of shooting;Wherein, the clear area is human body parts, and fuzzy region is the background parts of video.
10. video coding apparatus according to claim 6, it is characterised in that the coding module, is additionally operable to described
When video is compressed, first compression ratio and second compression ratio are dynamically adjusted, so that compressed regard
The highest code check of frequency output is less than default code check.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711425671.2A CN107948650A (en) | 2017-12-25 | 2017-12-25 | A kind of method for video coding and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711425671.2A CN107948650A (en) | 2017-12-25 | 2017-12-25 | A kind of method for video coding and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107948650A true CN107948650A (en) | 2018-04-20 |
Family
ID=61940083
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711425671.2A Pending CN107948650A (en) | 2017-12-25 | 2017-12-25 | A kind of method for video coding and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107948650A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109255996A (en) * | 2018-11-01 | 2019-01-22 | 南京伯索网络科技有限公司 | A kind of the broadcasting optimization method and system of Online class |
CN113691764A (en) * | 2021-10-25 | 2021-11-23 | 广州朗国电子科技股份有限公司 | Multi-conference equipment screen sharing method and equipment based on Hongmon system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262608A (en) * | 2007-03-06 | 2008-09-10 | 陆云昆 | A method for reducing code rate of monitoring compressed video |
CN104427291A (en) * | 2013-08-19 | 2015-03-18 | 华为技术有限公司 | Image processing method and device |
CN105430394A (en) * | 2015-11-23 | 2016-03-23 | 小米科技有限责任公司 | Video data compression processing method, apparatus and equipment |
CN105489194A (en) * | 2015-11-24 | 2016-04-13 | 小米科技有限责任公司 | Method and device for displaying images |
CN105721872A (en) * | 2016-01-29 | 2016-06-29 | 广东欧珀移动通信有限公司 | Image compression method, and terminal |
CN105791979A (en) * | 2014-12-26 | 2016-07-20 | 深圳Tcl数字技术有限公司 | Video file processing method and display device |
-
2017
- 2017-12-25 CN CN201711425671.2A patent/CN107948650A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262608A (en) * | 2007-03-06 | 2008-09-10 | 陆云昆 | A method for reducing code rate of monitoring compressed video |
CN104427291A (en) * | 2013-08-19 | 2015-03-18 | 华为技术有限公司 | Image processing method and device |
CN105791979A (en) * | 2014-12-26 | 2016-07-20 | 深圳Tcl数字技术有限公司 | Video file processing method and display device |
CN105430394A (en) * | 2015-11-23 | 2016-03-23 | 小米科技有限责任公司 | Video data compression processing method, apparatus and equipment |
CN105489194A (en) * | 2015-11-24 | 2016-04-13 | 小米科技有限责任公司 | Method and device for displaying images |
CN105721872A (en) * | 2016-01-29 | 2016-06-29 | 广东欧珀移动通信有限公司 | Image compression method, and terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109255996A (en) * | 2018-11-01 | 2019-01-22 | 南京伯索网络科技有限公司 | A kind of the broadcasting optimization method and system of Online class |
CN113691764A (en) * | 2021-10-25 | 2021-11-23 | 广州朗国电子科技股份有限公司 | Multi-conference equipment screen sharing method and equipment based on Hongmon system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11109011B2 (en) | Virtual reality with interactive streaming video and likelihood-based foveation | |
US10423830B2 (en) | Eye contact correction in real time using neural network based machine learning | |
US8723978B2 (en) | Image fusion apparatus and method | |
US11330262B2 (en) | Local image enhancing method and apparatus | |
US20180048901A1 (en) | Determining chroma quantization parameters for video coding | |
US10555002B2 (en) | Long term reference picture coding | |
US7162096B1 (en) | System and method for dynamic perceptual coding of macroblocks in a video frame | |
US10298857B2 (en) | Image processing method and apparatus, integrated circuitry and recording medium for applying gain to a pixel | |
KR102293193B1 (en) | Transmission device, transmission method, receiving device and receiving method | |
Wang et al. | Research on subjective stereoscopic image quality assessment | |
JP2011109671A (en) | Adaptive compression of background image (acbi) based on segmentation of three dimensional objects | |
US20110141239A1 (en) | Three-Dimensional Recording and Display System Using Near- and Distal-Focused Images | |
US11307655B2 (en) | Multi-stream foveal display transport | |
CN106303573A (en) | A kind of 3D method of video image processing and server and client side | |
US11368692B2 (en) | Content adaptive quantization strength and bitrate modeling | |
CN111757090A (en) | Real-time VR image filtering method, system and storage medium based on fixation point information | |
CN107948650A (en) | A kind of method for video coding and device | |
CN108923853A (en) | Display methods and device, visible light communication transmission method and device | |
CN106327444B (en) | One kind is for color synthetic method and device in high dynamic range images synthesis | |
CN109963156A (en) | Use the efficient mixing of encoder | |
CN111225254A (en) | Video transmission method, device, terminal equipment and storage medium | |
CN109685727B (en) | Image processing method | |
JP2021530918A (en) | Forviation and HDR | |
CN107409223B (en) | Video coding and decoding method and video coder-decoder | |
US20230099405A1 (en) | Image data transfer apparatus, image display system, and image data transfer method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180420 |
|
RJ01 | Rejection of invention patent application after publication |