Changes between Version 9 and Version 10 of Hardware/VAAPI


Ignore:
Timestamp:
Jan 27, 2024, 9:23:37 AM (3 years ago)
Author:
Snowfall
Comment:

Added clarification and more info to -compression_level

Legend:

Unmodified
Added
Removed
Modified
  • Hardware/VAAPI

    v9 v10  
    1717Encoding and interlacing support in Mesa are incompatible because of the data layout in GPU memory.  By default, frames are separated into fields and interlaced video is supported but encoding is not.  Set the environment variable VAAPI_DISABLE_INTERLACE to 1 to be able to use the encoder (but without any interlaced video support).
    1818
    19 Encoding parameters using the option `-compression_level` can be passed on since Mesa 22.3.0 with VCN (Video Core Next) hardware.
     19Encoding parameters using the option `-compression_level` can be passed on since Mesa 22.3.0 with '''VCN (Video Core Next)''' hardware (RDNA1 and newer).
    2020These parameters can enable a preset (speed/balanced/quality), pre-encode or VBAQ. There is a certain impact on encoding speed in doing so.
     21The calculation of `-compression_level` is based on binary. The actual decimal values are as following: VBAQ=16, pre-encode=8, quality-preset=4, balanced-preset=2, speed-preset=0.
     22And at the end, the validity bit (bit0) is set to 1.
    2123* Example values are:
    2224* `-compression_level=0` -> speed preset only.
    23 * `-compression_level=1` -> balanced preset with pre-encode and VBAQ enabled.
    24 * `-compression_level=3` -> balanced preset only.
    25 * `-compression_level=5` -> quality preset only.
    26 * `-compression_level=11` -> balanced preset with pre-encode enabled.
    27 * `-compression_level=19` -> balanced preset with VBAQ enabled.
    28 * `-compression_level=29` -> quality preset with pre-encode and VBAQ enabled.
     25* `-compression_level=1` -> balanced preset with pre-encode and VBAQ enabled (hardcoded, recommended value by AMD).
     26* `-compression_level=11` -> balanced preset with pre-encode enabled (2+8+1).
     27* `-compression_level=19` -> balanced preset with VBAQ enabled (2+16+1).
     28* `-compression_level=29` -> quality preset with pre-encode and VBAQ enabled (4+8+16+1).
    2929
    3030