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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com