WO2020089702A1 - Content adaptive quantization strength and bitrate modeling - Google Patents

Content adaptive quantization strength and bitrate modeling Download PDF

Info

Publication number
WO2020089702A1
WO2020089702A1 PCT/IB2019/055358 IB2019055358W WO2020089702A1 WO 2020089702 A1 WO2020089702 A1 WO 2020089702A1 IB 2019055358 W IB2019055358 W IB 2019055358W WO 2020089702 A1 WO2020089702 A1 WO 2020089702A1
Authority
WO
WIPO (PCT)
Prior art keywords
video frame
encoder
encoding
frame
size
Prior art date
Application number
PCT/IB2019/055358
Other languages
French (fr)
Inventor
Jinbo Qiu
Yang Liu
Ihab Amer
Lei Zhang
Edward A. Harold
Zhiqi Hao
Jiao Wang
Gabor Sines
Haibo Liu
Boris Ivanovic
Original Assignee
Ati Technologies Ulc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ati Technologies Ulc filed Critical Ati Technologies Ulc
Priority to KR1020217016416A priority Critical patent/KR102611940B1/en
Priority to CN201980068194.XA priority patent/CN112868230B/en
Priority to EP19878620.4A priority patent/EP3874749A4/en
Priority to JP2021520145A priority patent/JP7265623B2/en
Publication of WO2020089702A1 publication Critical patent/WO2020089702A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/192Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding the adaptation method, adaptation tool or adaptation type being iterative or recursive
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • H04N19/197Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters including determination of the initial value of an encoding parameter

Definitions

  • QP quantization parameter
  • block-based video encoding schemes such as those that comply with the H.264 standard
  • the QP regulates how much detail is preserved during the encoding process.
  • the QP selected for each video frame or each block of the frame is directly related to the size of the encoded video frame or size of the encoded block. Selecting lower QP values will retain more detail while yielding larger encoded sizes. Selecting higher QP values will cause more detail to be lost while producing smaller encoded sizes.
  • the term“quantization parameter” can also be referred to more generally as“quantization strength”.
  • FIG. 1 is a block diagram of one implementation of a system for encoding and decoding content.
  • FIG. 2 is a block diagram of one implementation of the software components of a server for encoding frames of a video.
  • FIG. 3 is a block diagram of one implementation of encoding logic.
  • FIG. 4 illustrates one example of a graph mapping QP to bitcount.
  • FIG. 5 illustrates one implementation of a graph for determining a QP value to match a target bitcount.
  • FIG. 6 is a generalized flow diagram illustrating one implementation of a method for generating a mapping to map bit size to QP.
  • FIG. 7 is a generalized flow diagram illustrating one implementation of a method for encoding a video frame.
  • a system includes at least an encoder, a pre-encoder, and a memory coupled to the encoder and pre-encoder.
  • the pre-encoder runs multiple pre-encoding passes on at least a portion of an input video frame.
  • the input video frame is pre- processed prior to the pre-encoding passes.
  • Each pre-encoding pass uses a different quantization strength setting.
  • the quantization strength setting refers to a particular quantization parameter (QP) used during the encoding process.
  • the pre-encoder For each pre-encoding pass, the pre-encoder captures the output bit-size of the encoded portion(s) of the input video frame. The pre-encoder uses the captured output bit-sizes to generate a model for mapping encoded video bitstream bit-size to quantization strength.
  • the encoder Before the encoder encodes the portion(s) of the input video frame, the encoder uses the model to map a specified bit-size to a corresponding quantization strength. In one implementation, the encoder provides a specified bit-size to the model and the model outputs the quantization strength value which will produce the specified bit- size. Then, the encoder encodes the portion(s) of the input video frame using the quantization strength value provided by the model so as to meet a given bit budget. In one implementation, by using the quantization strength value provided by the model, the encoder is able to make fewer quantization strength adjustments during the frame. This helps to improve the visual quality of the resulting encoded video bitstream.
  • System 100 includes server 105, network 110, client 115, and display 120.
  • system 100 includes multiple clients connected to server 105 via network 110, with the multiple clients receiving the same bitstream or different bitstreams generated by server 105.
  • System 100 can also include more than one server 105 for generating multiple bitstreams for multiple clients.
  • system 100 implements encoding and decoding of video content.
  • different applications such as a video game application, a cloud gaming application, a virtual desktop infrastructure application, or a screen sharing application are implemented by system 100.
  • system 100 executes other types of applications.
  • server 105 renders video or image frames, encodes the rendered frames into a bitstream, and then conveys the encoded bitstream to client 115 via network 110.
  • Client 115 decodes the encoded bitstream and generates video or image frames to drive to display 120 or to a display compositor.
  • Quantization is the mechanism used in video standards (e.g., high efficiency video coding (HEVC) standard, advanced video coding (AVC)) to control the size of an encoded video stream to meet the bandwidth requirements of a particular video application.
  • HEVC high efficiency video coding
  • AVC advanced video coding
  • This allows system 100 to send an encoded video stream from server 105 to client 115 in a consistent manner. It can be challenging to control the bit-rate of an encoded video stream while also providing an acceptable picture quality.
  • the preferred bitcount of each video frame is equal to the bit-rate of the encoded video stream divided by the frame-rate of the video sequence. It is noted that the term“bitcount” is used interchangeably herein with the term“bit- size”.
  • server 105 adjusts the quantization parameter (QP) used to encode an input video sequence to control the bitcount of each frame of the encoded video stream.
  • server 105 generates a model which maps bitcount to QP.
  • server 105 receives an indication of a desired bitcount or server 105 calculates a desired bitcount for each video frame.
  • server 105 uses the model to map the desired bitcount to a particular QP value.
  • server 105 sets the QP to this particular QP value when encoding a given video frame.
  • server 105 generates a different model for each video frame (or a portion of each video frame). In other implementations, server 105 reuses a given model for multiple video frames.
  • Network 110 is representative of any type of network or combination of networks, including wireless connection, direct local area network (LAN), metropolitan area network (MAN), wide area network (WAN), an Intranet, the Internet, a cable network, a packet- switched network, a fiber-optic network, a router, storage area network, or other type of network.
  • LANs include Ethernet networks, Fiber Distributed Data Interface (FDDI) networks, and token ring networks.
  • network 110 includes remote direct memory access (RDMA) hardware and/or software, transmission control protocol/intemet protocol (TCP/IP) hardware and/or software, router, repeaters, switches, grids, and/or other components.
  • RDMA remote direct memory access
  • TCP/IP transmission control protocol/intemet protocol
  • Server 105 includes any combination of software and/or hardware for rendering video/image frames, generating a model mapping bitcount to QP, and/or encoding the frames into a bitstream using the QP provided by the model.
  • server 105 includes one or more software applications executing on one or more processors of one or more servers.
  • Server 105 also includes network communication capabilities, one or more input/output devices, and/or other components.
  • the processor(s) of server 105 include any number and type (e.g., graphics processing units (GPUs), central processing units (CPUs), digital signal processors (DSPs), field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs)) of processors.
  • GPUs graphics processing units
  • CPUs central processing units
  • DSPs digital signal processors
  • FPGAs field programmable gate arrays
  • ASICs application specific integrated circuits
  • client 115 includes any combination of software and/or hardware for decoding a bitstream and driving frames to display 120.
  • client 115 includes one or more software applications executing on one or more processors of one or more computing devices.
  • client 115 is a computing device, game console, mobile device, streaming media player, or other type of device.
  • FIG. 2 a block diagram of one implementation of the software components of a server 200 for encoding frames of a video are shown. It is noted that in other implementations, server 200 includes other components and/or is arranged in other suitable manners than is shown in FIG. 2.
  • a new frame 205 of a video is received by server 200 and provided to pre-encoder 220 and encoder 230.
  • Each of pre-encoder 220 and encoder 230 is implemented using any suitable combination of hardware and/or software.
  • Pre-encoder 220 generates quantization parameter (QP) 225 to be used by encoder 230 when encoding new frame 205.
  • pre-encoder 220 generates QP 225 based on model 215.
  • model 215 identifies a target QP 225 to use for achieving a specified bit rate or bit size of encoded frame.
  • the term“encoded frame” can also be referred to as a “compressed frame”.
  • pre-encoder 220 receives pre-processed frame 210 and performs one or more operations on pre-processed frame 210.
  • pre encoder 220 generates pre-processed frame 210 from new frame 205.
  • pre-processed frame 210 is a downsampled version of new frame 205.
  • pre-processed frame 210 represents new frame 205 after one or more other types of operations (e.g., filtering) are performed on new frame 205 other than or in addition to downsampling.
  • pre-processed frame 210 is stored in memory 240.
  • Memory 240 is representative of any number and type of memory or cache device(s) for storing data and/or instructions associated with the encoding process.
  • pre- processed frame 210 corresponds to the entirety of the original new frame 205 or to a portion thereof.
  • pre-encoder 220 performs multiple pre-encoding passes on pre-processed frame 210 so as to generate model 215. For example, in one implementation, pre encoder 220 performs a first pre-encoding pass on pre-processed frame 210 with a first QP setting to determine the bit-size of the output frame for the first QP setting. Also, in this implementation, pre-encoder 220 performs a second pre-encoding pass on pre-processed frame 210 with a second QP setting to determine the bit-size of the resultant encoded frame for the second QP setting. It is assumed for the purposes of this discussion that the second QP setting is different from the first QP setting.
  • Pre-encoder 220 can also perform additional pre-encoding passes with other QP settings. After capturing the bit-sizes of the encoded frames for the different passes at different QP settings, pre-encoder 220 generates model 215 to map QP setting to bit-size. Then, the desired bit size is provided to model 215 to generate a corresponding QP 225.
  • Encoder 230 receives new frame 205 and encodes new frame 205 using a QP value equal to QP 225 generated by pre-encoder 220.
  • encoder sets the starting QP value to be equal to the QP 225 generated by model 215. Adjustments can be made to the starting QP value during the encoding of new frame 205 if encoder 230 determines that the amount of encoded data being generated is drifting too far from the target bit-size.
  • the output of encoder 230 is encoded frame 235 which is conveyed to one or more clients (e.g., client 115 of FIG. 1) and/or stored in memory.
  • pre-encoder 220 generates a new model 215 and QP 225 for each new frame 205. In another implementation, pre-encoder 220 reuses model 215 and QP 225 for one or more subsequent frames. In a further implementation, pre-encoder 220 generates model 215 from a portion of new frame 205 and then uses model 215 to generate QP 225 to be used for the encoding of other portions of new frame 205. In a still further implementation, pre-encoder 220 generates multiple models 215 for new frame 205, with each model 215 representing a different portion of new frame 205. In this implementation, pre-encoder 220 generates multiple QP values 225 to be used for encoding the different portions of new frame 205.
  • pre encoder 220 generates QP value 225 for encoding new frame 205 based on a bit rate that has been selected for the resulting encoded bit stream.
  • encoder 230 will typically make fewer QP adjustments during encoding of new frame 205. This will help to improve the visual quality of the resulting encoded frame 235.
  • FIG. 3 a block diagram of one implementation of encoding logic 300 is shown.
  • An original input video frame is received by encoder 305 and downscaling unit 310.
  • the original input video frame is in the YUV color space.
  • the original input video frame is encoded in other color spaces.
  • Encoder 305 encodes the input video frame and generates an encoded bitstream which is conveyed to memory 315.
  • Memory 315 is representative of any number and type of memory devices.
  • the encoded bitstream is formatted according to the high efficiency video coding (HEVC) standard.
  • the encoded bitstream is formatted according to the advanced video coding (AVC) standard.
  • the encoded bitstream is formatted according with other video coding standards.
  • HEVC high efficiency video coding
  • AVC advanced video coding
  • Downscaling unit 310 generates a downscaled frame from the original input video frame and conveys the downscaled frame to memory 315.
  • a downscaled frame can be used to generate a model for mapping bitcount to QP due to the relationship shown in equation 330.
  • equation 330 for a given video frame, the ratio between the bitcount of a low resolution version of a given video frame and the bitcount of a high resolution version of the given video frame is a constant for a given QP. Accordingly, a downscaled frame is processed by pre-encoding unit 320 at different QPs and the relationship between the resulting bitcounts will be representative of the relationship between bitcounts for different QPs used to encode the original frame.
  • downscaling unit 310 performs other types of filtering and/or preprocessing on the input video frame in addition to or other than downscaling. For example, in other implementations, downscaling unit 310 performs denoising, grayscale conversion, and/or other types of pre-processing steps.
  • the downscaled frame is conveyed to pre-encoding unit 320.
  • pre-encoding unit 320 performs at least two separate encodings of the downscaled frame using different QPs.
  • pre-encoding unit 320 performs at least two separate encodings of a portion of the downscaled frame using different QPs. Then, based on the sizes of the encoded frames (or sizes of the encoded portions of the frame), pre-encoding unit 320 creates a model to map output bit-size to QP.
  • the statistics for this model labeled“encode statistics”, are stored in memory 315.
  • the encode statistics are also conveyed to encoder 305.
  • Encoder 305 uses the encode statistics when determining which QP to select for the input video frame so as to meet a desired bit-size for the resulting encoded frame.
  • the desired bit- size for each encoded frame is determined based on a desired bit-rate of the encoded bitstream generated by encoder 305.
  • the desired bit-rate is specified in bits per second (e.g., 3 megabits per second (Mbps)) and the frame rate of the video sequence is specified in frames per second (fps) (e.g., 60 fps, 24 fps).
  • fps frames per second
  • encoder 305 divides the desired bit-rate by the frame rate to calculate a desired bit- size for each encoded frame.
  • encoding logic 300 performs variations to the above-described techniques for selecting an optimal quantization strength for encoding video data to meet a given bit budget.
  • pre-encoding unit 320 encodes a portion of a frame with different quantization strength settings. Pre-encoding unit 320 then captures the bit- size of the encoded portion at the different quantization strength settings.
  • pre-encoding unit 320 encodes two or more frames with different quantization strength settings and then captures the bit-sizes of corresponding encoded frames.
  • Plot 410 represents the bitcounts for different values of QP used for encoding a particular frame, a portion of a frame, or two or more frames of a video sequence.
  • the values for a and b are determined by experimentation. For example, in one implementation, the values for a and b are determined by pre-encoding a portion or the entirety of a frame using two or more different QP’s in two or more different pre-encoding passes.
  • the sizes of the encoded portion or entirety of the frame are captured, and then the QP’s and captured bit-sizes are used to solve for the values of a and b in the above equation.
  • the values for a and b are used to generate a model which determines the relationship between bitcount and QP.
  • the encoder determines a desired bitcount for a given video frame
  • the encoder uses the model to map the desired bitcount to a particular QP value.
  • the encoder uses the particular QP value when encoding the given video frame so as to generate an encoded video frame with the desired bitcount.
  • control logic or a pre-encoding unit implements two pre-encoding passes of a video frame with different QP values QP1 and QP2.
  • the control logic captures the bitcounts for these two pre-encoding passes.
  • the control logic performs more than two pre-encoding passes of a video frame with different QP values.
  • the bitcount bl corresponds to the pre-encoding pass with QP1 and is labeled with 510 on plot 505.
  • the bitcount b2 corresponds to the pre-encoding pass with QP2 and is labeled with 515 on plot 505.
  • the control logic After capturing bitcounts bl and b2 for the pre-encoding passes with QP1 and QP2, respectively, the control logic generates plot 505 to map the relationship between bitcount and QP. Then, when a desired bitcount target 520 is determined, the control logic maps the target 520 to a QP value of QP3 on plot 505. Then, the encoder sets the QP to the QP3 value when encoding the video frame and/or one or more subsequent video frames. Alternatively, the encoder uses the QP3 value when encoding one or more portions (e.g., blocks, coding units) of the video frame and/or one or more portions of other video frames.
  • portions e.g., blocks, coding units
  • FIG. 6 one implementation of a method 600 for generating a model to map bit size to a quantization parameter (QP) is shown.
  • QP quantization parameter
  • a pre-encoder performs a first encoding of at least a portion of a first video frame using a first quantization parameter (QP) setting (block 605). Then, the pre-encoder captures a first bit size of the encoded portion of the first video frame (block 610). It is noted that the term “bit size” can also be referred to as“bitcount” herein. Next, the pre-encoder performs a second encoding of at least the portion of the first video frame using a second QP setting (block 615). It is assumed for the purposes of this discussion that the second QP setting is different from the first QP setting. It is noted that the first and second encodings can also be referred to as“pre encodings”.
  • the pre-encoder captures a second bit size of the encoded portion of the first video frame (block 620).
  • the pre-encoder generates a model from for mapping bit size to QP based on the relationships between the first and second QP’s and the first and second bit sizes (block 625).
  • method 600 ends.
  • the“model” can also be referred to herein as a“mapping”.
  • the values of a and b are solved using the first and second bit-sizes generated by the first and second encodings using the first and second QP’s, respectively.
  • the model is generated using other techniques.
  • the pre-encoder performs more than two different encodings with more than two different QP settings.
  • the pre-encoder then uses the more than two different QP settings (and corresponding bit sizes) to generate the model of QP versus bit size.
  • method 600 can be performed on a regular or periodic basis, depending on the implementation. In one implementation, method 600 is performed for each portion of a given video frame. In another implementation, method 600 is performed for each video frame of a video stream. In a further implementation, method 600 is performed once every N video frames, wherein N is a positive integer greater than one. The frequency with which method 600 is performed can alternate between these examples based on one or more factors. In other implementations, subsequent iterations of method 600 are performed according to other schedules.
  • An encoder receives a video frame for encoding (block 705).
  • the encoder determines a preferred encoded video frame size for the video frame (block 710).
  • the encoder receives a preferred encoded video frame size from another processing unit, the encoder retrieves the preferred encoded video frame size from a register or other memory location, the encoder calculates the preferred encoded video frame size based on a target bit rate of an encoded bitstream, or the encoder determines the preferred encoded video frame size in other manners.
  • the encoder determines which QP to select for encoding the received video frame based on a mapping between encoded video frame size and QP (block 715).
  • a mapping between encoded video frame size and QP.
  • the encoder generates an encoded video frame by setting a QP to a QP value provided by the model for the preferred encoded video frame size, wherein the encoded video frame represents the received video frame (block 720).
  • the mapping is implemented in a variety of different manners. In one implementation, the mapping is setup directly by a software application. In another implementation, the mapping is implemented as a lookup table process derived by running a plurality of experiments.
  • the mapping is implemented as a closed- loop control method which checks whether the stimuli applier drives the system closer to a desired outcome (e.g., a preferred bit-rate).
  • the mapping is implemented using machine learning techniques, a neural network, a regressive model, or other types of models that use quality metrics (e.g., peak signal-to-noise ratio (PSNR), structural similarity (SSIM) index, video multimethod assessment fusion (VMAF)) to optimize settings which impact perceptual quality.
  • quality metrics e.g., peak signal-to-noise ratio (PSNR), structural similarity (SSIM) index, video multimethod assessment fusion (VMAF)
  • the encoder conveys the encoded video frame to a decoder to be displayed (block 725).
  • method 700 ends. It is noted that method 700 can be repeated for each video frame received by the encoder. It is also noted that the mapping can be updated for each portion of the subsequent video frame, for each subsequent video frame, or after two or more video frames have been encoded.
  • program instructions of a software application are used to implement the methods and/or mechanisms described herein.
  • program instructions executable by a general or special purpose processor are contemplated hi various implementations, such program instructions can be represented by a high level programming language.
  • the program instructions can be compiled from a high level programming language to a binary, intermediate, or other form.
  • program instructions can be written that describe the behavior or design of hardware.
  • Such program instructions can be represented by a high-level programming language, such as C.
  • a hardware design language (HDL) such as Verilog can be used.
  • the program instructions are stored on any of a variety of non-transitory computer readable storage mediums. The storage medium is accessible by a computing system during use to provide the program instructions to the computing system for program execution.
  • a computing system includes at least one or more memories and one or more processors configured to execute program instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Systems, apparatuses, and methods for generating a model for determining a quantization strength to use when encoding video frames are disclosed. A pre-encoder performs multiple encoding passes using different quantization strengths on a portion or the entirety of one or more pre-processed video frames. The pre-encoder captures the bit-size of the encoded output for each of the multiple encoding passes. Then, based on the multiple encoding passes, the pre-encoder generates a model for mapping bit-size to quantization strength for encoding video frames or portion(s) thereof. When the encoder begins the final encoding pass for one or more given video frames or any portion(s) thereof, the encoder uses the model to map a preferred bit-size to a given quantization strength. The encoder uses the given quantization strength when encoding the given video frame(s) or frame portion(s) to meet a specified bit-rate for the encoded bitstream.

Description

CONTENT ADAPTIVE QUANTIZATION STRENGTH AND BITRATE MODELING
BACKGROUND
Description of the Related Art
[0001] Various applications perform encoding and decoding of images or video content. For example, video transcoding, desktop sharing, cloud gaming and gaming spectatorship are some of the applications which include support for encoding and decoding of content. One of the parameters determining how content is encoded is the quantization parameter (QP). In various block-based video encoding schemes, such as those that comply with the H.264 standard, the QP regulates how much detail is preserved during the encoding process. The QP selected for each video frame or each block of the frame is directly related to the size of the encoded video frame or size of the encoded block. Selecting lower QP values will retain more detail while yielding larger encoded sizes. Selecting higher QP values will cause more detail to be lost while producing smaller encoded sizes. It is noted that the term“quantization parameter” can also be referred to more generally as“quantization strength”.
BRIEF DESCRIPTION OF THE DRAWINGS
[0002] The advantages of the methods and mechanisms described herein may be better understood by referring to the following description in conjunction with the accompanying drawings, in which:
[0003] FIG. 1 is a block diagram of one implementation of a system for encoding and decoding content.
[0004] FIG. 2 is a block diagram of one implementation of the software components of a server for encoding frames of a video.
[0005] FIG. 3 is a block diagram of one implementation of encoding logic.
[0006] FIG. 4 illustrates one example of a graph mapping QP to bitcount.
[0007] FIG. 5 illustrates one implementation of a graph for determining a QP value to match a target bitcount.
[0008] FIG. 6 is a generalized flow diagram illustrating one implementation of a method for generating a mapping to map bit size to QP.
[0009] FIG. 7 is a generalized flow diagram illustrating one implementation of a method for encoding a video frame. DETAILED DESCRIPTION OF IMPLEMENTATIONS
[0010] In the following description, numerous specific details are set forth to provide a thorough understanding of the methods and mechanisms presented herein. However, one having ordinary skill in the art should recognize that the various implementations may be practiced without these specific details. In some instances, well-known structures, components, signals, computer program instructions, and techniques have not been shown in detail to avoid obscuring the approaches described herein. It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements.
[0011] Systems, apparatuses, and methods for generating and implementing video encoding models for mapping encoded video frame bit-size to quantization strength are disclosed herein. In one implementation, a system includes at least an encoder, a pre-encoder, and a memory coupled to the encoder and pre-encoder. The pre-encoder runs multiple pre-encoding passes on at least a portion of an input video frame. In one implementation, the input video frame is pre- processed prior to the pre-encoding passes. Each pre-encoding pass uses a different quantization strength setting. In one implementation, the quantization strength setting refers to a particular quantization parameter (QP) used during the encoding process. For each pre-encoding pass, the pre-encoder captures the output bit-size of the encoded portion(s) of the input video frame. The pre-encoder uses the captured output bit-sizes to generate a model for mapping encoded video bitstream bit-size to quantization strength.
[0012] Before the encoder encodes the portion(s) of the input video frame, the encoder uses the model to map a specified bit-size to a corresponding quantization strength. In one implementation, the encoder provides a specified bit-size to the model and the model outputs the quantization strength value which will produce the specified bit- size. Then, the encoder encodes the portion(s) of the input video frame using the quantization strength value provided by the model so as to meet a given bit budget. In one implementation, by using the quantization strength value provided by the model, the encoder is able to make fewer quantization strength adjustments during the frame. This helps to improve the visual quality of the resulting encoded video bitstream.
[0013] Referring now to FIG. 1, a block diagram of one implementation of a system 100 for encoding and decoding content is shown. System 100 includes server 105, network 110, client 115, and display 120. In other implementations, system 100 includes multiple clients connected to server 105 via network 110, with the multiple clients receiving the same bitstream or different bitstreams generated by server 105. System 100 can also include more than one server 105 for generating multiple bitstreams for multiple clients.
[0014] In one implementation, system 100 implements encoding and decoding of video content. In various implementations, different applications such as a video game application, a cloud gaming application, a virtual desktop infrastructure application, or a screen sharing application are implemented by system 100. In other implementations, system 100 executes other types of applications. In one implementation, server 105 renders video or image frames, encodes the rendered frames into a bitstream, and then conveys the encoded bitstream to client 115 via network 110. Client 115 decodes the encoded bitstream and generates video or image frames to drive to display 120 or to a display compositor.
[0015] Quantization is the mechanism used in video standards (e.g., high efficiency video coding (HEVC) standard, advanced video coding (AVC)) to control the size of an encoded video stream to meet the bandwidth requirements of a particular video application. This allows system 100 to send an encoded video stream from server 105 to client 115 in a consistent manner. It can be challenging to control the bit-rate of an encoded video stream while also providing an acceptable picture quality. In one implementation, the preferred bitcount of each video frame is equal to the bit-rate of the encoded video stream divided by the frame-rate of the video sequence. It is noted that the term“bitcount” is used interchangeably herein with the term“bit- size”. In one implementation, server 105 adjusts the quantization parameter (QP) used to encode an input video sequence to control the bitcount of each frame of the encoded video stream. In this implementation, server 105 generates a model which maps bitcount to QP. Depending on the implementation, server 105 receives an indication of a desired bitcount or server 105 calculates a desired bitcount for each video frame. Once server 105 knows the desired bitcount of each video frame, server 105 uses the model to map the desired bitcount to a particular QP value. Then, server 105 sets the QP to this particular QP value when encoding a given video frame. In one implementation, server 105 generates a different model for each video frame (or a portion of each video frame). In other implementations, server 105 reuses a given model for multiple video frames.
[0016] Network 110 is representative of any type of network or combination of networks, including wireless connection, direct local area network (LAN), metropolitan area network (MAN), wide area network (WAN), an Intranet, the Internet, a cable network, a packet- switched network, a fiber-optic network, a router, storage area network, or other type of network. Examples of LANs include Ethernet networks, Fiber Distributed Data Interface (FDDI) networks, and token ring networks. In various implementations, network 110 includes remote direct memory access (RDMA) hardware and/or software, transmission control protocol/intemet protocol (TCP/IP) hardware and/or software, router, repeaters, switches, grids, and/or other components.
[0017] Server 105 includes any combination of software and/or hardware for rendering video/image frames, generating a model mapping bitcount to QP, and/or encoding the frames into a bitstream using the QP provided by the model. In one implementation, server 105 includes one or more software applications executing on one or more processors of one or more servers. Server 105 also includes network communication capabilities, one or more input/output devices, and/or other components. The processor(s) of server 105 include any number and type (e.g., graphics processing units (GPUs), central processing units (CPUs), digital signal processors (DSPs), field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs)) of processors. The processor(s) are coupled to one or more memory devices storing program instructions executable by the processor(s). Similarly, client 115 includes any combination of software and/or hardware for decoding a bitstream and driving frames to display 120. In one implementation, client 115 includes one or more software applications executing on one or more processors of one or more computing devices. In various implementations, client 115 is a computing device, game console, mobile device, streaming media player, or other type of device.
[0018] Turning now to FIG. 2, a block diagram of one implementation of the software components of a server 200 for encoding frames of a video are shown. It is noted that in other implementations, server 200 includes other components and/or is arranged in other suitable manners than is shown in FIG. 2. A new frame 205 of a video is received by server 200 and provided to pre-encoder 220 and encoder 230. Each of pre-encoder 220 and encoder 230 is implemented using any suitable combination of hardware and/or software. Pre-encoder 220 generates quantization parameter (QP) 225 to be used by encoder 230 when encoding new frame 205. In one implementation, pre-encoder 220 generates QP 225 based on model 215. In one implementation, model 215 identifies a target QP 225 to use for achieving a specified bit rate or bit size of encoded frame. It is noted that the term“encoded frame” can also be referred to as a “compressed frame”.
[0019] In one implementation, pre-encoder 220 receives pre-processed frame 210 and performs one or more operations on pre-processed frame 210. In another implementation, pre encoder 220 generates pre-processed frame 210 from new frame 205. In one implementation, pre-processed frame 210 is a downsampled version of new frame 205. In other implementations, pre-processed frame 210 represents new frame 205 after one or more other types of operations (e.g., filtering) are performed on new frame 205 other than or in addition to downsampling. In one implementation, pre-processed frame 210 is stored in memory 240. Memory 240 is representative of any number and type of memory or cache device(s) for storing data and/or instructions associated with the encoding process. Depending on the implementation, pre- processed frame 210 corresponds to the entirety of the original new frame 205 or to a portion thereof.
[0020] In one implementation, pre-encoder 220 performs multiple pre-encoding passes on pre-processed frame 210 so as to generate model 215. For example, in one implementation, pre encoder 220 performs a first pre-encoding pass on pre-processed frame 210 with a first QP setting to determine the bit-size of the output frame for the first QP setting. Also, in this implementation, pre-encoder 220 performs a second pre-encoding pass on pre-processed frame 210 with a second QP setting to determine the bit-size of the resultant encoded frame for the second QP setting. It is assumed for the purposes of this discussion that the second QP setting is different from the first QP setting. Pre-encoder 220 can also perform additional pre-encoding passes with other QP settings. After capturing the bit-sizes of the encoded frames for the different passes at different QP settings, pre-encoder 220 generates model 215 to map QP setting to bit-size. Then, the desired bit size is provided to model 215 to generate a corresponding QP 225.
[0021] Encoder 230 receives new frame 205 and encodes new frame 205 using a QP value equal to QP 225 generated by pre-encoder 220. In one implementation, when encoder 230 starts encoding new frame 205, encoder sets the starting QP value to be equal to the QP 225 generated by model 215. Adjustments can be made to the starting QP value during the encoding of new frame 205 if encoder 230 determines that the amount of encoded data being generated is drifting too far from the target bit-size. The output of encoder 230 is encoded frame 235 which is conveyed to one or more clients (e.g., client 115 of FIG. 1) and/or stored in memory. In one implementation, pre-encoder 220 generates a new model 215 and QP 225 for each new frame 205. In another implementation, pre-encoder 220 reuses model 215 and QP 225 for one or more subsequent frames. In a further implementation, pre-encoder 220 generates model 215 from a portion of new frame 205 and then uses model 215 to generate QP 225 to be used for the encoding of other portions of new frame 205. In a still further implementation, pre-encoder 220 generates multiple models 215 for new frame 205, with each model 215 representing a different portion of new frame 205. In this implementation, pre-encoder 220 generates multiple QP values 225 to be used for encoding the different portions of new frame 205. Generally speaking, pre encoder 220 generates QP value 225 for encoding new frame 205 based on a bit rate that has been selected for the resulting encoded bit stream. By selecting an appropriate starting QP value 225, encoder 230 will typically make fewer QP adjustments during encoding of new frame 205. This will help to improve the visual quality of the resulting encoded frame 235.
[0022] Referring now to FIG. 3, a block diagram of one implementation of encoding logic 300 is shown. An original input video frame is received by encoder 305 and downscaling unit 310. In one implementation, the original input video frame is in the YUV color space. In other implementations, the original input video frame is encoded in other color spaces. Encoder 305 encodes the input video frame and generates an encoded bitstream which is conveyed to memory 315. Memory 315 is representative of any number and type of memory devices. In one implementation, the encoded bitstream is formatted according to the high efficiency video coding (HEVC) standard. In one implementation, the encoded bitstream is formatted according to the advanced video coding (AVC) standard. In other implementations, the encoded bitstream is formatted according with other video coding standards.
[0023] Downscaling unit 310 generates a downscaled frame from the original input video frame and conveys the downscaled frame to memory 315. A downscaled frame can be used to generate a model for mapping bitcount to QP due to the relationship shown in equation 330. As indicated by equation 330, for a given video frame, the ratio between the bitcount of a low resolution version of a given video frame and the bitcount of a high resolution version of the given video frame is a constant for a given QP. Accordingly, a downscaled frame is processed by pre-encoding unit 320 at different QPs and the relationship between the resulting bitcounts will be representative of the relationship between bitcounts for different QPs used to encode the original frame. In other implementations, downscaling unit 310 performs other types of filtering and/or preprocessing on the input video frame in addition to or other than downscaling. For example, in other implementations, downscaling unit 310 performs denoising, grayscale conversion, and/or other types of pre-processing steps.
[0024] The downscaled frame is conveyed to pre-encoding unit 320. In one implementation, pre-encoding unit 320 performs at least two separate encodings of the downscaled frame using different QPs. In some implementations, pre-encoding unit 320 performs at least two separate encodings of a portion of the downscaled frame using different QPs. Then, based on the sizes of the encoded frames (or sizes of the encoded portions of the frame), pre-encoding unit 320 creates a model to map output bit-size to QP. The statistics for this model, labeled“encode statistics”, are stored in memory 315. The encode statistics are also conveyed to encoder 305. Encoder 305 uses the encode statistics when determining which QP to select for the input video frame so as to meet a desired bit-size for the resulting encoded frame. In one implementation, the desired bit- size for each encoded frame is determined based on a desired bit-rate of the encoded bitstream generated by encoder 305. For example, in one implementation, the desired bit-rate is specified in bits per second (e.g., 3 megabits per second (Mbps)) and the frame rate of the video sequence is specified in frames per second (fps) (e.g., 60 fps, 24 fps). In this implementation, encoder 305 divides the desired bit-rate by the frame rate to calculate a desired bit- size for each encoded frame.
[0025] It is noted that in other implementations, encoding logic 300 performs variations to the above-described techniques for selecting an optimal quantization strength for encoding video data to meet a given bit budget. For example, in another implementation, pre-encoding unit 320 encodes a portion of a frame with different quantization strength settings. Pre-encoding unit 320 then captures the bit- size of the encoded portion at the different quantization strength settings. In a further implementation, pre-encoding unit 320 encodes two or more frames with different quantization strength settings and then captures the bit-sizes of corresponding encoded frames.
[0026] Turning now to FIG. 4, one example of a graph 400 of mapping bitcount to QP is shown. Plot 410 represents the bitcounts for different values of QP used for encoding a particular frame, a portion of a frame, or two or more frames of a video sequence. In one implementation, the relationship between bitcount and QP is modeled using the formula: bitcount = a2^*Qp. In one implementation, the values for a and b are determined by experimentation. For example, in one implementation, the values for a and b are determined by pre-encoding a portion or the entirety of a frame using two or more different QP’s in two or more different pre-encoding passes. The sizes of the encoded portion or entirety of the frame are captured, and then the QP’s and captured bit-sizes are used to solve for the values of a and b in the above equation. Next, the values for a and b are used to generate a model which determines the relationship between bitcount and QP. When the encoder determines a desired bitcount for a given video frame, the encoder uses the model to map the desired bitcount to a particular QP value. The encoder then uses the particular QP value when encoding the given video frame so as to generate an encoded video frame with the desired bitcount.
[0027] Referring now to FIG. 5, one implementation of a graph 500 for determining a QP value to match a target bitcount is shown. In one implementation, control logic or a pre-encoding unit implements two pre-encoding passes of a video frame with different QP values QP1 and QP2. The control logic captures the bitcounts for these two pre-encoding passes. In other implementations, the control logic performs more than two pre-encoding passes of a video frame with different QP values. The bitcount bl corresponds to the pre-encoding pass with QP1 and is labeled with 510 on plot 505. The bitcount b2 corresponds to the pre-encoding pass with QP2 and is labeled with 515 on plot 505. After capturing bitcounts bl and b2 for the pre-encoding passes with QP1 and QP2, respectively, the control logic generates plot 505 to map the relationship between bitcount and QP. Then, when a desired bitcount target 520 is determined, the control logic maps the target 520 to a QP value of QP3 on plot 505. Then, the encoder sets the QP to the QP3 value when encoding the video frame and/or one or more subsequent video frames. Alternatively, the encoder uses the QP3 value when encoding one or more portions (e.g., blocks, coding units) of the video frame and/or one or more portions of other video frames.
[0028] Turning now to FIG. 6, one implementation of a method 600 for generating a model to map bit size to a quantization parameter (QP) is shown. For purposes of discussion, the steps in this implementation and those of FIG. 7 are shown in sequential order. However, it is noted that in various implementations of the described methods, one or more of the elements described are performed concurrently, in a different order than shown, or are omitted entirely. Other additional elements are also performed as desired. Any of the various systems or apparatuses described herein are configured to implement method 600.
[0029] A pre-encoder performs a first encoding of at least a portion of a first video frame using a first quantization parameter (QP) setting (block 605). Then, the pre-encoder captures a first bit size of the encoded portion of the first video frame (block 610). It is noted that the term “bit size” can also be referred to as“bitcount” herein. Next, the pre-encoder performs a second encoding of at least the portion of the first video frame using a second QP setting (block 615). It is assumed for the purposes of this discussion that the second QP setting is different from the first QP setting. It is noted that the first and second encodings can also be referred to as“pre encodings”. Then, the pre-encoder captures a second bit size of the encoded portion of the first video frame (block 620). Next, the pre-encoder generates a model from for mapping bit size to QP based on the relationships between the first and second QP’s and the first and second bit sizes (block 625). After block 625, method 600 ends. It is noted that the“model” can also be referred to herein as a“mapping”. In one implementation, the model is generated by solving for the values of a and b in the equation: bit-size = a2^*Qp. For example, the values of a and b are solved using the first and second bit-sizes generated by the first and second encodings using the first and second QP’s, respectively. In other implementations, the model is generated using other techniques.
[0030] In some implementations, the pre-encoder performs more than two different encodings with more than two different QP settings. The pre-encoder then uses the more than two different QP settings (and corresponding bit sizes) to generate the model of QP versus bit size. It is noted that method 600 can be performed on a regular or periodic basis, depending on the implementation. In one implementation, method 600 is performed for each portion of a given video frame. In another implementation, method 600 is performed for each video frame of a video stream. In a further implementation, method 600 is performed once every N video frames, wherein N is a positive integer greater than one. The frequency with which method 600 is performed can alternate between these examples based on one or more factors. In other implementations, subsequent iterations of method 600 are performed according to other schedules.
[0031] Referring now to FIG. 7, one implementation of a method for encoding a video frame is shown. An encoder receives a video frame for encoding (block 705). The encoder determines a preferred encoded video frame size for the video frame (block 710). Depending on the implementation, the encoder receives a preferred encoded video frame size from another processing unit, the encoder retrieves the preferred encoded video frame size from a register or other memory location, the encoder calculates the preferred encoded video frame size based on a target bit rate of an encoded bitstream, or the encoder determines the preferred encoded video frame size in other manners.
[0032] The encoder determines which QP to select for encoding the received video frame based on a mapping between encoded video frame size and QP (block 715). One example of how to generate a mapping which maps bit-size to QP is described in the above discussion regarding method 600 (of FIG. 6). Next, the encoder generates an encoded video frame by setting a QP to a QP value provided by the model for the preferred encoded video frame size, wherein the encoded video frame represents the received video frame (block 720). Depending on the implementation, the mapping is implemented in a variety of different manners. In one implementation, the mapping is setup directly by a software application. In another implementation, the mapping is implemented as a lookup table process derived by running a plurality of experiments. In a further implementation, the mapping is implemented as a closed- loop control method which checks whether the stimuli applier drives the system closer to a desired outcome (e.g., a preferred bit-rate). In other implementations, the mapping is implemented using machine learning techniques, a neural network, a regressive model, or other types of models that use quality metrics (e.g., peak signal-to-noise ratio (PSNR), structural similarity (SSIM) index, video multimethod assessment fusion (VMAF)) to optimize settings which impact perceptual quality.
[0033] After block 720, the encoder conveys the encoded video frame to a decoder to be displayed (block 725). After block 725, method 700 ends. It is noted that method 700 can be repeated for each video frame received by the encoder. It is also noted that the mapping can be updated for each portion of the subsequent video frame, for each subsequent video frame, or after two or more video frames have been encoded.
[0034] In various implementations, program instructions of a software application are used to implement the methods and/or mechanisms described herein. For example, program instructions executable by a general or special purpose processor are contemplated hi various implementations, such program instructions can be represented by a high level programming language. In other implementations, the program instructions can be compiled from a high level programming language to a binary, intermediate, or other form. Alternatively, program instructions can be written that describe the behavior or design of hardware. Such program instructions can be represented by a high-level programming language, such as C. Alternatively, a hardware design language (HDL) such as Verilog can be used. In various implementations, the program instructions are stored on any of a variety of non-transitory computer readable storage mediums. The storage medium is accessible by a computing system during use to provide the program instructions to the computing system for program execution. Generally speaking, such a computing system includes at least one or more memories and one or more processors configured to execute program instructions.
[0035] It should be emphasized that the above-described implementations are only non limiting examples of implementations. Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.

Claims

WHAT IS CLAIMED IS
1. A system comprising:
a pre-encoder configured to generate a mapping of frame size to quantization parameter (QP) based on a plurality of encodings of a portion of a first video frame using different QP settings; and
an encoder configured to:
determine a given QP value from the mapping based on a preferred encoded video frame size;
generate an encoded video frame by setting a QP to the given QP value for at least a portion of the encoded video frame, wherein the encoded video frame represents an input video frame; and
convey the encoded video frame to a decoder to be displayed.
2. The system as recited in claim 1, wherein the pre-encoder is further configured to:
perform a first encoding of at least the portion of the first video frame using a first QP setting;
capture a first size of a result of the first encoding;
perform a second encoding of the portion of the first video frame using a second QP
setting;
capture a second size of a result of the second encoding; and
generate the mapping of frame size to QP based on relationships between the first and second QP settings and the first and second sizes, respectively.
3. The system as recited in claim 2, wherein the portion of the first video frame is downscaled prior to the first encoding and the second encoding being performed.
4. The system as recited in claim 2, wherein the encoder is configured to determine how to set an initial QP when encoding a final pass of the first video frame based on the mapping generated by the pre-encoder.
5. The system as recited in claim 2, wherein the second QP setting is different from the first QP setting.
6. The system as recited in claim 1, wherein the input video frame is the first video frame.
7. The system as recited in claim 1, wherein the input video frame is a second video frame which is subsequent to the first video frame in a video sequence.
8. A method comprising:
generating, by a pre-encoder, a mapping of frame size to quantization parameter (QP) based on a plurality of encodings of a portion of a first video frame using different QP settings;
determining, by an encoder, a given QP value from the mapping based on a preferred encoded video frame size;
generating, by the encoder, an encoded video frame by setting a QP to the given QP value for at least a portion of the encoded video frame, wherein the encoded video frame represents an input video frame; and
conveying, by the encoder, the encoded video frame to a decoder to be displayed.
9. The method as recited in claim 8, further comprising:
performing, by the pre-encoder, a first encoding of at least the portion of the first video frame using a first QP setting;
capturing, by the pre-encoder, a first size of a result of the first encoding;
performing, by the pre-encoder, a second encoding of the portion of the first video frame using a second QP setting;
capturing, by the pre-encoder, a second size of a result of the second encoding; and generating, by the pre-encoder, the mapping of frame size to QP based on relationships between the first and second QP settings and the first and second sizes, respectively.
10. The method as recited in claim 9, wherein the portion of the first video frame is
downsampled prior to the first encoding and the second encoding being performed.
11. The method as recited in claim 9, further comprising determining, by the encoder, how to set an initial QP when encoding a final pass of the first video frame based on the mapping generated by the pre-encoder.
12. The method as recited in claim 9, wherein the second QP setting is different from the first QP setting.
13. The method as recited in claim 8, wherein the input video frame is the first video frame.
14. The method as recited in claim 8, wherein the input video frame is a second video frame which is subsequent to the first video frame in a video sequence.
15. An apparatus comprising:
a memory; and
an encoder coupled to the memory, wherein the encoder is configured to:
determine a given quantization parameter (QP) value from a mapping based on a preferred encoded video frame size, and wherein the mapping specifies a relationship between bit size to QP based on two or more pre-encoding passes;
generate an encoded video frame by setting a QP to the given QP value for at least a portion of the encoded video frame, wherein the encoded video frame represents an input video frame; and
convey the encoded video frame to a decoder to be displayed.
16. The apparatus as recited in claim 15, wherein the two or more pre-encoding passes are
performed on a portion of a first video frame which is downsampled prior to the two or more pre-encoding passes.
17. The apparatus as recited in claim 15, wherein the two or more pre-encoding passes are
performed on a portion of a first video frame which is pre-processed prior to the two or more pre-encoding passes.
18. The apparatus as recited in claim 15, wherein the encoder is configured to determine how to set an initial QP when encoding a final pass of the first video frame based on the mapping.
19. The apparatus as recited in claim 15, wherein the two or more pre-encoding passes are
performed using two or more different QP settings.
20. The apparatus as recited in claim 15, wherein the two or more pre-encoding passes are
performed on the input video frame.
PCT/IB2019/055358 2018-10-31 2019-06-25 Content adaptive quantization strength and bitrate modeling WO2020089702A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020217016416A KR102611940B1 (en) 2018-10-31 2019-06-25 Content adaptive quantization strength and bit rate modeling
CN201980068194.XA CN112868230B (en) 2018-10-31 2019-06-25 Content adaptive quantization strength and bit rate modeling system, method and apparatus
EP19878620.4A EP3874749A4 (en) 2018-10-31 2019-06-25 Content adaptive quantization strength and bitrate modeling
JP2021520145A JP7265623B2 (en) 2018-10-31 2019-06-25 Content-adaptive quantization intensity and bitrate modeling

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US16/177,128 2018-10-31
US16/177,128 US11368692B2 (en) 2018-10-31 2018-10-31 Content adaptive quantization strength and bitrate modeling

Publications (1)

Publication Number Publication Date
WO2020089702A1 true WO2020089702A1 (en) 2020-05-07

Family

ID=70326589

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2019/055358 WO2020089702A1 (en) 2018-10-31 2019-06-25 Content adaptive quantization strength and bitrate modeling

Country Status (6)

Country Link
US (1) US11368692B2 (en)
EP (1) EP3874749A4 (en)
JP (1) JP7265623B2 (en)
KR (1) KR102611940B1 (en)
CN (1) CN112868230B (en)
WO (1) WO2020089702A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11653003B2 (en) 2021-07-16 2023-05-16 City University Of Hong Kong System and method for processing a stream of images

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10880354B2 (en) * 2018-11-28 2020-12-29 Netflix, Inc. Techniques for encoding a media title while constraining quality variations
KR20230088454A (en) * 2020-11-25 2023-06-19 구글 엘엘씨 Content Adaptive Signal-to-Noise Ratio Guided 2-Pass Video Encoding for Cloud Gaming
US11902547B2 (en) * 2021-07-15 2024-02-13 Google Llc Low-delay two-pass frame-level rate control using an adjusted complexity
CN117837141A (en) * 2021-09-03 2024-04-05 谷歌有限责任公司 Multi-attempt encoding operations for streaming applications
KR102689215B1 (en) * 2022-10-05 2024-07-26 한림대학교 산학협력단 System, method and program for reducing sensing data based on quantization

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009149564A1 (en) * 2008-06-13 2009-12-17 Octasic Inc. Method and device for controlling bit-rate for video encoding, video encoding system using same and computer product therefor
WO2018010852A1 (en) * 2016-07-15 2018-01-18 Gurulogic Microsystems Oy Encoders, decoders and methods employing quantization

Family Cites Families (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2968666B2 (en) * 1993-06-10 1999-10-25 日本電気株式会社 Image coding method and apparatus
US8054880B2 (en) 2004-12-10 2011-11-08 Tut Systems, Inc. Parallel rate control for digital video encoder with multi-processor architecture and picture-based look-ahead window
WO2005002206A1 (en) * 2003-06-25 2005-01-06 Nokia Corporation Image data compression parameter value controlling digital imaging device and image data compression parameter value decision method
US20050047504A1 (en) 2003-09-03 2005-03-03 Sung Chih-Ta Star Data stream encoding method and apparatus for digital video compression
US7724972B2 (en) * 2005-03-01 2010-05-25 Qualcomm Incorporated Quality metric-biased region-of-interest coding for video telephony
US8447121B2 (en) * 2005-09-14 2013-05-21 Microsoft Corporation Efficient integrated digital video transcoding
US8798140B2 (en) * 2009-01-27 2014-08-05 Nvidia Corporation Encoding video frames in a video encoder
JP5257215B2 (en) 2009-04-16 2013-08-07 ソニー株式会社 Image coding apparatus and image coding method
JP2012054818A (en) * 2010-09-02 2012-03-15 Sony Corp Image processing apparatus and image processing method
CN108769693B (en) * 2011-06-10 2022-07-08 拜特移动网络创新有限责任公司 Macroblock-level adaptive quantization in quality-aware video optimization
US20160029024A1 (en) * 2011-08-10 2016-01-28 Zoran (France) S.A. Frame buffer compression for video processing devices
US9781449B2 (en) * 2011-10-06 2017-10-03 Synopsys, Inc. Rate distortion optimization in image and video encoding
JP6034010B2 (en) * 2011-10-24 2016-11-30 ソニー株式会社 Encoding apparatus, encoding method, and program
US9485515B2 (en) 2013-08-23 2016-11-01 Google Inc. Video coding using reference motion vectors
US9998750B2 (en) 2013-03-15 2018-06-12 Cisco Technology, Inc. Systems and methods for guided conversion of video from a first to a second compression format
US9426475B2 (en) 2013-06-25 2016-08-23 VIXS Sytems Inc. Scene change detection using sum of variance and estimated picture encoding cost
CA2942336A1 (en) 2014-03-10 2015-09-17 Euclid Discoveries, Llc Continuous block tracking for temporal prediction in video encoding
US9848193B2 (en) * 2014-04-15 2017-12-19 Qualcomm Incorporated System and method for selecting quantization parameter (QP) in display stream compression (DSC)
US10097828B2 (en) * 2014-12-11 2018-10-09 Intel Corporation Rate control for parallel video encoding
CN105898308A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Resolution-variable coding mode prediction method and device
US10165310B2 (en) * 2016-06-10 2018-12-25 Affirmed Networks, Inc. Transcoding using time stamps
US20180063549A1 (en) * 2016-08-24 2018-03-01 Ati Technologies Ulc System and method for dynamically changing resolution based on content
US10291931B2 (en) 2016-10-13 2019-05-14 Ati Technologies Ulc Determining variance of a block of an image based on a motion vector for the block
EP3324628B1 (en) * 2016-11-18 2021-12-29 Axis AB Method and encoder system for encoding video
KR102636099B1 (en) * 2016-12-22 2024-02-13 삼성전자주식회사 Apparatus and method for encoding video adjusting quantization parameter
CN107078852B (en) 2017-01-18 2019-03-08 深圳市大疆创新科技有限公司 Transmit method, apparatus, computer system and the mobile device of coded data
US10904552B2 (en) 2018-02-15 2021-01-26 Intel Corporation Partitioning and coding mode selection for video encoding

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009149564A1 (en) * 2008-06-13 2009-12-17 Octasic Inc. Method and device for controlling bit-rate for video encoding, video encoding system using same and computer product therefor
WO2018010852A1 (en) * 2016-07-15 2018-01-18 Gurulogic Microsystems Oy Encoders, decoders and methods employing quantization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3874749A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11653003B2 (en) 2021-07-16 2023-05-16 City University Of Hong Kong System and method for processing a stream of images

Also Published As

Publication number Publication date
EP3874749A4 (en) 2022-08-10
US11368692B2 (en) 2022-06-21
KR102611940B1 (en) 2023-12-08
US20200137389A1 (en) 2020-04-30
CN112868230A (en) 2021-05-28
EP3874749A1 (en) 2021-09-08
KR20210077771A (en) 2021-06-25
CN112868230B (en) 2024-09-27
JP2022504778A (en) 2022-01-13
JP7265623B2 (en) 2023-04-26

Similar Documents

Publication Publication Date Title
US11368692B2 (en) Content adaptive quantization strength and bitrate modeling
US11575870B2 (en) 3D video encoding and decoding methods and apparatus
KR102287947B1 (en) Apparatus and method for performing artificial intelligence encoding and artificial intelligence decoding of image
KR102432755B1 (en) A game engine application that renders directly to a video encoder
US10523947B2 (en) Server-based encoding of adjustable frame rate content
US9407902B1 (en) 3D video encoding and decoding methods and apparatus
KR20160128403A (en) Improved screen content and mixed content coding
KR20210113131A (en) Apparatus and method for performing artificial intelligence encoding and artificial intelligence decoding of image
US20220036508A1 (en) Apparatus and method for performing artificial intelligence encoding and artificial intelligence decoding on image by using pre-processing
US10924739B2 (en) Efficient quantization parameter prediction method for low latency video coding
GB2600025A (en) Exchanging information in hierarchical video coding
US20210185313A1 (en) Residual metrics in encoder rate control system
US11750825B2 (en) Methods, apparatuses, computer programs and computer-readable media for processing configuration data
US12073595B2 (en) AI encoding apparatus and operation method of the same, and AI decoding apparatus and operation method of the same
CN112740687A (en) Apparatus and method for performing artificial intelligence encoding and artificial intelligence decoding on image
CN109413445B (en) Video transmission method and device
KR20220063063A (en) A method and an apparatus for performing artificial intelligence encoding and artificial intelligence decoding
US11729418B1 (en) Content adaptive encoding
KR102682389B1 (en) Method for Enhancing Texture Compression Efficiency in Dynamic Mesh Coding
US20230196505A1 (en) Artificial intelligence-based image providing apparatus and method, and artificial intelligence-based display apparatus and method
EP4228268A1 (en) Method and device for performing artificial intelligence encoding and artificial intelligence decoding
KR20240085638A (en) Method and apparatus for immersive video encoding and decoding, and method for transmitting a bitstream generated by the immersive video encoding method
US20150381979A1 (en) Method for using a decoder or look-ahead encoder to control an adaptive pre-filter

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19878620

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021520145

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20217016416

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2019878620

Country of ref document: EP

Effective date: 20210531