Method for encoding video data, device, and storage medium
AssigneeBigo Technology Pte. Ltd.
InventorsXinning Wang, Qing Liu, Leju Yan
Life of this patent
Estimating the term…
Abstract
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.
Claims18
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.
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.
A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program, when run by a processor, causes the processor 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.
Dependencies are inferred from the claim text.