Video encoding and decoding method and apparatus

US2018152728A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2018152728-A1
Application numberUS-201815882346-A
CountryUS
Kind codeA1
Filing dateJan 29, 2018
Priority dateJul 30, 2015
Publication dateMay 31, 2018
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A video encoding and decoding method and apparatus are provided. The video encoding method includes: obtaining a first statistical characteristic of previous K frames of images of a video sequence; determining a first background frame; determining, according to the first statistical characteristic, a QP used for encoding the first background frame; encoding the first background frame according to the QP, to obtain a first background long-term reference frame; and encoding the (K+1) th frame of image of the video sequence to the (K+L) th frame of image of the video sequence according to the first background long-term reference frame. When encoding is performed on the (K+1) th frame of image of the video sequence to the (K+L) th frame of image of the video sequence, the used QP for encoding the background long-term reference frame is determined according to the first statistical characteristic related to video content of the previous K frames of images.

First claim

Opening claim text (preview).

1 . A video encoding method, comprising: obtaining a first statistical characteristic of previous K frames of images of a video sequence, wherein K is a positive integer; determining a first background frame, wherein the first background frame is used as a reference when encoding is performed on the (K+1) th frame of image of the video sequence to the (K+L) th frame of image of the video sequence, wherein L is a positive integer; determining, according to the first statistical characteristic, a quantization parameter (QP) used for encoding the first background frame; encoding the first background frame according to the QP, to obtain a first background long-term reference frame; and encoding the (K+1) th frame of image of the video sequence to the (K+L) th frame of image of the video sequence according to the first background long-term reference frame. 2 . The method according to claim 1 , wherein determining the QP used for encoding the first background frame comprises: obtaining, according to the first statistical characteristic, a first probability that an image block in each of the (K+1) th frame of image of the video sequence to the (K+L) th frame of image of the video sequence uses the first background frame as a reference; and obtaining, according to the first probability, the QP used for encoding the first background frame. 3 . The method according to claim 1 , wherein the first statistical characteristic comprises a variance of K centroid values corresponding to K image blocks and an average coding distortion of K coding distortions corresponding to the K image blocks, wherein the K image blocks are image blocks located at same locations in all of the previous K frames of images, the variance of the K centroid values is a variance of a centroid value sequence constituted by the K centroid values, and the average coding distortion of the K coding distortions is an average value of a coding distortion sequence constituted by the K coding distortions. 4 . The method according to claim 3 , wherein the K image blocks are the i th image blocks in all of the previous K frames of images, wherein i is a positive integer; and wherein obtaining the first statistical characteristic of the previous K frames of images of the video sequence comprises: performing iteration calculation according to an order from the second frame of image of the previous K frames of images to the K th frame of image of the previous K frames of images, to obtain the variance of the K centroid values corresponding to the i th image blocks in all of the previous K frames of images, and the average coding distortion of the K coding distortions corresponding to the i th image blocks in all of the previous K frames of images, wherein the iteration calculation comprises: determining whether the i th image block in the j th frame of image of the video sequence belongs to a background region; and when the i th image block in the j th frame of image of the video sequence belongs to the background region, obtaining, according to B j,i =B j−1,i +1, a quantity B j,i of image blocks that are of previous j image blocks and that belong to the background region, wherein the previous j image blocks are the i th image blocks in all of previous j frames of images of the video sequence; and obtaining, according to B j,i , a variance of j centroid values corresponding to the i th image blocks in all of the previous j frames of images and an average coding distortion of j coding distortions corresponding to the i th image blocks in all of the previous j frames of images, wherein K≥j≥2, and when the i th image block in the first frame of image of the video sequence belongs to the background region, B 1,i is 1, or when the ith image block in the first frame of image of the video sequence does not belong to the background region, B 1,i is 0; or when the i th image block in the j th frame of image of the video sequence does not belong to the background region, obtaining, according to B j,i =B j−1,i , a quantity B j,i of image blocks that are of previous j image blocks and that belong to the background region, wherein the previous j image blocks are the i th image blocks in all of previous j frames of images, using a variance of j−1 centroid values corresponding to the i th image blocks in all of previous j−1 frames of images of the video sequence as a variance of j centroid values corresponding to the i th image blocks in all of the previous j frames of images, and using an average coding distortion of j−1 coding distortions corresponding to the i th image blocks in all of the previous j−1 frames of images of the video sequence as an average coding distortion of j coding distortions corresponding to the i th image blocks in all of the previous j frames of images of the video sequence, wherein when j is 2, the variance of the j−1 centroid values corresponding to the i th image blocks in all of the previous j−1 frames of images is a first preset value, and the average coding distortion of the j−1 coding distortions corresponding to the i th image blocks in all of the previous j−1 frames of images is a second preset value or a coding distortion of the first frame of image of the video sequence. 5 . The method according to claim 4 , wherein determining whether the i th image block in the j th frame of image of the video sequence belongs to the background region comprises: determining whether a horizontal component of a minimum motion vector in motion vectors of an image subblock of the i th image block in the j th frame of image is less than a first preset threshold, and whether a vertical component of the minimum motion vector is less than a second preset threshold; and when the horizontal component is less than the first preset threshold, and the vertical component is less than the second preset threshold, determining that the i th image block in the j th frame of image belongs to the background region; or when the horizontal component is not less than the first preset threshold or the vertical component is not less than the second preset threshold, determining that the i th image block in the j th frame of image does not belong to the background region. 6 . The method according to claim 4 , wherein obtaining, according to B j,i , a variance of j centroid values and the average coding distortion of j coding distortions comprises: obtaining a centroid value and a coding distortion of the i th image block in the j th frame of image; obtaining, according to the centroid value of the i th image block in the j th frame of image and B j,i , the variance of the j centroid values corresponding to the i th image blocks in all of the previous j frames of images; and obtaining, according to the coding distortion of the i th image block in the j th frame of image and B j,i , the average coding distortion of the j coding distortions corresponding to the i th image blocks in all of the previous j frames of images. 7 . The method according to claim 6 , wherein the average coding distortion of the j coding distortions corresponding to the i th image blocks in all of the previous j frames of images is obtained through the following: e j , i 2 = { d j ,

Assignees

Inventors

Classifications

  • the adaptation method, adaptation tool or adaptation type being iterative or recursive · CPC title

  • Quantisation · CPC title

  • the region being a block, e.g. a macroblock · CPC title

  • Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence) · CPC title

  • Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2018152728A1 cover?
A video encoding and decoding method and apparatus are provided. The video encoding method includes: obtaining a first statistical characteristic of previous K frames of images of a video sequence; determining a first background frame; determining, according to the first statistical characteristic, a QP used for encoding the first background frame; encoding the first background frame according …
Who is the assignee on this patent?
Huawei Tech Co Ltd, Univ Science & Technology China
What technology area does this patent fall under?
Primary CPC classification H04N19/58. Mapped technology areas include Electricity.
When was this patent published?
Publication date Thu May 31 2018 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).