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

Video frame encoding method and terminal

A video coding and video frame technology, applied in the video frame coding method and terminal field, can solve problems such as network impact, high peak bit rate, poor coding quality, etc.

Active Publication Date: 2019-03-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF15 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The processing of video frames has always been a difficult problem during scene switching, because the change of the shooting scene or the video screen scene will cause more bits to be generated during the video screen encoding process, which will cause a relatively large impact on the network and cause video card. pause
By adjusting the encoding parameters, although the number of bits consumed by the current video frame can be controlled when the scene is switched, the number of bits consumed by the current video frame is relatively small when the scene is switched, so the encoding quality is often poor, and there will still be some errors before and after the scene switch. More obvious block effect, and it is easy to cause the problem of high peak bit rate per second

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 frame encoding method and terminal
  • Video frame encoding method and terminal
  • Video frame encoding method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] The embodiment of the present invention provides a video frame encoding method, such as figure 2 As shown, the method may include:

[0042]S101. Acquire the i-th video frame of the image group, perform video encoding on the i-th video frame using the first encoding rule, and calculate the actual number of consumed bits corresponding to the i-th video frame after encoding, where i is greater than or equal to 1, and is less than or equal to N, where N is the total number of video frames in the image group.

[0043] A video frame encoding method provided by an embodiment of the present invention is applied to a scene where a terminal encodes a video frame when using an application to perform video communication or video shooting and other video-related functions, for example, video conference, live broadcast, VOIP, etc. Scenes.

[0044] It should be noted that, in the embodiment of the present invention, the video frame is composed of a group of pictures (GOP), and the ...

Embodiment 2

[0154] Based on the realization of Embodiment 1, the process of performing video coding on the i-th video frame by using the first coding rule in S101 in a video frame coding method provided by the embodiment of the present invention may include: S201-206. Such as Figure 6 As shown, the details are as follows:

[0155] S201. When the i-th video frame belongs to the second video frame to be compensated, obtain the third compensation allocation bit number of the i-th video frame from the second compensation allocation bit number corresponding to the second video frame to be compensated, and the second The video frame to be compensated is determined after encoding the video frame before the i-th video frame.

[0156] S202. Calculate a second quantization parameter of the i-th video frame based on the third compensation allocation bit number.

[0157] In the embodiment of the present invention, when the terminal encodes the i-th video frame, it adopts the first encoding rule, b...

Embodiment 3

[0173] Under the same inventive concept based on embodiment one and embodiment two, as Figure 7 As shown, the embodiment of the present invention provides a terminal 1, the terminal 1 may include:

[0174] An acquisition unit 10, configured to acquire the i-th video frame of the image group,

[0175] An encoding unit 11, configured to perform video encoding on the i-th video frame by using a first encoding rule,

[0176] The statistics unit 12 is used to calculate the actual number of consumed bits corresponding to the i-th video frame after encoding, wherein i is greater than or equal to 1 and less than or equal to N, and N is the total number of video frames in the image group;

[0177] A detection unit 13, configured to detect whether the i-th video frame is in a scene switching state based on the actual number of consumed bits, the initial average code rate of the image group, and the video frame detection rule;

[0178]A determining unit 14, configured to determine the...

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 frame encoding method and a terminal. The video frame encoding method comprises the steps of: acquiring an ith video frame of an image group, encoding the ith video frame by a first encoding rule, and carrying out statistics on an actual consumption bit number of the encoded ith video frame; based on the actual consumption bit number, an image group initial averagecode rate, a quantization model and a video frame detection rule, detecting a state of the ith video frame, and when the ith video frame is in a scene switching state, determining a first initial quantization parameter, a first maximum quantization parameter and a first minimum quantization parameter of an (i+1)th video frame; acquiring a compensation length, and based on the compensation length and a compensation model, determining a first compensation allocation bit number of a first to-be-compensated video frame; and when the (i+1)th video frame belongs to the first to-be-compensated videoframe, updating the first encoding rule by the first compensation allocation bit number, the first initial quantization parameter, the first maximum quantization parameter and the first minimum quantization parameter, and encoding the (i+1)th video frame.

Description

technical field [0001] The invention relates to video processing technology in the multimedia field, in particular to a video frame encoding method and terminal. Background technique [0002] With the continuous development of science and technology, electronic technology has also developed rapidly, and there are more and more types of electronic products, and people have also enjoyed various conveniences brought by the development of science and technology. Now people can enjoy the comfortable life brought by the development of science and technology through various types of electronic devices or terminals, as well as the application of various functions installed on the terminals. For example, a social application on the terminal can be used to conduct a video chat with distant friends, or a shooting application can be used to shoot a video. [0003] At present, during the use of video chatting in social applications on the terminal, there may sometimes be phenomena such ...

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 Applications(China)
IPC IPC(8): H04N19/172H04N19/146H04N19/142H04N19/124
CPCH04N19/124H04N19/142H04N19/146H04N19/172H04N19/87H04N19/159H04N7/0137H04N19/126H04N19/48H04N19/00H04N7/00
Inventor 郭耀耀毛煦楠谷沉沉高欣玮吕静
Owner TENCENT TECH (SHENZHEN) 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