Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Video encoding method and apparatus

A video encoding and encoding technology, applied in the field of video encoding and decoding, can solve the problem of long time-consuming encoding

Active Publication Date: 2017-09-08
ZHEJIANG DAHUA TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a video coding method and device to solve the problem of long coding time in the video coding process existing 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 apparatus
  • Video encoding method and apparatus
  • Video encoding method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] figure 1 A schematic diagram of a video encoding process provided by an embodiment of the present invention, the process includes the following steps:

[0050] S101: According to each macroblock in a video image to be encoded, divide each macroblock into a set number of sub-macroblocks, where each sub-macroblock includes at least two pixels.

[0051] 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 camera, a video camera, and other devices capable of image acquisition. The image acquisition device can divide each macroblock in the video image to be encoded into The number of sub-macroblocks is set, and each sub-macroblock includes at least two pixels.

[0052] The video image to be encoded is a frame of image in the video.

[0053] The process in which the image acquisition device divides each macroblock into a set number of sub-macroblocks is carried out acco...

Embodiment 2

[0071] In order to further improve the quality of the encoded video picture, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, the weight value of each macroblock is calculated according to the JND value of each macroblock and the pre-saved weight factor algorithm include:

[0072] Determine the average JND value of the video image according to the JND value of each macroblock;

[0073] The JND value for each macroblock, the average JND value of the video image, and the formula Determine the weight value of each macroblock, where the is the weight value of the i-th macroblock, a, b, and c are all constant coefficients, and exp is an exponential function with the natural constant e as the base, is the JND value of the i-th macroblock, STJND frame is the average JND value of the video image.

[0074] The purpose of coding based on subjective quality in the coding of video images is to use the known characteristics of the human vi...

Embodiment 3

[0082] In order to further reduce the code rate, on the basis of the above embodiments, in the embodiment of the present invention, after calculating the weight value of each macro block according to the JND value of each macro block and the weight factor algorithm saved in advance, the According to the weight value of each macroblock, the initial QP value of each macroblock and the preset interval QP algorithm, before determining the interval QP value of each macroblock, the method also includes:

[0083] Find the macroblock with the smallest JND value according to the JND value of each macroblock;

[0084] According to the weight value of each macroblock, determine the proportional relationship between the weight value of the macroblock with the smallest JND value and the weight values ​​of other macroblocks;

[0085] updating the weight value of the macroblock with the smallest JND value to a first weight value, according to the updated first weight value and the determined...

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 apparatus. The method comprises the following steps: according to each macro block in a to-be-encoded video image, dividing each macro block into a set number of sub macro blocks, wherein each sub macro block comprises at least two pixel points; calculating a JND value of each sub macro block according to a pre-stored just noticeable difference (JND) algorithm; determining the JND value of each macro block according to the JND value of each sub macro block; calculating a weight value of each macro block according to the JND value of each macro block and a pre-stored weight factor algorithm; determining an interval QP value of each macro block according to the weight value of each macro block, an initial QP value of each macro block and a preset interval QP algorithm; and determining a target QP value of each macro block according to the initial QP value of each macro block and / or the interval QP value of each macro block, and performing encoding according to the target QP value of each macro block. The encoding time consumption is reduced, and the encoding instantaneity is guaranteed.

Description

technical field [0001] The present invention relates to the technical field of video encoding and decoding, in particular to a video encoding method and device. Background technique [0002] The data volume of video data is relatively large, and it will be limited by external environmental conditions such as the upper limit of network transmission during the transmission process, so it is usually necessary to encode it. The encoded data is called a video code stream, and the video code stream passes through Wired or wireless network transmission to the client, and then decoded to watch. [0003] The existing video encoding method is to combine the ROI (Region Of Interest) model and the JND (Just Noticeable Difference, just detectable distortion) model to complete the video encoding. The image is divided into the background part, the edge part and the region of interest, and each part is quantified hierarchically, and then according to the JND value of the pixel level obtain...

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/176H04N19/117H04N19/124
CPCH04N19/117H04N19/124H04N19/176
Inventor 陈瑶林聚财
Owner ZHEJIANG DAHUA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products