Video encoding method and device

A video coding and coding technology, applied in the field of video coding, can solve the problems of poor video picture quality and increased video bit rate, etc.

Inactive Publication Date: 2017-09-01
ZHEJIANG DAHUA TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a video coding method and device, which are used to solve the problems in the prior art ...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Video encoding method and device
  • Video encoding method and device
  • Video encoding method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] Figure 1B A schematic diagram of a video coding method provided by an embodiment of the present invention, the method includes the following steps:

[0035] S101: For the current frame to be encoded, if the current frame is a virtual I frame, calculate the difference between the motion vector of the virtual I frame and its referenced I frame, wherein the virtual I frame only uses the I frame as a reference The P frame of the frame.

[0036] The video encoding method provided by the embodiment of the present invention is applied to an image acquisition device. The image acquisition device may be a device capable of image acquisition such as a video camera or a video camera. The image acquisition device can calculate the difference between the motion vectors of the current frame and its reference frame.

[0037] The video coding method provided in the embodiment of the present invention is a video coding method based on the H.264 coding technology, and may also be a vid...

Embodiment 2

[0052] On the basis of the above embodiments, in the embodiment of the present invention, the calculation of the difference between the motion vector of the virtual I frame and its referenced I frame includes:

[0053] Divide the virtual I frame and its referenced I frame into multiple macroblocks according to a preset division method;

[0054] Calculating the sub-difference value of the motion vector of each macroblock corresponding to the virtual I frame and its referenced I frame;

[0055] The sum of the sub-differences of each macroblock corresponding to the virtual I frame and its referenced I frame is determined as the difference of the motion vectors of the virtual I frame and its referenced I frame.

[0056] The preset division method can divide the virtual I frame and its referenced I frame into multiple macroblocks, and the size of each macroblock can be the same or different, but the virtual I frame and its referenced I frame correspond to The size of each macroblo...

Embodiment 3

[0062] On the basis of the above-mentioned embodiments, in the embodiment of the present invention, if the difference is not greater than a preset difference threshold, the method further includes:

[0063] Encode the current frame.

[0064] If the difference is not greater than the preset difference threshold, it can be considered that the scene where the video picture is located has not changed, and encoding the current frame can ensure good picture quality. Specifically, the encoding of the current frame will The current frame is coded as a virtual I frame.

[0065] If the current frame is not a virtual I frame, the method also includes:

[0066] Encode the current frame.

[0067] If the non-virtual I frame is an I frame, encode the current frame as an I frame, and if the non-virtual I frame is a P frame, encode the current frame as a P frame.

[0068] Because in the present invention, when the current frame is a virtual I frame, the difference between the calculated mot...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a video encoding method and device. The method comprises the steps of: aiming at a current frame to be encoded, if the current frame is a virtual I frame, calculating a difference value of motion vectors of the virtual I frame and a reference I frame thereof; judging whether the difference value is greater than a preset difference value threshold; and if yes, encoding the current frame as an I frame. According to the video encoding method and device disclosed by the invention, when the current frame is the virtual I frame and the calculated difference value of the motion vectors of the virtual I frame and the reference I frame thereof is greater than the preset difference value threshold, a scene can be considered to be changed and the current frame is encoded as one I frame so as to ensure that when the scene is changed, image quality is high and a code rate cannot be obviously increased.

Description

technical field [0001] The present invention relates to the field of video coding, in particular to a video coding method and device. Background technique [0002] H.264 is a new generation of digital video compression format following MPEG (Moving Pictures Expert Group) 4, which can provide better image quality under the same bandwidth and lower codec under the same image quality. Rate. For the same image, the amount of data compressed by H.264 technology is only 1 / 8 of the amount of data compressed by MPEG2 technology, and 1 / 3 of the amount of data compressed by MPEG4 technology, so it is widely used in video surveillance field. With the growth of user demand, reducing the bit rate has become the focus of video coding. [0003] In the prior art, Smart (intelligent) 264 encoding technology is usually used to reduce the code rate. Smart264 encoding technology is simply to increase the H.264 technology of GOP (Group Of Pictures, group of pictures), that is, to increase the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04N19/137H04N19/176H04N19/94
CPCH04N19/137H04N19/176H04N19/94
Inventor 叶希立
Owner ZHEJIANG DAHUA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products