Method for encoding video data, device, and storage medium

US12015770B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12015770-B2
Application numberUS-202017773276-A
CountryUS
Kind codeB2
Filing dateAug 24, 2020
Priority dateOct 31, 2019
Publication dateJun 18, 2024
Grant dateJun 18, 2024

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.

Provided is a method for encoding video data. The method includes: acquiring video data; configuring an encoding parameter of an encoder; determining a first time interval between two adjacent video frames in a group of pictures based on the encoding parameter; and adjusting a number of video frames in the group of pictures based on the first time interval by encoding the video data based on the encoding parameter. A device and a storage medium are also provided.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for encoding video data, applicable to an encoder, the method comprising: acquiring video data; configuring an encoding parameter of the encoder; determining a first time interval between two adjacent video frames in a group of pictures (GOP) based on the encoding parameter; and adjusting a number of video frames in the GOP based on the first time interval by encoding the video data based on the encoding parameter; wherein configuring the encoding parameter of the encoder comprises: acquiring a target frame rate, a target bitrate, a target number of frames in the GOP, and an encoding period of the GOP; calculating a conversion factor using the target frame rate, the target number of frames, and the encoding period; and acquiring an encoding frame rate and an encoding bitrate by converting the target frame rate and the target bitrate based on the conversion factor. 2. The method according to claim 1 , wherein calculating the conversion factor using the target frame rate, the target number of frames, and the encoding period comprises: acquiring a first product by calculating a product of the target number of frames and the encoding period; and acquiring the conversion factor by calculating a ratio of the target frame rate to the first product. 3. The method according to claim 1 , wherein the encoding period is an integral multiple of 1 second. 4. The method according to claim 1 , wherein acquiring the encoding frame rate and the encoding bitrate by converting the target frame rate and the target bitrate based on the conversion factor comprises: acquiring the encoding frame rate by calculating a ratio of the target frame rate to the conversion factor; and acquiring the encoding bitrate by calculating a ratio of the target bitrate to the conversion factor. 5. The method according to claim 1 , wherein the encoding parameter comprises the encoding frame rate, and determining the first time interval between the two adjacent video frames in the GOP based on the encoding parameter comprises: calculating a time interval between the two adjacent video frames in the GOP using the encoding frame rate, and determining the time interval between the two adjacent video frames in the GOP as the first time interval. 6. The method according to claim 1 , wherein the video data comprises a timestamp, the encoding parameter comprises the encoding bitrate, and adjusting the number of video frames in the GOP based on the first time interval by encoding the video data based on the encoding parameter comprises: acquiring an encoding timestamp by adjusting the timestamp of the video data based on the first time interval; and encoding the video data based on the encoding bitrate, the encoding period, and the encoding timestamp. 7. The method according to claim 6 , wherein encoding the video data based on the encoding bitrate, the encoding period, and the encoding timestamp comprises: acquiring encoding time of each video frame in the video data from the encoding timestamp; determining video frames in the GOP based on the encoding time and the encoding period; acquiring encoded video data comprising a plurality of GOPs by encoding video frames in the plurality of GOPs based on the encoding bitrate; and acquiring a timestamp of the encoded video data by adjusting the encoding timestamp. 8. The method according to claim 7 , wherein determining the video frames in the GOP based on the encoding time and the encoding period comprises: determining a start video frame and an end video frame in the GOP based on the encoding period and the encoding time; and determining the start video frame, the end video frame, and video frames between the start video frame and the end video frame as the video frames in the GOP. 9. The method according to claim 8 , wherein acquiring the encoded video data comprising the plurality of GOPs by encoding the video frames in the plurality of GOPs based on the encoding bitrate comprises: in response to encoding the video frames in the plurality of GOPs based on the encoding bitrate, encoding the start video frame as a key frame; and encoding video frames behind the start video frame in each of the GOPs as predicted frames. 10. The method according to claim 7 , wherein the encoding parameter comprises the target frame rate, and acquiring the timestamp of the encoded video data by adjusting the encoding timestamp comprises: acquiring a second time interval by calculating a time interval between two adjacent video frames in the encoded video data based on the target frame rate; and adjusting a time interval between two adjacent video frames in the encoding timestamp to the second time interval, wherein the second time interval is not equal to the first time interval. 11. A device for encoding video data, comprising: one or more processors; and one or more memories, configured for storing one or more programs; wherein the one or more processors, when running the one or more programs, are caused to perform a method for encoding video data, the method comprising: acquiring video data; configuring an encoding parameter of the encoder; determining a first time interval between two adjacent video frames in a group of pictures (GOP) based on the encoding parameter; and adjusting a number of video frames in the GOP based on the first time interval by encoding the video data based on the encoding parameter; wherein configuring the encoding parameter of the encoder comprises: acquiring a target frame rate, a target bitrate, a target number of frames in the GOP, and an encoding period of the GOP; calculating a conversion factor using the target frame rate, the target number of frames, and the encoding period; and acquiring an encoding frame rate and an encoding bitrate by converting the target frame rate and the target bitrate based on the conversion factor. 12. The device according to claim 11 , wherein calculating the conversion factor using the target frame rate, the target number of frames, and the encoding period comprises: acquiring a first product by calculating a product of the target number of frames and the encoding period; and acquiring the conversion factor by calculating a ratio of the target frame rate to the first product. 13. The device according to claim 11 , wherein the encoding period is an integral multiple of 1 second. 14. The device according to claim 11 , wherein acquiring the encoding frame rate and the encoding bitrate by converting the target frame rate and the target bitrate based on the conversion factor comprises: acquiring the encoding frame rate by calculating a ratio of the target frame rate to the conversion factor; and acquiring the encoding bitrate by calculating a ratio of the target bitrate to the conversion factor. 15. The device according to claim 11 , wherein the encoding parameter comprises the encoding frame rate, and determining the first time interval between the two adjacent video frames in the GOP based on the encoding parameter comprises: calculating a time interval between the two adjacent video frames in the GOP using the encoding frame rate, and determining the time interval between the two adjacent video frames in the GOP as the first time interval. 16. The device according to claim 11 , wherein the video data comprises a timestamp, the encoding parameter comprises the encoding bitrate, and adjusting the number of video frames in the GOP based on the first time interval by encoding the video data based on the encoding parameter comprises: acquiring an encoding timestamp by a

Assignees

Inventors

Classifications

  • H04N19/177Primary

    the unit being a group of pictures [GOP] · CPC title

  • Data rate or code amount at the encoder output · CPC title

  • Adapting the group of pictures [GOP] structure, e.g. number of B-frames between two anchor frames (H04N19/107 takes precedence) · CPC title

  • by estimating the code amount by means of a model, e.g. mathematical model or statistical model · CPC title

  • H04N19/115Primary

    Selection of the code volume for a coding unit prior to coding · 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 US12015770B2 cover?
Provided is a method for encoding video data. The method includes: acquiring video data; configuring an encoding parameter of an encoder; determining a first time interval between two adjacent video frames in a group of pictures based on the encoding parameter; and adjusting a number of video frames in the group of pictures based on the first time interval by encoding the video data based on th…
Who is the assignee on this patent?
Bigo Tech Pte Ltd
What technology area does this patent fall under?
Primary CPC classification H04N19/177. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Jun 18 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 2 related publications on this page (citations in our corpus or others sharing the same primary CPC).