intel / cartwheel-ffmpeg

Intel developer staging area for unmerged upstream patch contributions to FFmpeg
GNU Lesser General Public License v2.1
93 stars 33 forks source link

av1_qsv - Segmentation fault (core dumped) #235

Closed gnat closed 1 year ago

gnat commented 1 year ago

Previous issue: https://github.com/intel/cartwheel-ffmpeg/issues/233

Trying to get the Intel Arc A380 AV1 Encoder working on Linux 6.2...

One of the major features of Linux Kernel 6.2 was the intel driver for the Arc GPU is built-in... works out of the box for typical gaming and 3D stuff. :+1:

AV1 encoding works fine in windows 10, tested using handbrake, so fairly certain this isn't a hardware issue.

:green_circle: h264_qsv hardware encoding WORKS GREAT on the following setup:

./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v h264_qsv -y output.mp4

:+1: :+1: :+1:

:red_circle: av1_qsv hardware encoding is BROKEN on the same above setup.

./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -y output.mp4

Output

:green_circle: Working: ./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v h264_qsv -y output.mp4

image

server@server:~/Desktop$ ./ffmpeg -loglevel verbose -hwaccel qsv  -i ./BigBuckBunny.mp4 -c:v h264_qsv -y output.mp4
ffmpeg version N-109896-g156ca86569-20230221 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20230221
  libavutil      58.  3.100 / 58.  3.100
  libavcodec     60.  4.100 / 60.  4.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  4.100 /  9.  4.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[h264 @ 0x55c2f0110d40] Reinit context to 1280x720, pix_fmt: yuv420p
[vist#0:1/h264 @ 0x55c2f011ebc0] WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
Selecting decoder 'h264_qsv' because of requested hwaccel method qsv
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './BigBuckBunny.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2010-01-10T08:29:06.000000Z
  Duration: 00:09:56.47, start: 0.000000, bitrate: 2119 kb/s
  Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(progressive, left), 1280x720 [SAR 1:1 DAR 16:9], 1991 kb/s, 24 fps, 24 tbr, 24k tbn (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
[AVHWDeviceContext @ 0x55c2f017fc40] Trying to use DRM render node for device 0, with matching kernel driver (i915).
[AVHWDeviceContext @ 0x55c2f017fc40] libva: VA-API version 1.17.0
[AVHWDeviceContext @ 0x55c2f017fc40] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x55c2f017fc40] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x55c2f017fc40] libva: Found init function __vaDriverInit_1_17
[AVHWDeviceContext @ 0x55c2f017fc40] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x55c2f017fc40] Initialised VAAPI connection: version 1.17
[AVHWDeviceContext @ 0x55c2f017fc40] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x55c2f017fc40] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x55c2f0180cc0] Use Intel(R) oneVPL to create MFX session, API version is 2.8, the required implementation version is 1.3
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
[AVHWDeviceContext @ 0x55c2f0180cc0] Initialize MFX session: implementation version is 2.8
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (h264_qsv) -> h264 (h264_qsv))
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[graph_1_in_0_0 @ 0x55c2f07ebd80] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:stereo
[AVHWDeviceContext @ 0x55c2f0538500] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x55c2f0538500] Driver not found in known nonstandard list, using standard behaviour.
[h264_qsv @ 0x55c2f0142580] Decoder: output is video memory surface
[h264_qsv @ 0x55c2f0142580] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[AVHWDeviceContext @ 0x55c2f0514b80] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x55c2f0514b80] Driver not found in known nonstandard list, using standard behaviour.
[h264_qsv @ 0x55c2f0142580] Decoder: output is video memory surface
[h264_qsv @ 0x55c2f0142580] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[graph 0 input from stream 0:1 @ 0x55c2f06c1300] w:1280 h:720 pixfmt:qsv tb:1/24000 fr:24/1 sar:1/1
[h264_qsv @ 0x55c2f01446c0] Using input frames context (format qsv) with h264_qsv encoder.
[h264_qsv @ 0x55c2f01446c0] Encoder: input is video memory surface
[h264_qsv @ 0x55c2f01446c0] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[h264_qsv @ 0x55c2f01446c0] Using the variable bitrate (VBR) ratecontrol method
[h264_qsv @ 0x55c2f01446c0] profile: avc high; level: 32
[h264_qsv @ 0x55c2f01446c0] GopPicSize: 256; GopRefDist: 4; GopOptFlag: closed; IdrInterval: 0
[h264_qsv @ 0x55c2f01446c0] TargetUsage: 4; RateControlMethod: VBR
[h264_qsv @ 0x55c2f01446c0] BufferSizeInKB: 375; InitialDelayInKB: 187; TargetKbps: 1000; MaxKbps: 1500; BRCParamMultiplier: 1
[h264_qsv @ 0x55c2f01446c0] NumSlice: 1; NumRefFrame: 3
[h264_qsv @ 0x55c2f01446c0] RateDistortionOpt: OFF
[h264_qsv @ 0x55c2f01446c0] RecoveryPointSEI: OFF
[h264_qsv @ 0x55c2f01446c0] VDENC: ON
[h264_qsv @ 0x55c2f01446c0] Entropy coding: CABAC; MaxDecFrameBuffering: 3
[h264_qsv @ 0x55c2f01446c0] NalHrdConformance: ON; SingleSeiNalUnit: ON; VuiVclHrdParameters: OFF VuiNalHrdParameters: ON
[h264_qsv @ 0x55c2f01446c0] FrameRateExtD: 1; FrameRateExtN: 24 
[h264_qsv @ 0x55c2f01446c0] IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0
[h264_qsv @ 0x55c2f01446c0] MaxFrameSize: 353280; MaxSliceSize: 0
[h264_qsv @ 0x55c2f01446c0] BitrateLimit: ON; MBBRC: OFF; ExtBRC: OFF
[h264_qsv @ 0x55c2f01446c0] Trellis: auto
[h264_qsv @ 0x55c2f01446c0] RepeatPPS: OFF; NumMbPerSlice: 0; LookAheadDS: 2x
[h264_qsv @ 0x55c2f01446c0] AdaptiveI: OFF; AdaptiveB: OFF; BRefType:pyramid
[h264_qsv @ 0x55c2f01446c0] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; MinQPB: 0; MaxQPB: 0
[h264_qsv @ 0x55c2f01446c0] DisableDeblockingIdc: 0 
[h264_qsv @ 0x55c2f01446c0] SkipFrame: no_skip
[h264_qsv @ 0x55c2f01446c0] PRefType: default
[h264_qsv @ 0x55c2f01446c0] TransformSkip: unknown 
[h264_qsv @ 0x55c2f01446c0] IntRefCycleDist: 0
[h264_qsv @ 0x55c2f01446c0] LowDelayBRC: OFF
[h264_qsv @ 0x55c2f01446c0] MaxFrameSizeI: 0; MaxFrameSizeP: 0
[h264_qsv @ 0x55c2f01446c0] ScenarioInfo: 0
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    encoder         : Lavf60.4.100
  Stream #0:0(und): Video: h264, 1 reference frame (avc1 / 0x31637661), qsv(tv, progressive, left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 24 fps, 12288 tbn (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.4.100 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: N/A
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, delay 1024, 128 kb/s (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.4.100 aac
[in#0/mov,mp4,m4a,3gp,3g2,mj2 @ 0x55c2f010d5c0] EOF while reading input4.2kbits/s speed=30.4x    
[in#0/mov,mp4,m4a,3gp,3g2,mj2 @ 0x55c2f010d5c0] Terminating demuxer thread
[h264_qsv @ 0x55c2f0142580] A decode call did not consume any data: expect more data at input (-10)
    Last message repeated 2 times
No more output streams to write to, finishing.
[out#0/mp4 @ 0x55c2f0137800] All streams finished
[out#0/mp4 @ 0x55c2f0137800] Terminating muxer thread
[AVIOContext @ 0x55c2f0146cc0] Statistics: 85258290 bytes written, 16 seeks, 337 writeouts
frame=14315 fps=728 q=27.0 Lsize=   83260kB time=00:09:56.45 bitrate=1143.5kbits/s speed=30.3x    
video:73374kB audio:9422kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.561075%
Input file #0 (./BigBuckBunny.mp4):
  Input stream #0:0 (audio): 25688 packets read (9363691 bytes); 25688 frames decoded (26304512 samples); 
  Input stream #0:1 (video): 14315 packets read (148465020 bytes); 14315 frames decoded; 
  Total: 40003 packets (157828711 bytes) demuxed
Output file #0 (output.mp4):
  Output stream #0:0 (video): 14315 frames encoded; 14315 packets muxed (75134544 bytes); 
  Output stream #0:1 (audio): 25688 frames encoded (26304512 samples); 25689 packets muxed (9648020 bytes); 
  Total: 40004 packets (84782564 bytes) muxed
[aac @ 0x55c2f0146340] Qavg: 701.378
[AVIOContext @ 0x55c2f0116480] Statistics: 158008374 bytes read, 0 seeks

:red_circle: Failed: ./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -y output.mp4

image

server@server:~/Desktop$ ./ffmpeg -loglevel verbose -hwaccel qsv  -i ./BigBuckBunny.mp4 -c:v av1_qsv -y output.mp4
ffmpeg version N-109896-g156ca86569-20230221 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20230221
  libavutil      58.  3.100 / 58.  3.100
  libavcodec     60.  4.100 / 60.  4.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  4.100 /  9.  4.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[h264 @ 0x560036f47d40] Reinit context to 1280x720, pix_fmt: yuv420p
[vist#0:1/h264 @ 0x560036f55bc0] WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
Selecting decoder 'h264_qsv' because of requested hwaccel method qsv
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './BigBuckBunny.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2010-01-10T08:29:06.000000Z
  Duration: 00:09:56.47, start: 0.000000, bitrate: 2119 kb/s
  Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(progressive, left), 1280x720 [SAR 1:1 DAR 16:9], 1991 kb/s, 24 fps, 24 tbr, 24k tbn (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
[AVHWDeviceContext @ 0x560036f7ba80] Trying to use DRM render node for device 0, with matching kernel driver (i915).
[AVHWDeviceContext @ 0x560036f7ba80] libva: VA-API version 1.17.0
[AVHWDeviceContext @ 0x560036f7ba80] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x560036f7ba80] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x560036f7ba80] libva: Found init function __vaDriverInit_1_17
[AVHWDeviceContext @ 0x560036f7ba80] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x560036f7ba80] Initialised VAAPI connection: version 1.17
[AVHWDeviceContext @ 0x560036f7ba80] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x560036f7ba80] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x560036f6ee00] Use Intel(R) oneVPL to create MFX session, API version is 2.8, the required implementation version is 1.3
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
[AVHWDeviceContext @ 0x560036f6ee00] Initialize MFX session: implementation version is 2.8
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (h264_qsv) -> av1 (av1_qsv))
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[graph_1_in_0_0 @ 0x56003734be00] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:stereo
[AVHWDeviceContext @ 0x56003730b640] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x56003730b640] Driver not found in known nonstandard list, using standard behaviour.
[h264_qsv @ 0x560036f79580] Decoder: output is video memory surface
[h264_qsv @ 0x560036f79580] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[AVHWDeviceContext @ 0x56003734bfc0] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x56003734bfc0] Driver not found in known nonstandard list, using standard behaviour.
[h264_qsv @ 0x560036f79580] Decoder: output is video memory surface
[h264_qsv @ 0x560036f79580] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[graph 0 input from stream 0:1 @ 0x5600374f8180] w:1280 h:720 pixfmt:qsv tb:1/24000 fr:24/1 sar:1/1
[av1_qsv @ 0x560036f7b6c0] Using input frames context (format qsv) with av1_qsv encoder.
[av1_qsv @ 0x560036f7b6c0] Encoder: input is video memory surface
[av1_qsv @ 0x560036f7b6c0] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[av1_qsv @ 0x560036f7b6c0] Using the variable bitrate (VBR) ratecontrol method
[av1_qsv @ 0x560036f7b6c0] profile: av1 main; level: 31
[av1_qsv @ 0x560036f7b6c0] GopPicSize: 248; GopRefDist: 8; GopOptFlag:; IdrInterval: 0
[av1_qsv @ 0x560036f7b6c0] TargetUsage: 4; RateControlMethod: VBR
[av1_qsv @ 0x560036f7b6c0] BufferSizeInKB: 1000; InitialDelayInKB: 125; TargetKbps: 1000; MaxKbps: 1000; BRCParamMultiplier: 1
[av1_qsv @ 0x560036f7b6c0] NumRefFrame: 4
[av1_qsv @ 0x560036f7b6c0] IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0; IntRefCycleDist: 0
[av1_qsv @ 0x560036f7b6c0] MaxFrameSize: 0;
[av1_qsv @ 0x560036f7b6c0] BitrateLimit: unknown; MBBRC: OFF; ExtBRC: unknown
[av1_qsv @ 0x560036f7b6c0] VDENC: ON
[av1_qsv @ 0x560036f7b6c0] BRefType: pyramid
[av1_qsv @ 0x560036f7b6c0] PRefType: default
[av1_qsv @ 0x560036f7b6c0] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; MinQPB: 0; MaxQPB: 0
[av1_qsv @ 0x560036f7b6c0] FrameRateExtD: 1; FrameRateExtN: 24 
[av1_qsv @ 0x560036f7b6c0] NumTileRows: 1; NumTileColumns: 1; NumTileGroups: 1
[av1_qsv @ 0x560036f7b6c0] WriteIVFHeaders: OFF 
[av1_qsv @ 0x560036f7b6c0] LowDelayBRC: OFF
[av1_qsv @ 0x560036f7b6c0] MaxFrameSize: 0;
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    encoder         : Lavf60.4.100
  Stream #0:0(und): Video: av1, 1 reference frame (av01 / 0x31307661), qsv(tv, progressive, left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 24 fps, 12288 tbn (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.4.100 av1_qsv
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, delay 1024, 128 kb/s (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.4.100 aac
Segmentation fault (core dumped)      0kB time=00:00:00.44 bitrate=   0.9kbits/s speed=42.4x  
gnat commented 1 year ago

@nyanmisaka @wenbinc-Bin @xhaihao @deepglugs

Same fundamental problem (AV1 encoding not working on Linux 6.2), but we made a lot of progress and issue has changed drastically. I've created a new issue to prevent confusion on stuff we already have solved.

gnat commented 1 year ago

vp9_qsv also works.

gnat commented 1 year ago

So I've tested a variety of other installations:

A

:red_circle: av1_qsv Identical error: Segmentation fault (core dumped) :green_circle: h264_qsv works.

B

:red_circle: av1_qsv Identical error: Segmentation fault (core dumped) :green_circle: h264_qsv works.

C

:red_circle: av1_qsv Error -17 (Error setting child device handle: -17) as detailed in #233

dvrogozh commented 1 year ago

Please, capture a call stack on the segfault issue. Better on the "B" case where you self-built some components:

$ apt-get install -y gdb
$ gdb --args ./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -y output.mp4
>>> run
>>> bt

Additionally install vainfo. Let's check that it correctly returns AV1 entry point:

$ apt-get install -y vainfo
$ vainfo   # share output of this command

Also, the major component which interacts with the Linux kernel is media-driver. You did not rebuilt it. So, you actually have 2 more experiments which you can make:

  1. Try to install non-free driver from Ubuntu and see if this will make a difference:
    apt-get install -y intel-media-va-driver-non-free
  2. And you can rebuild media driver itself: https://github.com/intel/media-driver. Mind there are 2 build paths. By default you will build Ubuntu "non-free" driver, to build free driver configure with -DENABLE_NONFREE_KERNELS=OFF
gnat commented 1 year ago

Some good news! The OP setup + intel-media-va-driver-non-free works! I'm encoding av1_qsv with it.

It would still be ideal to figure out what is causing the crash, so intel-media-va-driver-non-free isn't a hard requirement in the future. I'll get you the back trace...

nyanmisaka commented 1 year ago

I use many VPP filters so I always prefer the non-free/full-feature version.

https://github.com/intel/media-driver#decodingencoding-features But the docs of media-driver says AV1 8/10bit encoding is supported on DG2 in both two kernels.

dvrogozh commented 1 year ago

But the docs of media-driver says AV1 8/10bit encoding is supported on DG2 in both two kernels.

There is dependency on BRC mode: CQP mode should work on both driver, but VBR/CBR would work only on non-free. You can check that by running vainfo -a and look into AV1 EncSlice entypoint description: it should list available BRC modes. I expect you see only CQP for free driver and CQP+CBR+VBR for non-free.

So, another experiment would be to try running CQP with free driver and check whether segfault will go away. This will narrow down the issue. Something like:

./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -q 25 \
  -i_qfactor 1.0 -i_qoffset 1.0 -b_qfactor 1.0 -b_qoffset 0.0 -y output.mp4
gnat commented 1 year ago

Using compiled master oneVPL-intel-gpu (https://github.com/oneapi-src/oneVPL-intel-gpu)

There is dependency on BRC mode: CQP mode should work on both driver, but VBR/CBR would work only on non-free. You can check that by running vainfo -a and look into AV1 EncSlice entypoint description: it should list available BRC modes. I expect you see only CQP for free driver and CQP+CBR+VBR for non-free.

image

image

So, another experiment would be to try running CQP with free driver and check whether segfault will go away. This will narrow down the issue. Something like:

./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -q 25 \
  -i_qfactor 1.0 -i_qoffset 1.0 -b_qfactor 1.0 -b_qoffset 0.0 -y output.mp4

Sadly nope, still segfaults.

nyanmisaka commented 1 year ago

@dvrogozh I don't have access to my Arc A380 now but from the libva caps of the DG2 AV1 encoder there's no hard requirement on media kernel. The FtrEnableMediaKernels is for AVC, HEVC and VP9 encoders.

https://github.com/intel/media-driver/blob/4e28af908155d1f7dec74a32492f8632975e2cd6/media_driver/linux/Xe_M/ddi/media_libva_caps_dg2.cpp#L722-L728

gnat commented 1 year ago

Crash backtrace using compiled master oneVPL-intel-gpu (https://github.com/oneapi-src/oneVPL-intel-gpu)

:green_circle: Works: ./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v h264_qsv -y output.mp4

:red_circle: Crash: ./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -y output.mp4

Backtrace using gdb --args ./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -y output.mp4

image

server@server:~/Desktop$ gdb --args ./ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -y output.mp4
GNU gdb (Ubuntu 13.0.90.20230114-0ubuntu2) 13.0.90.20230114-git
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./ffmpeg...
(No debugging symbols found in ./ffmpeg)
(gdb) run
Starting program: /home/server/Desktop/ffmpeg -loglevel verbose -hwaccel qsv -i ./BigBuckBunny.mp4 -c:v av1_qsv -y output.mp4

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
[Thread debugging using libthread_db enabled]                                                                                                                                                                                                                                                                     
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
BFD: error: /usr/lib/debug/.build-id/69/e4bd2dd4e0347100ed6cb91e7a8ece2d29c56a.debug(.debug_info) is too large (0x15ec2c bytes)                                                                                                                                                                                   
warning: Can't read data for section '.debug_info' in file '/usr/lib/debug/.build-id/69/e4bd2dd4e0347100ed6cb91e7a8ece2d29c56a.debug'
warning: Section .debug_aranges in /usr/lib/debug/.build-id/69/e4bd2dd4e0347100ed6cb91e7a8ece2d29c56a.debug entry at offset 0 debug_info_offset 0 does not exists, ignoring .debug_aranges.
ffmpeg version N-109902-gd5cc7acff1-20230222 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20230222
  libavutil      58.  3.100 / 58.  3.100
  libavcodec     60.  4.100 / 60.  4.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  4.100 /  9.  4.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[h264 @ 0x55555d423d40] Reinit context to 1280x720, pix_fmt: yuv420p
[vist#0:1/h264 @ 0x55555d44a800] WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
Selecting decoder 'h264_qsv' because of requested hwaccel method qsv
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './BigBuckBunny.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2010-01-10T08:29:06.000000Z
  Duration: 00:09:56.47, start: 0.000000, bitrate: 2119 kb/s
  Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(progressive, left), 1280x720 [SAR 1:1 DAR 16:9], 1991 kb/s, 24 fps, 24 tbr, 24k tbn (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
[AVHWDeviceContext @ 0x55555d458400] Trying to use DRM render node for device 0, with matching kernel driver (i915).                                                                                                                                                                                              
[AVHWDeviceContext @ 0x55555d458400] libva: VA-API version 1.17.0                                                                                                                                                                                                                                                 
[AVHWDeviceContext @ 0x55555d458400] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x55555d458400] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x55555d458400] libva: Found init function __vaDriverInit_1_17                                                                                                                                                                                                                               
[AVHWDeviceContext @ 0x55555d458400] libva: va_openDriver() returns 0                                                                                                                                                                                                                                             
[AVHWDeviceContext @ 0x55555d458400] Initialised VAAPI connection: version 1.17
[AVHWDeviceContext @ 0x55555d458400] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x55555d458400] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x55555d457100] Use Intel(R) oneVPL to create MFX session, API version is 2.8, the required implementation version is 1.3
[New Thread 0x7ffff4bff6c0 (LWP 4472)]                                                                                                                                                                                                                                                                            
[New Thread 0x7ffff43fe6c0 (LWP 4473)]
[Thread 0x7ffff43fe6c0 (LWP 4473) exited]
[Thread 0x7ffff4bff6c0 (LWP 4472) exited]
libva info: VA-API version 1.17.0                                                                                                                                                                                                                                                                                 
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
[New Thread 0x7ffff43fe6c0 (LWP 4474)]
[New Thread 0x7ffff4bff6c0 (LWP 4475)]
[Thread 0x7ffff4bff6c0 (LWP 4475) exited]
[Thread 0x7ffff43fe6c0 (LWP 4474) exited]
[New Thread 0x7ffff4bff6c0 (LWP 4476)]
[New Thread 0x7ffff43fe6c0 (LWP 4477)]
[New Thread 0x7ffff3bfd6c0 (LWP 4478)]
[New Thread 0x7ffff33fc6c0 (LWP 4479)]
[New Thread 0x7ffff2bfb6c0 (LWP 4480)]
[New Thread 0x7ffff23fa6c0 (LWP 4481)]
[New Thread 0x7ffff1bf96c0 (LWP 4482)]
[New Thread 0x7ffff13f86c0 (LWP 4483)]
[New Thread 0x7ffff0bf76c0 (LWP 4484)]
[New Thread 0x7fffebfff6c0 (LWP 4485)]
[New Thread 0x7fffeb7fe6c0 (LWP 4486)]
[New Thread 0x7fffeaffd6c0 (LWP 4487)]
[New Thread 0x7fffea7fc6c0 (LWP 4488)]
[New Thread 0x7fffe9ffb6c0 (LWP 4489)]
[New Thread 0x7fffe97fa6c0 (LWP 4490)]
[New Thread 0x7fffe8ff96c0 (LWP 4491)]
[AVHWDeviceContext @ 0x55555d457100] Initialize MFX session: implementation version is 2.8
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (h264_qsv) -> av1 (av1_qsv))
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[New Thread 0x7fffe3fff6c0 (LWP 4492)]
[New Thread 0x7fffe37fe6c0 (LWP 4493)]
[New Thread 0x7fffe2ffd6c0 (LWP 4494)]
[New Thread 0x7fffe27fc6c0 (LWP 4495)]
[New Thread 0x7fffe1ffb6c0 (LWP 4496)]
[New Thread 0x7fffe17fa6c0 (LWP 4497)]
[New Thread 0x7fffe0ff96c0 (LWP 4498)]
[New Thread 0x7fffe07f86c0 (LWP 4499)]
[New Thread 0x7fffdfff76c0 (LWP 4500)]
[New Thread 0x7fffdf7f66c0 (LWP 4501)]
[New Thread 0x7fffdeff56c0 (LWP 4502)]
[New Thread 0x7fffde7f46c0 (LWP 4503)]
[New Thread 0x7fffddff36c0 (LWP 4504)]
[New Thread 0x7fffdd7f26c0 (LWP 4505)]
[New Thread 0x7fffdcff16c0 (LWP 4506)]
[New Thread 0x7fffdc7f06c0 (LWP 4507)]
[graph_1_in_0_0 @ 0x55555d7de9c0] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:stereo
[AVHWDeviceContext @ 0x55555d9b4940] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x55555d9b4940] Driver not found in known nonstandard list, using standard behaviour.
[h264_qsv @ 0x55555d456880] Decoder: output is video memory surface
[h264_qsv @ 0x55555d456880] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[New Thread 0x7fffdbfef6c0 (LWP 4508)]
[New Thread 0x7fffdb7ee6c0 (LWP 4509)]
[New Thread 0x7fffdafed6c0 (LWP 4510)]
[New Thread 0x7fffda7ec6c0 (LWP 4511)]
[New Thread 0x7fffd9feb6c0 (LWP 4512)]
[New Thread 0x7fffd97ea6c0 (LWP 4513)]
[New Thread 0x7fffd8fe96c0 (LWP 4514)]
[New Thread 0x7fffd87e86c0 (LWP 4515)]
[New Thread 0x7fffd7fe76c0 (LWP 4516)]
[New Thread 0x7fffd77e66c0 (LWP 4517)]
[New Thread 0x7fffd6fe56c0 (LWP 4518)]
[New Thread 0x7fffd67e46c0 (LWP 4519)]
[New Thread 0x7fffd5fe36c0 (LWP 4520)]
[New Thread 0x7fffd57e26c0 (LWP 4521)]
[New Thread 0x7fffd4fe16c0 (LWP 4522)]
[New Thread 0x7fffd47e06c0 (LWP 4523)]
[Thread 0x7fffd4fe16c0 (LWP 4522) exited]
[Thread 0x7fffd97ea6c0 (LWP 4513) exited]
[Thread 0x7fffd6fe56c0 (LWP 4518) exited]
[Thread 0x7fffda7ec6c0 (LWP 4511) exited]
[Thread 0x7fffdb7ee6c0 (LWP 4509) exited]
[Thread 0x7fffdbfef6c0 (LWP 4508) exited]
[Thread 0x7fffd57e26c0 (LWP 4521) exited]
[Thread 0x7fffd5fe36c0 (LWP 4520) exited]
[Thread 0x7fffd47e06c0 (LWP 4523) exited]
[Thread 0x7fffd67e46c0 (LWP 4519) exited]
[Thread 0x7fffd77e66c0 (LWP 4517) exited]
[Thread 0x7fffd7fe76c0 (LWP 4516) exited]
[Thread 0x7fffd87e86c0 (LWP 4515) exited]
[Thread 0x7fffd8fe96c0 (LWP 4514) exited]
[Thread 0x7fffd9feb6c0 (LWP 4512) exited]
[Thread 0x7fffdafed6c0 (LWP 4510) exited]
[AVHWDeviceContext @ 0x55555d785b40] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ().
[AVHWDeviceContext @ 0x55555d785b40] Driver not found in known nonstandard list, using standard behaviour.
[h264_qsv @ 0x55555d456880] Decoder: output is video memory surface
[h264_qsv @ 0x55555d456880] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[New Thread 0x7fffd47e06c0 (LWP 4524)]
[New Thread 0x7fffd4fe16c0 (LWP 4525)]
[New Thread 0x7fffd57e26c0 (LWP 4526)]
[New Thread 0x7fffd5fe36c0 (LWP 4527)]
[New Thread 0x7fffdbfef6c0 (LWP 4528)]
[New Thread 0x7fffdb7ee6c0 (LWP 4529)]
[New Thread 0x7fffdafed6c0 (LWP 4530)]
[New Thread 0x7fffda7ec6c0 (LWP 4531)]
[New Thread 0x7fffd9feb6c0 (LWP 4532)]
[New Thread 0x7fffd97ea6c0 (LWP 4533)]
[New Thread 0x7fffd8fe96c0 (LWP 4534)]
[New Thread 0x7fffd87e86c0 (LWP 4535)]
[New Thread 0x7fffd7fe76c0 (LWP 4536)]
[New Thread 0x7fffd77e66c0 (LWP 4537)]
[New Thread 0x7fffd6fe56c0 (LWP 4538)]
[New Thread 0x7fffd67e46c0 (LWP 4539)]
[Thread 0x7fffd67e46c0 (LWP 4539) exited]
[Thread 0x7fffd6fe56c0 (LWP 4538) exited]
[Thread 0x7fffd77e66c0 (LWP 4537) exited]
[Thread 0x7fffd7fe76c0 (LWP 4536) exited]
[Thread 0x7fffd87e86c0 (LWP 4535) exited]
[Thread 0x7fffd8fe96c0 (LWP 4534) exited]
[Thread 0x7fffd97ea6c0 (LWP 4533) exited]
[Thread 0x7fffd9feb6c0 (LWP 4532) exited]
[Thread 0x7fffda7ec6c0 (LWP 4531) exited]
[Thread 0x7fffdafed6c0 (LWP 4530) exited]
[Thread 0x7fffdb7ee6c0 (LWP 4529) exited]
[Thread 0x7fffdbfef6c0 (LWP 4528) exited]
[Thread 0x7fffd5fe36c0 (LWP 4527) exited]
[Thread 0x7fffd57e26c0 (LWP 4526) exited]
[Thread 0x7fffd4fe16c0 (LWP 4525) exited]
[Thread 0x7fffd47e06c0 (LWP 4524) exited]
[New Thread 0x7fffd67e46c0 (LWP 4540)]
[New Thread 0x7fffd6fe56c0 (LWP 4541)]
[New Thread 0x7fffd77e66c0 (LWP 4542)]
[New Thread 0x7fffd7fe76c0 (LWP 4543)]
[New Thread 0x7fffdbe6f6c0 (LWP 4544)]
[New Thread 0x7fffdb66e6c0 (LWP 4545)]
[New Thread 0x7fffdae6d6c0 (LWP 4546)]
[New Thread 0x7fffda66c6c0 (LWP 4547)]
[New Thread 0x7fffd9e6b6c0 (LWP 4548)]
[New Thread 0x7fffd966a6c0 (LWP 4549)]
[New Thread 0x7fffd8e696c0 (LWP 4550)]
[New Thread 0x7fffd5fe36c0 (LWP 4551)]
[New Thread 0x7fffd57e26c0 (LWP 4552)]
[New Thread 0x7fffd4fe16c0 (LWP 4553)]
[New Thread 0x7fffd47e06c0 (LWP 4554)]
[graph 0 input from stream 0:1 @ 0x55555d9d78c0] w:1280 h:720 pixfmt:qsv tb:1/24000 fr:24/1 sar:1/1
[av1_qsv @ 0x55555d4589c0] Using input frames context (format qsv) with av1_qsv encoder.
[av1_qsv @ 0x55555d4589c0] Encoder: input is video memory surface
[av1_qsv @ 0x55555d4589c0] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[New Thread 0x7fffd3fdf6c0 (LWP 4555)]
[New Thread 0x7fffd37de6c0 (LWP 4556)]
[New Thread 0x7fffd2fdd6c0 (LWP 4557)]
[New Thread 0x7fffd27dc6c0 (LWP 4558)]
[New Thread 0x7fffd1fdb6c0 (LWP 4559)]
[New Thread 0x7fffd17da6c0 (LWP 4560)]
[New Thread 0x7fffd0fd96c0 (LWP 4561)]
[New Thread 0x7fffcbfff6c0 (LWP 4562)]
[New Thread 0x7fffcb7fe6c0 (LWP 4563)]
[New Thread 0x7fffcaffd6c0 (LWP 4564)]
[New Thread 0x7fffca7fc6c0 (LWP 4565)]
[New Thread 0x7fffc9ffb6c0 (LWP 4566)]
[New Thread 0x7fffc97fa6c0 (LWP 4567)]
[New Thread 0x7fffc8ff96c0 (LWP 4568)]
[New Thread 0x7fffc3fff6c0 (LWP 4569)]
[New Thread 0x7fffc37fe6c0 (LWP 4570)]
[Thread 0x7fffc37fe6c0 (LWP 4570) exited]
[Thread 0x7fffc3fff6c0 (LWP 4569) exited]
[Thread 0x7fffc8ff96c0 (LWP 4568) exited]
[Thread 0x7fffc97fa6c0 (LWP 4567) exited]
[Thread 0x7fffc9ffb6c0 (LWP 4566) exited]
[Thread 0x7fffca7fc6c0 (LWP 4565) exited]
[Thread 0x7fffcaffd6c0 (LWP 4564) exited]
[Thread 0x7fffcb7fe6c0 (LWP 4563) exited]
[Thread 0x7fffcbfff6c0 (LWP 4562) exited]
[Thread 0x7fffd0fd96c0 (LWP 4561) exited]
[av1_qsv @ 0x55555d4589c0] Using the variable bitrate (VBR) ratecontrol method
[Thread 0x7fffd17da6c0 (LWP 4560) exited]
[Thread 0x7fffd1fdb6c0 (LWP 4559) exited]
[Thread 0x7fffd27dc6c0 (LWP 4558) exited]
[Thread 0x7fffd2fdd6c0 (LWP 4557) exited]
[Thread 0x7fffd37de6c0 (LWP 4556) exited]
[Thread 0x7fffd3fdf6c0 (LWP 4555) exited]
[av1_qsv @ 0x55555d4589c0] profile: av1 main; level: 31
[av1_qsv @ 0x55555d4589c0] GopPicSize: 248; GopRefDist: 8; GopOptFlag:; IdrInterval: 0
[av1_qsv @ 0x55555d4589c0] TargetUsage: 4; RateControlMethod: VBR
[av1_qsv @ 0x55555d4589c0] BufferSizeInKB: 1000; InitialDelayInKB: 125; TargetKbps: 1000; MaxKbps: 1000; BRCParamMultiplier: 1
[av1_qsv @ 0x55555d4589c0] NumRefFrame: 4
[av1_qsv @ 0x55555d4589c0] IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0; IntRefCycleDist: 0
[av1_qsv @ 0x55555d4589c0] MaxFrameSize: 0;
[av1_qsv @ 0x55555d4589c0] BitrateLimit: unknown; MBBRC: OFF; ExtBRC: unknown
[av1_qsv @ 0x55555d4589c0] VDENC: ON
[av1_qsv @ 0x55555d4589c0] BRefType: pyramid
[av1_qsv @ 0x55555d4589c0] PRefType: default
[av1_qsv @ 0x55555d4589c0] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; MinQPB: 0; MaxQPB: 0
[av1_qsv @ 0x55555d4589c0] FrameRateExtD: 1; FrameRateExtN: 24 
[av1_qsv @ 0x55555d4589c0] NumTileRows: 1; NumTileColumns: 1; NumTileGroups: 1
[av1_qsv @ 0x55555d4589c0] WriteIVFHeaders: OFF 
[av1_qsv @ 0x55555d4589c0] LowDelayBRC: OFF
[av1_qsv @ 0x55555d4589c0] MaxFrameSize: 0;
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    encoder         : Lavf60.4.100
  Stream #0:0(und): Video: av1, 1 reference frame (av01 / 0x31307661), qsv(tv, progressive, left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 24 fps, 12288 tbn (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.4.100 av1_qsv
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, delay 1024, 128 kb/s (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.4.100 aac
[New Thread 0x7fffc37fe6c0 (LWP 4571)]
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.44 bitrate=   0.9kbits/s speed=35.3x    
Thread 6 "ffmpeg" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff4bff6c0 (LWP 4476)]
0x00007ffff70b7dc1 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
(gdb) bt
#0  0x00007ffff70b7dc1 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
#1  0x00007ffff734db1f in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
#2  0x00007ffff71b1988 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
#3  0x00007ffff70c6692 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
#4  0x00007ffff6f14115 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
#5  0x00007ffff6eea433 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
#6  0x00007ffff7a46563 in vaEndPicture (dpy=0x55555d48f3d0, context=<optimized out>) at ./va/va.c:1634
#7  0x00007ffff5d698ce in MfxEncodeHW::DeviceVAAPI::Execute(MfxEncodeHW::DDIExecParam const&) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#8  0x00007ffff5d01a83 in std::_Function_handler<mfxStatus (std::function<mfxStatus (MfxEncodeHW::DDIExecParam const&)>, MfxEncodeHW::DDIExecParam const&), AV1EHW::Linux::Base::DDI_VA::Query1NoCaps(AV1EHW::FeatureBlocks const&, std::function<void (unsigned int, std::function<mfxStatus (mfxVideoParam const&, mfxVideoParam&, MfxFeatureBlocks::StorageRW&)>&&)>)::{lambda(mfxVideoParam const&, mfxVideoParam&, MfxFeatureBlocks::StorageRW&)#1}::operator()(mfxVideoParam const&, mfxVideoParam&, MfxFeatureBlocks::StorageRW&) const::{lambda(std::function<mfxStatus (MfxEncodeHW::DDIExecParam const&)>, MfxEncodeHW::DDIExecParam const&)#1}>::_M_invoke(std::_Any_data const&, std::function<mfxStatus (MfxEncodeHW::DDIExecParam const&)>&&, MfxEncodeHW::DDIExecParam const&) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#9  0x00007ffff5ce8bae in std::_Function_handler<mfxStatus (MfxEncodeHW::DDIExecParam const&), MfxFeatureBlocks::CallChain<mfxStatus, MfxEncodeHW::DDIExecParam const&>::Push(std::function<mfxStatus (std::function<mfxStatus (MfxEncodeHW::DDIExecParam const&)>, MfxEncodeHW::DDIExecParam const&)>)::{lambda(MfxEncodeHW::DDIExecParam const&)#1}>::_M_invoke(std::_Any_data const&, MfxEncodeHW::DDIExecParam const&) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#10 0x00007ffff5d6a496 in MfxEncodeHW::DeviceVAAPI::EndPicture() () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#11 0x00007ffff5d065cb in std::_Function_handler<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&), AV1EHW::Linux::Base::DDI_VA::SubmitTask(AV1EHW::FeatureBlocks const&, std::function<void (unsigned int, std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)>&&)>)::{lambda(MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)#1}>::_M_invoke(std::_Any_data const&, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#12 0x00007ffff5d5ce38 in MfxFeatureBlocks::RunBlocks<bool (*)(mfxStatus const&), std::__cxx11::list<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> >, std::allocator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > > > const, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&>(bool (*)(mfxStatus const&), std::__cxx11::list<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> >, std::allocator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > > > const&, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)::{lambda(MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > const&)#1} std::for_each<std::_List_const_iterator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > >, MfxFeatureBlocks::RunBlocks<bool (*)(mfxStatus const&), std::__cxx11::list<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> >, std::allocator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > > > const, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&>(bool (*)(mfxStatus const&), std::__cxx11::list<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> >, std::allocator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > > > const&, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)::{lambda(MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > const&)#1}>(std::_List_const_iterator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > >, std::_List_const_iterator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > >, MfxFeatureBlocks::RunBlocks<bool (*)(mfxStatus const&), std::__cxx11::list<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> >, std::allocator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > > > const, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&>(bool (*)(mfxStatus const&), std::__cxx11::list<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> >, std::allocator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > > > const&, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)::{lambda(MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > const&)#1}) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#13 0x00007ffff5d5cf3c in mfxStatus MfxFeatureBlocks::RunBlocks<bool (*)(mfxStatus const&), std::__cxx11::list<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> >, std::allocator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > > > const, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&>(bool (*)(mfxStatus const&), std::__cxx11::list<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> >, std::allocator<MfxFeatureBlocks::FeatureBlocksCommon<MfxFeatureBlocks::BlockTracer>::Block<std::function<mfxStatus (MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&)> > > > const&, MfxFeatureBlocks::StorageW&, MfxFeatureBlocks::StorageW&) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#14 0x00007ffff5cbf043 in MfxEncodeHW::TaskManager::TaskSubmit(MfxFeatureBlocks::StorageW&) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#15 0x00007ffff5c8c1cb in AV1EHW::Base::MFXVideoENCODEAV1_HW::Execute(void*, unsigned int, unsigned int) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#16 0x00007ffff5b16fa6 in mfxSchedulerCore::ThreadProc(MFX_SCHEDULER_THREAD_CONTEXT*) () from /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2
#17 0x00007ffff68e64a3 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#18 0x00007ffff7c90402 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#19 0x00007ffff7d1f590 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb) 
gnat commented 1 year ago

Cleaned up my posts for readability. Hope the backtrace helps get to the root of the issue.

nyanmisaka commented 1 year ago

Can you build media-driver from source with these two options and see if it works?

"free" builds, same as intel-media-va-driver from Ubuntu repo:

-DENABLE_KERNELS=ON
-DENABLE_NONFREE_KERNELS=OFF

If it the issue persists then someone should transfer this issue over there.

dvrogozh commented 1 year ago

It's difficult to correlate output of vainfo -a piped from grep with codec entry points. Can you, please, save output to some file then look into it and copy-paste a relevant section for AV1. Like this (just a sample output from SKL):

VAProfileH264Main/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
    VAConfigAttribRateControl              : VA_RC_CQP
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
gnat commented 1 year ago
server@server:~/libva$ vainfo -a
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.18 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
vainfo: Supported config attributes per profile/entrypoint pair
VAProfileNone/VAEntrypointVideoProc
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV411
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_RGB16
                                             VA_RT_FORMAT_RGB32

VAProfileNone/VAEntrypointStats
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV411
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_RGB16
                                             VA_RT_FORMAT_RGB32

VAProfileMPEG2Simple/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 1920
    VAConfigAttribMaxPictureHeight         : 1920
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileMPEG2Main/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 1920
    VAConfigAttribMaxPictureHeight         : 1920
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileH264Main/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
                                             VA_DEC_SLICE_MODE_BASE
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 8192
    VAConfigAttribMaxPictureHeight         : 8192
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileH264Main/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_CQP
                                             VA_RC_ICQ
                                             VA_RC_MB
                                             VA_RC_QVBR
                                             VA_RC_TCBRC
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=0
    VAConfigAttribEncMaxSlices             : 3
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
    VAConfigAttribMaxPictureWidth          : 4096
    VAConfigAttribMaxPictureHeight         : 4096
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_TRELLIS_SUPPORTED
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncSkipFrame             : supported
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 4
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1

VAProfileH264High/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
                                             VA_DEC_SLICE_MODE_BASE
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 8192
    VAConfigAttribMaxPictureHeight         : 8192
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileH264High/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_CQP
                                             VA_RC_ICQ
                                             VA_RC_MB
                                             VA_RC_QVBR
                                             VA_RC_TCBRC
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=0
    VAConfigAttribEncMaxSlices             : 3
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
    VAConfigAttribMaxPictureWidth          : 4096
    VAConfigAttribMaxPictureHeight         : 4096
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_TRELLIS_SUPPORTED
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncSkipFrame             : supported
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 4
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1

VAProfileJPEGBaseline/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV411
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_RGB16
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecJPEG                  : VA_ROTATION_NONE
                                             VA_ROTATION_90
                                             VA_ROTATION_180
                                             VA_ROTATION_270
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileJPEGBaseline/VAEntrypointEncPicture
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV411
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_RGB16
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribEncJPEG                  : rithmatic_coding_mode=0
                                             progressive_dct_mode=0
                                             non_interleaved_mode=0
                                             differential_mode=0
                                             differential_mode=0
                                             max_num_components=3
                                             max_num_scans=1
                                             max_num_huffman_tables=2
                                             max_num_quantization_tables=3
    VAConfigAttribEncQualityRange          : number of supported quality levels is 1

VAProfileH264ConstrainedBaseline/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
                                             VA_DEC_SLICE_MODE_BASE
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 8192
    VAConfigAttribMaxPictureHeight         : 8192
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileH264ConstrainedBaseline/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_RGB32
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_CQP
                                             VA_RC_ICQ
                                             VA_RC_MB
                                             VA_RC_QVBR
                                             VA_RC_TCBRC
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=0
    VAConfigAttribEncMaxSlices             : 3
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
    VAConfigAttribMaxPictureWidth          : 4096
    VAConfigAttribMaxPictureHeight         : 4096
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_TRELLIS_SUPPORTED
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncSkipFrame             : supported
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 4
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1

VAProfileHEVCMain/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCMain/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_VCM
                                             VA_RC_CQP
                                             VA_RC_MB
                                             VA_RC_QVBR
                                             VA_RC_TCBRC
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=3
    VAConfigAttribEncMaxSlices             : 196611
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS
                                             VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
                                             VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 12288
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 16
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1
    VAConfigAttribPredictionDirection      : VA_PREDICTION_DIRECTION_PREVIOUS
                                             VA_PREDICTION_DIRECTION_FUTURE

VAProfileHEVCMain10/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCMain10/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_VCM
                                             VA_RC_CQP
                                             VA_RC_MB
                                             VA_RC_QVBR
                                             VA_RC_TCBRC
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=3
    VAConfigAttribEncMaxSlices             : 196611
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS
                                             VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
                                             VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 12288
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 16
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1
    VAConfigAttribPredictionDirection      : VA_PREDICTION_DIRECTION_PREVIOUS
                                             VA_PREDICTION_DIRECTION_FUTURE

VAProfileVP9Profile0/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
                                             VA_DEC_SLICE_MODE_BASE
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileVP9Profile0/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_CQP
                                             VA_RC_ICQ
                                             VA_RC_MB
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=0
    VAConfigAttribEncMaxSlices             : 3
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
    VAConfigAttribMaxPictureWidth          : 8192
    VAConfigAttribMaxPictureHeight         : 8192
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_NONE
    VAConfigAttribEncROI                   : num_roi_regions=0
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribEncRateControlExt        : max_num_temporal_layers_minus1=7 temporal_layer_bitrate_control_flag=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 4
    VAConfigAttribEncDynamicScaling        : supported
    VAConfigAttribEncTileSupport           : supported

VAProfileVP9Profile1/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
                                             VA_DEC_SLICE_MODE_BASE
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileVP9Profile1/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_CQP
                                             VA_RC_ICQ
                                             VA_RC_MB
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=0
    VAConfigAttribEncMaxSlices             : 3
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
    VAConfigAttribMaxPictureWidth          : 8192
    VAConfigAttribMaxPictureHeight         : 8192
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_NONE
    VAConfigAttribEncROI                   : num_roi_regions=0
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribEncRateControlExt        : max_num_temporal_layers_minus1=7 temporal_layer_bitrate_control_flag=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 4
    VAConfigAttribEncDynamicScaling        : supported
    VAConfigAttribEncTileSupport           : supported

VAProfileVP9Profile2/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV420_12
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
                                             VA_DEC_SLICE_MODE_BASE
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileVP9Profile2/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_CQP
                                             VA_RC_ICQ
                                             VA_RC_MB
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=0
    VAConfigAttribEncMaxSlices             : 3
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
    VAConfigAttribMaxPictureWidth          : 8192
    VAConfigAttribMaxPictureHeight         : 8192
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_NONE
    VAConfigAttribEncROI                   : num_roi_regions=0
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribEncRateControlExt        : max_num_temporal_layers_minus1=7 temporal_layer_bitrate_control_flag=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 4
    VAConfigAttribEncDynamicScaling        : supported
    VAConfigAttribEncTileSupport           : supported

VAProfileVP9Profile3/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_YUV422_12
                                             VA_RT_FORMAT_YUV444_12
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
                                             VA_DEC_SLICE_MODE_BASE
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileVP9Profile3/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_CQP
                                             VA_RC_ICQ
                                             VA_RC_MB
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=0
    VAConfigAttribEncMaxSlices             : 3
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
    VAConfigAttribMaxPictureWidth          : 8192
    VAConfigAttribMaxPictureHeight         : 8192
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_NONE
    VAConfigAttribEncROI                   : num_roi_regions=0
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribEncRateControlExt        : max_num_temporal_layers_minus1=7 temporal_layer_bitrate_control_flag=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 4
    VAConfigAttribEncDynamicScaling        : supported
    VAConfigAttribEncTileSupport           : supported

VAProfileHEVCMain12/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV420_12
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCMain422_10/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCMain422_12/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV420_12
                                             VA_RT_FORMAT_YUV422_12
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCMain444/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV400
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCMain444/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_VCM
                                             VA_RC_CQP
                                             VA_RC_MB
                                             VA_RC_QVBR
                                             VA_RC_TCBRC
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=3
    VAConfigAttribEncMaxSlices             : 196611
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS
                                             VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
                                             VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 12288
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 16
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1
    VAConfigAttribPredictionDirection      : VA_PREDICTION_DIRECTION_PREVIOUS
                                             VA_PREDICTION_DIRECTION_FUTURE

VAProfileHEVCMain444_10/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCMain444_10/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_VCM
                                             VA_RC_CQP
                                             VA_RC_MB
                                             VA_RC_QVBR
                                             VA_RC_TCBRC
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=3
    VAConfigAttribEncMaxSlices             : 196611
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS
                                             VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
                                             VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 12288
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 16
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1
    VAConfigAttribPredictionDirection      : VA_PREDICTION_DIRECTION_PREVIOUS
                                             VA_PREDICTION_DIRECTION_FUTURE

VAProfileHEVCMain444_12/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_YUV420_12
                                             VA_RT_FORMAT_YUV422_12
                                             VA_RT_FORMAT_YUV444_12
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCSccMain/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV400
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCSccMain/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CQP
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=3
    VAConfigAttribEncMaxSlices             : 196611
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS
                                             VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
                                             VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 12288
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 16
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1
    VAConfigAttribPredictionDirection      : VA_PREDICTION_DIRECTION_PREVIOUS

VAProfileHEVCSccMain10/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCSccMain10/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CQP
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=3
    VAConfigAttribEncMaxSlices             : 196611
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS
                                             VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
                                             VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 12288
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 16
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1
    VAConfigAttribPredictionDirection      : VA_PREDICTION_DIRECTION_PREVIOUS

VAProfileHEVCSccMain444/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV400
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCSccMain444/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CQP
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=3
    VAConfigAttribEncMaxSlices             : 196611
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS
                                             VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
                                             VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 12288
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 16
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1
    VAConfigAttribPredictionDirection      : VA_PREDICTION_DIRECTION_PREVIOUS

VAProfileAV1Profile0/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
                                             VA_DEC_SLICE_MODE_BASE
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileAV1Profile0/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CBR
                                             VA_RC_VBR
                                             VA_RC_CQP
                                             VA_RC_TCBRC
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=515
                                             l1=1
    VAConfigAttribEncMaxSlices             : 66051
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
    VAConfigAttribMaxPictureWidth          : 8192
    VAConfigAttribMaxPictureHeight         : 8192
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_NONE
    VAConfigAttribEncROI                   : num_roi_regions=0
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1

VAProfileHEVCSccMain444_10/VAEntrypointVLD
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV400
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribDecSliceMode             : VA_DEC_SLICE_MODE_NORMAL
    VAConfigAttribDecProcessing            : VA_DEC_PROCESSING_NONE
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 16384
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_DECODE

VAProfileHEVCSccMain444_10/VAEntrypointEncSliceLP
    VAConfigAttribRTFormat                 : VA_RT_FORMAT_YUV420
                                             VA_RT_FORMAT_YUV422
                                             VA_RT_FORMAT_YUV444
                                             VA_RT_FORMAT_YUV420_10
                                             VA_RT_FORMAT_YUV422_10
                                             VA_RT_FORMAT_YUV444_10
                                             VA_RT_FORMAT_RGB32
                                             VA_RT_FORMAT_RGB32_10
                                             VA_RT_FORMAT_RGB32_10BPP
                                             VA_RT_FORMAT_YUV420_10BPP
    VAConfigAttribRateControl              : VA_RC_CQP
    VAConfigAttribEncPackedHeaders         : VA_ENC_PACKED_HEADER_SEQUENCE
                                             VA_ENC_PACKED_HEADER_PICTURE
                                             VA_ENC_PACKED_HEADER_SLICE
                                             VA_ENC_PACKED_HEADER_MISC
                                             VA_ENC_PACKED_HEADER_RAW_DATA
    VAConfigAttribEncInterlaced            : VA_ENC_INTERLACED_NONE
    VAConfigAttribEncMaxRefFrames          : l0=3
                                             l1=3
    VAConfigAttribEncMaxSlices             : 196611
    VAConfigAttribEncSliceStructure        : VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS
                                             VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS
                                             VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE
                                             VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS
    VAConfigAttribMaxPictureWidth          : 16384
    VAConfigAttribMaxPictureHeight         : 12288
    VAConfigAttribEncQualityRange          : number of supported quality levels is 7
    VAConfigAttribEncQuantization          : VA_ENC_QUANTIZATION_NONE
    VAConfigAttribEncIntraRefresh          : VA_ENC_INTRA_REFRESH_ROLLING_COLUMN
                                             VA_ENC_INTRA_REFRESH_ROLLING_ROW
    VAConfigAttribEncROI                   : num_roi_regions=16
                                             roi_rc_priority_support=0
                                             roi_rc_qp_delta_support=1
    VAConfigAttribProcessingRate           : VA_PROCESSING_RATE_ENCODE
    VAConfigAttribEncDirtyRect             : number of supported regions is 16
    VAConfigAttribFEIMVPredictors          : number of supported MV predictors is 4
    VAConfigAttribEncTileSupport           : supported
    VAConfigAttribMaxFrameSize             : max_frame_size=1
                                             multiple_pass=1
    VAConfigAttribPredictionDirection      : VA_PREDICTION_DIRECTION_PREVIOUS

server@server:~/libva$ 
dvrogozh commented 1 year ago

That's on free driver? Hm, interesting. I feel I need review the media stack again in a sense of dependency for CQP/CBR/VBR modes. Indeed, it lists AV1 supporting all these...

gnat commented 1 year ago

I think so? It's the compiled master of oneVPL-intel-gpu (https://github.com/oneapi-src/oneVPL-intel-gpu)

dvrogozh commented 1 year ago

It's the compiled master of oneVPL-intel-gpu

That's not a driver. Driver repo is: https://github.com/intel/media-driver.

gnat commented 1 year ago

It's the compiled master of oneVPL-intel-gpu

That's not a driver. Driver repo is: https://github.com/intel/media-driver.

In that case, it would have been provided by Linux Kernel 6.2 or Ubuntu 23.04 daily build.

nyanmisaka commented 1 year ago

apt list --installed | grep intel-media-va-driver ?

gnat commented 1 year ago

Can you build media-driver from source with these two options and see if it works?

"free" builds, same as intel-media-va-driver from Ubuntu repo:

-DENABLE_KERNELS=ON
-DENABLE_NONFREE_KERNELS=OFF

If it the issue persists then someone should transfer this issue over there.

Nice one!! :tada: :tada:

intel-media-va-driver master, default.

:green_circle: av1_qsv works. :green_circle: h264_qsv works.

intel-media-va-driver master, with -DENABLE_KERNELS=ON -DENABLE_NONFREE_KERNELS=OFF

:red_circle: av1_qsv Segmentation fault (core dumped) :green_circle: h264_qsv works.

Sounds like this issue needs to be moved to https://github.com/intel/media-driver

gnat commented 1 year ago

apt list --installed | grep intel-media-va-driver ?

server@server:~/Desktop$ apt list --installed | grep intel-media-va-driver
intel-media-va-driver/lunar,now 23.1.1+dfsg1-1 amd64 [installed,automatic]
nyanmisaka commented 1 year ago

Now that all bitrate controls of AV1 encoder are not working in free kernel build, there must be something wrong in media-driver.

gnat commented 1 year ago

For who gets assigned to fix the bug: It'll be paramount to let the intel-media-va-driver package maintainers know when the fix is out for this-- hopefully before the development window for Ubuntu 23.04 Lunar closes- Latest end of March to get the fix in for release of Ubuntu 23.04.

If not, it would be really sad to have this needlessly broken in Ubuntu until October (Ubuntu 23.10).

Release schedule is here: https://discourse.ubuntu.com/t/lunar-lobster-release-schedule/27284

dvrogozh commented 1 year ago

Sounds like this issue needs to be moved to https://github.com/intel/media-driver

Yes, submit issue for media-driver, please.

xhaihao commented 1 year ago

See driver issue: https://github.com/intel/media-driver/issues/1617