Supercharge Your Innovation With Domain-Expert AI Agents!

A method and device for controlling motion JPEG coding rate

A coding rate and coding technology, which is applied in the field of video coding, can solve the problems of complex implementation, high resource consumption, and cost, and achieve the effect of simple implementation and resource saving

Active Publication Date: 2019-05-24
ZHEJIANG DAHUA TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The existing technology for controlling the coding rate needs to extract the edge information in the image, multiply the edge by a scale factor, add it to the pre-processed image before encoding, and process the image source, which is more complicated and expensive to implement. big resource
[0003] JPEG (Joint Photographic Experts Group, Joint Photographic Experts Group) is a static image encoding, each frame is encoded using the same quantization level, Motion JPEG is continuous JPEG encoding, the encoding principle is exactly the same as JPEG, therefore, it cannot be passed like H.264 Adjust the quantization step size of the macroblock in real time to control the code rate
However, the JPEG standard does not provide a quantization table that is linearly related to the code stream, so even in JPEG encoding where adjacent scenes have a large correlation, it is difficult to adjust the quantization table to make the current bit rate close to the target bit rate in time
[0004] The disadvantage of the prior art is that the implementation is complicated and consumes a lot of resources

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
  • A method and device for controlling motion JPEG coding rate
  • A method and device for controlling motion JPEG coding rate
  • A method and device for controlling motion JPEG coding rate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0104] figure 2 It is a schematic diagram of the stream control flow of Motion JPEG, as shown in the figure, which may include the following steps:

[0105] Step 201, input Motion JPEG image source and target code rate;

[0106] For the implementation of step 201, according to actual needs, set the target code rate, that is, the number of bits transmitted per unit time, and a target code stream size value can be obtained.

[0107] Step 202, performing preprocessing to obtain the threshold a;

[0108] Step 203, calculate the difference i between the current code stream and the target code stream, automatically adjust the quantization level according to the value of the threshold a divided by i, roughly adjust X, and update the brightness quantization table and chroma quantization table;

[0109] For the implementation of step 202 and step 203, after preprocessing, the relationship between the difference i between the current code stream and the target code stream and the thr...

Embodiment 2

[0121] The purpose of the preprocessing is to obtain the threshold value a of the bit stream size difference between two adjacent quantization levels in adjacent scenes with high correlation. There are 12 quantization tables available through a set of X values ​​and relational expressions It can be obtained that the quantization level QL (quality level) corresponds to the X value in the group in turn (more quantization tables can be added according to the relational expression). There are two situations to get a, as follows:

[0122] In the first case, when encoding is just started, the quantization levels are first set to 0 and 1, and the corresponding code stream sizes are respectively obtained as m and n, and the code stream difference a=n-m at this time.

[0123] In the second case, during the encoding process, compared with the initial encoding scene, the scene changes greatly, and when i is greater than or equal to 3a, if the size difference between the current code st...

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 method and device for controlling a Motion JPEG coding rate. The method comprises the following steps of: determining a target code stream of a video frame, and determining a difference value i of the current code stream and the target code stream of the video frame in a process of coding the video frame according to a brightness quantization table and a chromaticity quantization table; when the absolute value of i is less than a threshold value a and greater than a formula as shown in the specification, updating the brightness quantization table and the chromaticity quantization table by adjusting the zoom percentage X of the quantization step size of a quantized value in the brightness quantization table and the chromaticity quantization table, wherein a is a different value of two code streams corresponding to adjacent two quantization levels QL; a first set value is determined according to the complexity of a video coding scene; and furthermore, the first set value is greater than 1; and coding the video frame according to the updated brightness quantization table and chromaticity quantization table. By means of the method and the device disclosed by the invention, the target code rate can be controlled by adjusting the quantization tables; implementation is carried out simply; and resources are saved.

Description

technical field [0001] The invention relates to the technical field of video coding, in particular to a method and device for controlling the coding rate of Motion JPEG. Background technique [0002] The existing technology for controlling the coding rate needs to extract the edge information in the image, multiply the edge by a scale factor, add it to the pre-processed image before encoding, and process the image source, which is relatively complicated and expensive to implement. Great resource. [0003] JPEG (Joint Photographic Experts Group, Joint Photographic Experts Group) is a static image encoding, each frame uses the same quantization level encoding, Motion JPEG is a continuous JPEG encoding, the encoding principle is exactly the same as JPEG, therefore, it cannot be passed like H.264 Adjust the quantization step size of the macroblock in real time to control the code rate. However, the JPEG standard does not provide a quantization table that is linearly related to...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04N19/86H04N19/60H04N19/124H04N19/186H04N19/117H04N19/80
CPCH04N19/117H04N19/124H04N19/186H04N19/60H04N19/80H04N19/86
Inventor 戢庆菁陆金刚方伟陈琦
Owner ZHEJIANG DAHUA TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More