Content-aware, machine-learning-based rate control
Abstract
A system includes a processing device to receive video content, metadata related to the video content, and a target bit rate for encoding the video content. The processing device further detects a content type of the video content based on the metadata and encodes hardware to perform frame encoding on the video content. The system further includes a controller coupled between the processing device and the encoding hardware. The controller is programmed with machine instructions to generate first QP values on a per-frame basis using a frame machine learning model with a first plurality of weights. The first plurality of weights depends at least in part on the content type and the target bit rate. The controller further provides the first QP values to the encoding hardware for rate control of the frame encoding.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A system comprising: a processing device to: receive video content, metadata related to the video content, and a target bit rate for encoding the video content; and detect a content type of the video content based on one or more tags within the metadata, wherein the one or more tags are indicative of the content type received from a particular video streaming source device; encoding hardware to perform frame encoding on the video content and to generate frame statistics based on one or more encoded frames of the video content corresponding to a current frame; and a controller coupled between the processing device and the encoding hardware, the controller programmed with machine instructions to: receive the frame statistics from the encoding hardware; generate a first quantization parameter (QP) value of the current frame using a frame machine learning model with a first plurality of weights, wherein the first plurality of weights depends at least in part on the content type, the target bit rate, and the frame statistics; and provide the first QP value directly to the encoding hardware for rate control of the frame encoding.
- Claim 2Depends on #1
The system of claim 1, wherein the statistics include one or more of block-related metadata, frame-related metadata, bit budget information, or complexity motion information.
- Claim 3Depends on #1
The system of claim 1, wherein corresponding to the current frame comprises one of being adjacent, neighboring frames, frames within a same block, or frames within a same sub-block of the video content.
- Claim 4Depends on #1
The system of claim 1, wherein the processing device is further to: retrieve a plurality of parameters related to the detected content type; and provide the plurality of parameters to the controller; and wherein the machine instructions are further to select the first plurality of weights corresponding to the plurality of parameters.
- Claim 5Depends on #1
The system of claim 1, wherein the machine learning model is a frame reinforcement learning model that is instantiated in a neural network, wherein the neural network uses the first plurality of weights to maximize a reward function of the neural network while encoding a plurality of frames of the video content.
- Claim 6Depends on #1
The system of claim 1, wherein the encoding hardware is further to perform sub-frame encoding and generate sub-frame statistics, and the machine instructions are further to: generate a second QP value of a current sub-frame using a sub-frame machine learning model with a second plurality of weights, wherein the second plurality of weights depends at least in part on the content type, the target bit rate, and the sub-frame statistics; and provide the second QP value to the encoding hardware for rate control of the sub-frame encoding.
- Claim 7Depends on #6
The system of claim 6, wherein the encoding hardware is further to encode each respective sub-frame of a plurality of sub-frames using a respective one of a plurality of second QP values.
- Claim 8Independent Claim
An integrated circuit comprising: encoding hardware to perform frame encoding on video content and to generate frame statistics based on one or more encoded frames of the video content corresponding to a current frame; and a processing device coupled to encoding hardware, wherein the processing device is to implement, using program code, a frame machine learning rate controller that is to: receive the video content, metadata related to the video content, a target bit rate, and the frame statistics for encoding the video content; detect a content type of the video content based on one or more tags within the metadata, wherein the one or more tags are indicative of the content type received from a particular video streaming source device; generate a first quantization parameter (QP) value of the current frame using a frame machine learning model with a first plurality of weights, wherein the first plurality of weights depends at least in part on the content type, the target bit rate, and the frame statistics; and provide the first QP value directly to the encoding hardware for rate control of the frame encoding.
- Claim 9Depends on #8
The integrated circuit of claim 8, wherein the frame statistics include one or more of block-related metadata, frame-related metadata, bit budget information, or complexity motion information.
- Claim 10Depends on #8
The integrated circuit of claim 8, wherein corresponding to the current frame comprises one of being adjacent, neighboring frames, frames within a same block, or frames within a same sub-block of the video content.
- Claim 11Depends on #8
The integrated circuit of claim 8, wherein the processing device is further to: retrieve a plurality of parameters related to the detected content type; and select the first plurality of weights corresponding to the plurality of parameters.
- Claim 12Depends on #8
The integrated circuit of claim 8, wherein the machine learning model is a frame reinforcement learning model that is instantiated in a neural network, wherein the neural network uses the first plurality of weights to maximize a reward function of the neural network while encoding a plurality of frames of the video content.
- Claim 13Depends on #8
The integrated circuit of claim 8, wherein the encoding hardware is further to perform sub-frame encoding and generate sub-frame statistics, further comprising a controller coupled to the processing device and to execute machine instructions to: generate a second QP value on of a current sub-frame using a sub-frame machine learning model with a second plurality of weights, wherein the second plurality of weights depends at least in part on the content type, the target bit rate, and the sub-frame statistics; and provide the second QP value to the encoding hardware for rate control of the sub-frame encoding.
- Claim 14Depends on #8
The integrated circuit of claim 8, wherein the encoding hardware is further to encode each respective sub-frame of a plurality of sub-frames using a respective one of a plurality of second QP values.
- Claim 15Independent Claim
A method comprising: receiving video content, metadata related to the video content, and a target bit rate for encoding the video content; receiving, by a processing device, from encoding hardware that performs frame encoding, frame statistics based on one or more encoded frames of the video content corresponding to a current frame; detecting a content type of the video content based on one or more tags within the metadata, wherein the one or more tags are indicative of the content type received from a particular video streaming source device; generating, by the processing device, a first quantization parameter (QP) value of the current frame using a frame machine learning model with a first plurality of weights, wherein the first plurality of weights depends at least in part on the content type, the target bit rate, and the frame statistics; and providing, by the processing device, the first QP value directly to encoding hardware for rate control of frame encoding by the encoding hardware.
- Claim 16Depends on #15
The method of claim 15, wherein the frame statistics include one or more of block-related metadata, frame-related metadata, bit budget information, or complexity motion information.
- Claim 17Depends on #15
The method of claim 15, further comprising: retrieving a plurality of parameters related to the detected content type; and selecting the first plurality of weights corresponding to the plurality of parameters.
- Claim 18Depends on #15
The method of claim 15, wherein the machine learning model is a frame reinforcement learning model that is instantiated in a neural network, wherein the neural network uses the first plurality of weights to maximize a reward function of the neural network while encoding a plurality of frames of the video content.
- Claim 19Depends on #15
The method of claim 15, wherein the encoding hardware is further to perform sub-frame encoding and generate sub-frame statistics, the method further comprising: generating a second QP value of a current sub-frame using a sub-frame machine learning model with a second plurality of weights, wherein the second plurality of weights depends at least in part on the content type, the target bit rate, and the sub-frame statistics; and providing the second QP value to the encoding hardware for rate control of the sub-frame encoding.
- Claim 20Depends on #19
The method of claim 19, further comprising encoding, with the encoding hardware, each respective sub-frame of a plurality of sub-frames using a respective one of a plurality of second QP values.
Technical Overview & Description
TECHNICAL FIELD At least one embodiment pertains to processing resources used to perform and facilitate video encoding of video content. For example, at least one embodiment pertains to rate control that is content-aware and based on machine learning for video encoders. BACKGROUND Video encoders include a pipeline of staged video processing and encoding, which includes compression that enables video to be stored for later access or to be streamed directly or over a network (e.g., the Internet) to a destination video device. The video device thus also includes or is coupled with a decoder that decodes the video stream for playback. Optimizing video compression can increase access and quality of video content to users and reduce energy use and costs as online video streaming grows in popularity. One way of increasing streaming quality is through rate control (RC) of a video-encoding pipeline. Rate control can be understood as a decision-making algorithm that dictates the number of bits allocated for encoding a frame during a video compression process. This allocation of bits via RC considers how compressible a frame is (or that of a region in a frame) and how much quality (e.g., distortion) will be impacted if fewer bits are allocated for that frame (or frame region). Rate control is not part of the encoding standard and thus varies much across streaming platforms and providers. Some encoders, for example, employ statistical heuristics to estimate a quantization parameter (QP) that controls a bitrate-distortion trade-off. BRIEF DESCRIPTION OF DRAWINGS Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which: FIG. 1 is a block diagram of a video encoding system that includes a video encoding sub-system for employing RC-based machine learning in accordance with some embodiments; FIG. 2 A is a block diagram of a video encoding device of the video encoding sub-system in accordance with at least one embodiment
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (12)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Chen et al.,
- “
- Reinforcement Learning for HEVC/H.265 Frame-level Bit Allocation
- ”
- , 2018 IEEE 23rd International Conference on Digital Signal Processing (DSP), 5 pages, Nov. 19, 2018.
- Ho et al.,
- “
- A Dual-Critic Reinforcement Learning Framework for Frame-level Bit Allocation in HEVC/H.265
- ”
- , 2021 Data Compression Conference (DCC), pp. 13-22, Apr. 5, 2021.