You are not logged in.

#1 2022-09-18 23:03:23

Cvlc
Member
Registered: 2020-03-26
Posts: 273

FFmpeg and oneVPL-intel-gpu (or quicksync)

Hi !

I can't seem to get a working oneVPL setup with the following (supported) hardware :

$ cat /proc/cpuinfo | grep 'model name' | uniq
model name	: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz

$ lspci -k | grep -A2 -E '(VGA|3D|[Dd]isplay)'
00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)
	DeviceName: Onboard - Video
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12e1

I've installed (AUR) onevpl-git and (AUR) onevpl-intel-gpu-git

The implementation seems to be found :

$ vpl-inspect
Implementation #0: mfx-gen
  Library path: /usr/lib/libmfx-gen.so.1.2.7
  AccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI
  ApiVersion: 2.7
  Impl: MFX_IMPL_TYPE_HARDWARE
  VendorImplID: 0x0000
  ImplName: mfx-gen
  License: MIT License
  Version: 1.2
  Keywords: 
  VendorID: 0x8086
  mfxAccelerationModeDescription:
    Version: 1.0
    Mode: MFX_ACCEL_MODE_VIA_VAAPI
  mfxPoolPolicyDescription:
    Version: 1.0
    Policy: MFX_ALLOCATION_OPTIMAL
    Policy: MFX_ALLOCATION_UNLIMITED
    Policy: MFX_ALLOCATION_LIMITED
  mfxDeviceDescription:
    DeviceID: 9a49/0
    Version: 0.0
  mfxDecoderDescription:
    Version: 1.0
    CodecID: VC1 
    MaxcodecLevel: 5
      Profile: MFX_PROFILE_VC1_SIMPLE

[...]

Total number of implementations found = 1

and the codecs as well :

$ ffmpeg -decoders -hide_banner | grep qsv
 V....D av1_qsv              AV1 video (Intel Quick Sync Video acceleration) (codec av1)
 V....D h264_qsv             H264 video (Intel Quick Sync Video acceleration) (codec h264)
 V....D hevc_qsv             HEVC video (Intel Quick Sync Video acceleration) (codec hevc)
 V....D mjpeg_qsv            MJPEG video (Intel Quick Sync Video acceleration) (codec mjpeg)
 V....D mpeg2_qsv            MPEG2VIDEO video (Intel Quick Sync Video acceleration) (codec mpeg2video)
 V....D vc1_qsv              VC1 video (Intel Quick Sync Video acceleration) (codec vc1)
 V....D vp8_qsv              VP8 video (Intel Quick Sync Video acceleration) (codec vp8)
 V....D vp9_qsv              VP9 video (Intel Quick Sync Video acceleration) (codec vp9)

$ ffmpeg -encoders -hide_banner |grep qsv
 V..... h264_qsv             H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
 V..... hevc_qsv             HEVC (Intel Quick Sync Video acceleration) (codec hevc)
 V..... mjpeg_qsv            MJPEG (Intel Quick Sync Video acceleration) (codec mjpeg)
 V..... mpeg2_qsv            MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video)
 V..... vp9_qsv              VP9 video (Intel Quick Sync Video acceleration) (codec vp9)

But when trying to decode according to the examples on the FFmpeg wiki I get the following errors :

$ ffmpeg -hwaccel qsv -c:v h264_qsv -i GOPR2456.MP4 -vf hwdownload,format=nv12 -pix_fmt yuv420p output.yuv

[...]
Error initializing an MFX session: -3.
Device creation failed: -1313558101.
[h264_qsv @ 0x55be7b00f040] No device available for decoder: device type qsv needed for codec h264_qsv.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_qsv) -> rawvideo (native))
Device setup failed for decoder on input stream #0:0 : Unknown error occurred

VA-API runs fine with FFmpeg, Firefox etc...

$ vainfo
vainfo: VA-API version: 1.15 (libva 2.15.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.4.4 ()
vainfo: Supported profile and entrypoints

$ env | grep LIBVA
LIBVA_DRIVER_NAME=iHD

Does anyone have an idea what I'm missing ?

Thanks very much !

[edit]
also tried adding "-qsv_device /dev/dri/renderD128" (which shouldn't be necessary I think) but still not working

$ ffmpeg -hwaccel qsv -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i input.mp4 -c:v h264_qsv output.mp4
Error initializing an MFX session: -3.
Device creation failed: -1313558101.
Failed to set value '/dev/dri/renderD128' for option 'qsv_device': Unknown error occurred
Error parsing global options: Unknown error occurred

Last edited by Cvlc (2022-09-19 00:24:47)

Offline

#2 2022-09-19 00:22:52

Cvlc
Member
Registered: 2020-03-26
Posts: 273

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

OK so maybe I got mixed up with all these APIs.

Apparently OneAPI support in FFmpeg is quite new according to this phoronix article, and FFmpeg needs to be built with the "--enable-libvpl" option which doesn't seem to be the case if I understand correctly.

But the FFmpeg wiki section does seem to point to onevpl-intel-gpu for my hardware.

So i'm really confused as to what I need to do in order to use QuickSync for hardware encoding and decoding with FFmpeg.

Hope someone can push me in the right direction ! thanks

Last edited by Cvlc (2022-09-19 00:23:21)

Offline

#3 2022-09-20 16:23:37

dbermond
Package Maintainer (PM)
Registered: 2017-05-06
Posts: 28
Website

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

You need ffmpeg to be built with oneVPL support.

At the time of writing, oneVPL support is available only in ffmpeg git master. So, you cannot use it now with ffmpeg from the official repositories, but you need to compile ffmpeg from git master branch with '--enable-libvpl'.

You also need to make sure that libva is configured to use the 'iHD' driver

I've already switched ffmpeg-full-git (AUR) to use '--enable-libvpl' for supporting the new oneVPL API, as Intel now considers libmfx/mediasdk to be legacy software. So you can use this package for using oneVPL. Notice that '--enable-libmfx' and '--enable-libvpl' cannot be used at the same time.

Offline

#4 2022-09-20 22:02:14

Cvlc
Member
Registered: 2020-03-26
Posts: 273

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Thanks very much !
I've tried building it twice but it fails. I didn't expect something that big, would it work if I used ffmpeg-git (AUR) and manually replaced libmfx with libvpl in the PKGBUILD, instead of using ffmpeg-full-git (AUR) ?

[edit]
(trying it out now)

Last edited by Cvlc (2022-09-20 23:20:57)

Offline

#5 2022-09-20 23:10:43

Cvlc
Member
Registered: 2020-03-26
Posts: 273

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

OK so I installed ffmpeg-git (AUR), having replaced libmfx with libvpl in dependencies and in  '--enable-...'. in the PKGBUILD

Still cannot find the qsv device, but it now seems to be related to the vaapi driver.

Everything is still set up as above, libva being configured to use intel-media-driver, (vainfo output in first post)

$ ffmpeg -hide_banner -hwaccel qsv -c:v h264_qsv -i GOPR2456_1657931597358.MP4 -vf hwdownload,format=nv12 -pix_fmt yuv420p output.yuv
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x564ae3706a00] All samples in data stream index:id [4:5] have zero duration, stream set to be discarded by default. Override using AVStream->discard or -discard for ffmpeg command.
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".
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GOPR2456_1657931597358.MP4':
  Metadata:
    major_brand     : mp41
    minor_version   : 538120216
    compatible_brands: mp41
    creation_time   : 2022-07-15T13:12:20.000000Z
    firmware        : HD5.02.02.70.00
  Duration: 00:00:52.14, start: 0.000000, bitrate: 60185 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 2704x1520 [SAR 1:1 DAR 169:95], 60017 kb/s, 59.94 fps, 59.94 tbr, 60k tbn (default)
    Metadata:
      creation_time   : 2022-07-15T13:12:20.000000Z
      handler_name    : 	GoPro AVC
      vendor_id       : [0][0][0][0]
      encoder         : GoPro AVC encoder
      timecode        : 07:11:55:34
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2022-07-15T13:12:20.000000Z
      handler_name    : 	GoPro AAC
      vendor_id       : [0][0][0][0]
      timecode        : 07:11:55:34
  Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2022-07-15T13:12:20.000000Z
      handler_name    : 	GoPro TCD
      timecode        : 07:11:55:34
  Stream #0:3[0x4](eng): Data: bin_data (gpmd / 0x646D7067), 34 kb/s (default)
    Metadata:
      creation_time   : 2022-07-15T13:12:20.000000Z
      handler_name    : 	GoPro MET
  Stream #0:4[0x5](eng): Data: none (fdsc / 0x63736466), 13 kb/s (default)
    Metadata:
      creation_time   : 2022-07-15T13:12:20.000000Z
      handler_name    : 	GoPro SOS
File 'output.yuv' already exists. Overwrite? [y/N] y
[AVHWDeviceContext @ 0x564ae3731dc0] libva: Failed to get device id from the driver. Please consider to upgrade the driver to support VA-API 1.15.0
Device creation failed: -1313558101.
No device available for decoder: device type qsv needed for codec h264_qsv.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_qsv) -> rawvideo (native))
Device setup failed for decoder on input stream #0:0 : Unknown error occurred

Also tried with ' -hwaccel qsv -qsv_device /dev/dri/renderD128' but still not found :

$ ffmpeg -hide_banner -hwaccel qsv -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i GOPR2456_1657931597358.MP4 -c:v h264_qsv output.mp4
[AVHWDeviceContext @ 0x560bbdec5c80] libva: Failed to get device id from the driver. Please consider to upgrade the driver to support VA-API 1.15.0
Device creation failed: -1313558101.
Failed to set value '/dev/dri/renderD128' for option 'qsv_device': Unknown error occurred
Error parsing global options: Unknown error occurred

but still

Last edited by Cvlc (2022-09-20 23:33:04)

Offline

#6 2022-09-21 02:28:17

dbermond
Package Maintainer (PM)
Registered: 2017-05-06
Posts: 28
Website

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Encoding videos with qsv encoders works perfectly for me with this command:

$ ffmpeg -loglevel verbose -i test-out.mp4 -c:v h264_qsv -global_quality 18 -rdo 1 -preset:v slow -y output.mp4

The log confirms to be using hardware accelerated encoding:

[AVHWDeviceContext @ 0x55c0cb8bf7c0] Trying to use DRM render node for device 0, with matching kernel driver (i915).
[AVHWDeviceContext @ 0x55c0cb8bf7c0] libva: VA-API version 1.15.0
[AVHWDeviceContext @ 0x55c0cb8bf7c0] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x55c0cb8bf7c0] libva: Trying to open /usr/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x55c0cb8bf7c0] libva: Found init function __vaDriverInit_1_15
[AVHWDeviceContext @ 0x55c0cb8bf7c0] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x55c0cb8bf7c0] Initialised VAAPI connection: version 1.15
[AVHWDeviceContext @ 0x55c0cb8bf7c0] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 22.4.4 ().
[AVHWDeviceContext @ 0x55c0cb8bf7c0] Driver not found in known nonstandard list, using standard behaviour.
[h264_qsv @ 0x55c0c9783f40] Initialized an internal MFX session using hardware accelerated implementation
[h264_qsv @ 0x55c0c9783f40] Using the constant quantization parameter (CQP) ratecontrol method

There is also confirmation to be the using the nv12 "hardware pixel format" for the video output stream and the h264_qsv encoder:

Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf59.32.100
  Stream #0:0(und): Video: h264, 1 reference frame (avc1 / 0x31637661), nv12(tv, progressive, left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 30 fps, 15360 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.44.100 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: N/A

But qsv hardware decode with onevpl/libvpl also seems to be broken for me at a first glance. Getting the same error as you. This needs more investigation, and probably it's worth trying with everything from git master (media-driver, gmmlib, etc) due to the error shown. It's also a pretty new thing.

Offline

#7 2022-09-21 08:50:29

Cvlc
Member
Registered: 2020-03-26
Posts: 273

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Thanks, encoding actually works here as well using h264_qsv and hevc_qsv (verified with intel_gpu_top)

I wonder what's stopping decode from working. Should I file a bug with ffmpeg ?

[edit]

Have you managed to get hybrid transcode working ? (vaapi then qsv, x264 to x265). it's stubbornly refusing to work as well

Last edited by Cvlc (2022-09-21 15:20:17)

Offline

#8 2022-12-05 21:38:40

BoeroBoy
Member
Registered: 2017-10-20
Posts: 2

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Try this again with latest branch?  It looks like Intel hadn't actually added this to QSV yet (until now).

https://www.phoronix.com/news/Intel-AV1 … ode-FFmpeg

Offline

#9 2022-12-06 00:49:04

Cvlc
Member
Registered: 2020-03-26
Posts: 273

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

The phoronix article is only about AV1 encoding.
I have been trying to get hevc and x264 to work. I'll try again tomorrow anyway since this is all fairly new

Offline

#10 2022-12-18 17:30:44

serfreeman1337
Member
Registered: 2022-12-18
Posts: 1

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Cvlc wrote:

I wonder what's stopping decode from working. Should I file a bug with ffmpeg ?

I've managed to get QSV decode working by hardcoding PCI ID in libavutil/hwcontex_qsv.c:

if (vas == VA_STATUS_SUCCESS /*&& attr.flags != VA_DISPLAY_ATTRIB_NOT_SUPPORTED*/) {
    impl_value.Type = MFX_VARIANT_TYPE_U16;
    impl_value.Data.U16 = 0x9a49; // (attr.value & 0xFFFF);

Turns out that required VADisplayPCIID was added in v22.5.2, whereas archlinux is still on v22.4.4 at this moment.
Indeed, after installing intel-media-driver-git everything is working.

Offline

#11 2022-12-26 05:36:49

ico
Member
Registered: 2011-01-25
Posts: 35

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

I have Intel Arc A380.

Installed onevpl-intel-gpu and onevpl from AUR.
Installed intel-media-driver as we have v22.6.4 in the repos now.
Compiled ffmpeg-git by replacing --enable-mfx with --enable-libvpl.

Command:

ffmpeg -loglevel verbose -i BigBuckBunny_2000h264.mp4 -c:v h264_qsv -global_quality 18 -rdo 1 -preset:v slow -y output.mp4

I get the following error:

[h264_qsv @ 0x561fb0279d40] Selected ratecontrol mode is unsupported
[h264_qsv @ 0x561fb0279d40] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Full log:

[h264 @ 0x561fb0259b40] Reinit context to 3840x2160, pix_fmt: yuv420p
[graph 0 input from stream 0:0 @ 0x561fb025c6c0] w:3840 h:2160 pixfmt:yuv420p tb:1/24000 fr:24/1 sar:0/1
[auto_scale_0 @ 0x561fb025eb80] w:iw h:ih flags:'' interl:0
[format @ 0x561fb025cf00] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_null_0' and the filter 'format'
[auto_scale_0 @ 0x561fb025eb80] w:3840 h:2160 fmt:yuv420p sar:0/1 -> w:3840 h:2160 fmt:nv12 sar:0/1 flags:0x0
[h264_qsv @ 0x561fb0279d40] Encoder: input is system memory surface
[h264_qsv @ 0x561fb0279d40] Use Intel(R) oneVPL to create MFX session, the required implementation version is 1.1
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
[AVHWDeviceContext @ 0x561fb501b440] Trying to use DRM render node for device 0, with matching kernel driver (i915).
[AVHWDeviceContext @ 0x561fb501b440] libva: VA-API version 1.17.0
[AVHWDeviceContext @ 0x561fb501b440] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x561fb501b440] libva: Trying to open /usr/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x561fb501b440] libva: Found init function __vaDriverInit_1_16
[AVHWDeviceContext @ 0x561fb501b440] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x561fb501b440] Initialised VAAPI connection: version 1.17
[AVHWDeviceContext @ 0x561fb501b440] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 22.6.4 ().
[AVHWDeviceContext @ 0x561fb501b440] Driver not found in known nonstandard list, using standard behaviour.
[h264_qsv @ 0x561fb0279d40] Initialized an internal MFX session using hardware accelerated implementation
[h264_qsv @ 0x561fb0279d40] Using the intelligent constant quality (ICQ) ratecontrol method
[h264_qsv @ 0x561fb0279d40] Selected ratecontrol mode is unsupported
[h264_qsv @ 0x561fb0279d40] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[AVIOContext @ 0x561fb0252780] Statistics: 0 bytes written, 0 seeks, 0 writeouts
Terminating demuxer thread 0
[AVIOContext @ 0x561fb023b600] Statistics: 251095 bytes read, 2 seeks
Conversion failed!

Any idea what to do?

Last edited by ico (2022-12-26 05:37:23)

Offline

#12 2022-12-27 17:13:30

nyanmisaka
Member
Registered: 2022-12-27
Posts: 4

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

ICQ rate control works for me with h264_qsv on Arc A380.

  Stream #0:0: Video: h264, 1 reference frame, qsv(tv, bt709/unknown/unknown, progressive, left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 23.98 fps, 23.98 tbn
    Metadata:
      encoder         : Lavc59.37.100 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: N/A
frame= 7883 fps=491 q=26.0 size=N/A time=00:05:28.41 bitrate=N/A speed=20.4x

To get hardware encoding work on Intel Arc you must install linux 6.2+ or drm-tip kernel, and pull the latest linux-firmware.

https://git.kernel.org/pub/scm/linux/ke … rmware.git

Then verify the intel firmware status with:

# dmesg | grep i915
# cat /sys/kernel/debug/dri/0/gt/uc/guc_info
# cat /sys/kernel/debug/dri/0/gt/uc/huc_info

Offline

#13 2022-12-27 19:31:42

ico
Member
Registered: 2011-01-25
Posts: 35

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

nyanmisaka wrote:

ICQ rate control works for me with h264_qsv on Arc A380.

  Stream #0:0: Video: h264, 1 reference frame, qsv(tv, bt709/unknown/unknown, progressive, left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 23.98 fps, 23.98 tbn
    Metadata:
      encoder         : Lavc59.37.100 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: N/A
frame= 7883 fps=491 q=26.0 size=N/A time=00:05:28.41 bitrate=N/A speed=20.4x

To get hardware encoding work on Intel Arc you must install linux 6.2+ or drm-tip kernel, and pull the latest linux-firmware.

https://git.kernel.org/pub/scm/linux/ke … rmware.git

Then verify the intel firmware status with:

# dmesg | grep i915
# cat /sys/kernel/debug/dri/0/gt/uc/guc_info
# cat /sys/kernel/debug/dri/0/gt/uc/huc_info

Moved to linux-git (6.2.0) and linux-firmware-git from AUR. Still not working for me. Same error as I posted. Can you share the command-line or video you used?

'cat /sys/kernel/debug/dri/0/gt/uc/guc_info' seems fine.

'cat /sys/kernel/debug/dri/0/gt/uc/huc_info' returns the following:

HuC firmware: i915/dg2_huc_gsc.bin
        status: INIT FAIL
        version: found 7.10.3
        uCode: 0 bytes
        RSA: 0 bytes
HuC status: 0x00164000

dmesg:

[    2.822222] i915 0000:07:00.0: [drm] Can't load HuC due to missing MEI modules
[    2.822223] i915 0000:07:00.0: [drm] HuC init failed with -5

I wonder why would the GPU require Intel MEI? I am on an AMD system: Ryzen 7 5800X and Asrock B550 Pro4.

Google leads me to this: https://bugs.gentoo.org/590752 which further leads me to this: https://www.phoronix.com/news/Intel-GSC … e-Needs-ME To sum up, MEI isn't required.

I will try drm-tip kernel and report back.

Last edited by ico (2022-12-27 19:57:55)

Offline

#14 2022-12-28 00:41:45

ico
Member
Registered: 2011-01-25
Posts: 35

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Switched to linux-drm-tip-git (6.1.0) from AUR.

HuC firmware loaded correctly and encoding with h264_qsv worked fine with ICQ rate control. Thank you nyanmisaka.

hevc_qsv also worked fine with: ffmpeg -init_hw_device qsv=hw -i BigBuckBunny_2000hevc.mp4 -c:v hevc_qsv -sn output.mp4

'cat /sys/kernel/debug/dri/0/gt/uc/huc_info' returns the following:

HuC firmware: i915/dg2_huc_gsc.bin
	status: RUNNING
	version: found 7.10.3
	uCode: 0 bytes
	RSA: 0 bytes
HuC status: 0x00164001

dmesg | grep -i "HuC\|mei"

[    2.801699] i915 0000:07:00.0: [drm] HuC firmware i915/dg2_huc_gsc.bin version 7.10.3
[   12.812553] i915 0000:07:00.0: [drm] timed out waiting for MEI GSC init to load HuC
[   31.500657] mei i915.mei-gscfi.1792-e2c2afa2-3817-4d19-9d95-06b16b588a5d: cannot connect
[   31.503429] mei_gsc i915.mei-gscfi.1792: FW not ready: resetting: dev_state = 2 pxp = 0
[   31.503459] mei_gsc i915.mei-gscfi.1792: unexpected reset: dev_state = ENABLED fw status = 00000345 84670000 00000000 00000000 E0020002 00000000
[   31.504195] mei_gsc i915.mei-gsc.1792: FW not ready: resetting: dev_state = 2 pxp = 2
[   31.504227] mei_gsc i915.mei-gsc.1792: unexpected reset: dev_state = ENABLED fw status = 00000345 84670000 00000000 00000000 E0020002 00000000
[   31.899663] i915 0000:07:00.0: [drm] HuC authenticated
[   31.899667] mei_pxp i915.mei-gsc.1792-fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1: bound 0000:07:00.0 (ops i915_pxp_tee_component_ops [i915])

Offline

#15 2022-12-28 07:41:45

nyanmisaka
Member
Registered: 2022-12-27
Posts: 4

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

I don't know what is the default kernel config in linux-git AUR pkg but these two options must be enabled for Huc firmware support on Intel Arc.

CONFIG_INTEL_MEI_PXP
CONFIG_INTEL_MEI_GSC

See the i915 driver:

	/* make sure we can access the GSC via the mei driver if we need it */
	if (!(IS_ENABLED(CONFIG_INTEL_MEI_PXP) && IS_ENABLED(CONFIG_INTEL_MEI_GSC)) &&
	    fw_needs_gsc) {
		drm_info(&gt->i915->drm,
			 "Can't load HuC due to missing MEI modules\n");
		return -EIO;
	}

https://github.com/torvalds/linux/blob/ … #L316-L322

Edit:
Intel MEI is not required for upgrading the GPU VBIOS but it is required for loading Huc firmware.
Also this MEI is independent of MB as I am using Arc A380 on AMD B550 with no issues.

Last edited by nyanmisaka (2022-12-28 07:52:07)

Offline

#16 2022-12-28 10:20:34

ico
Member
Registered: 2011-01-25
Posts: 35

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Makes sense. Thanks, nyanmisaka.

Looks like things will properly stabilize for Intel Arc after kernel 6.2's release.

Next step for me is testing Intel Arc with Jellyfin.

Offline

#17 2023-01-04 06:08:18

AdamC123
Member
Registered: 2023-01-04
Posts: 3

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

ico wrote:

Switched to linux-drm-tip-git (6.1.0) from AUR.

HuC firmware loaded correctly and encoding with h264_qsv worked fine with ICQ rate control. Thank you nyanmisaka.

hevc_qsv also worked fine with: ffmpeg -init_hw_device qsv=hw -i BigBuckBunny_2000hevc.mp4 -c:v hevc_qsv -sn output.mp4


That hevc_qsv encoding though would be Variable Bitrate - not ICQ (since global_quality is not specified).

I am having an outstanding issue where ICQ works with h264_qsv but NOT hevc_qsv.

Is it correct to expect ICQ to work with hevc_qsv (and going forward av1_qsv) ?

I'm running the latest of everything... on an ARC A770 - onevpl 2023.1.0, onevpl-intel-gpu 22.6.4, linux-drm-tip-git, intel-media-driver 22.6.4, etc.

Last edited by AdamC123 (2023-01-04 06:12:19)

Offline

#18 2023-01-05 03:40:17

ico
Member
Registered: 2011-01-25
Posts: 35

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

AdamC123 wrote:
ico wrote:

Switched to linux-drm-tip-git (6.1.0) from AUR.

HuC firmware loaded correctly and encoding with h264_qsv worked fine with ICQ rate control. Thank you nyanmisaka.

hevc_qsv also worked fine with: ffmpeg -init_hw_device qsv=hw -i BigBuckBunny_2000hevc.mp4 -c:v hevc_qsv -sn output.mp4


That hevc_qsv encoding though would be Variable Bitrate - not ICQ (since global_quality is not specified).

I am having an outstanding issue where ICQ works with h264_qsv but NOT hevc_qsv.

Is it correct to expect ICQ to work with hevc_qsv (and going forward av1_qsv) ?

I'm running the latest of everything... on an ARC A770 - onevpl 2023.1.0, onevpl-intel-gpu 22.6.4, linux-drm-tip-git, intel-media-driver 22.6.4, etc.

Yes, it was hevc_qsv with variable bitrate.

[hevc_qsv @ 0x55842909b800] Using device hw (type qsv) with hevc_qsv encoder.
[hevc_qsv @ 0x55842909b800] Encoder: input is system memory surface
[hevc_qsv @ 0x55842909b800] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[hevc_qsv @ 0x55842909b800] Using the variable bitrate (VBR) ratecontrol method

hevc_qsv with ICQ returns the following error:

[hevc_qsv @ 0x55f3edf29ec0] Initialized an internal MFX session using hardware accelerated implementation
[hevc_qsv @ 0x55f3edf29ec0] Using the intelligent constant quality (ICQ) ratecontrol method
[hevc_qsv @ 0x55f3edf29ec0] Selected ratecontrol mode is unsupported
[hevc_qsv @ 0x55f3edf29ec0] Low power mode is unsupported
[hevc_qsv @ 0x55f3edf29ec0] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Last edited by ico (2023-01-05 03:41:23)

Offline

#19 2023-01-05 03:45:44

AdamC123
Member
Registered: 2023-01-04
Posts: 3

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

I have that same behaviour and error...

Offline

#20 2023-01-14 11:59:29

nyanmisaka
Member
Registered: 2022-12-27
Posts: 4

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Share the output of `vainfo -a > vainfo.log` and see if the VAAPI driver support ICQ mode in HEVC and AV1.

Offline

#21 2023-01-17 02:53:52

ico
Member
Registered: 2011-01-25
Posts: 35

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Looks like it doesn't. ^

I can only see ICQ for H264 and VP9.

Trying display: wayland
Trying display: x11
error: can't connect to X server!
Trying display: drm
vainfo: VA-API version: 1.17 (libva 2.17.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.6.4 ()
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
    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             : 256
    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
    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             : 256
    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
    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                  : arithmatic_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
    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             : 256
    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
    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             : 70
    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
    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             : 70
    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
    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
    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
    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
    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
    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
    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
    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
    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             : 70
    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
    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             : 70
    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
    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
    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             : 70
    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
    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             : 70
    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
    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             : 70
    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
    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             : 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
    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
    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             : 70
    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

Offline

#22 2023-01-17 09:29:42

nyanmisaka
Member
Registered: 2022-12-27
Posts: 4

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Here I opened an issue:

https://github.com/intel/media-driver/issues/1597

And FYI everything works fine on Windows driver.

Offline

#23 2023-01-21 03:03:21

AdamC123
Member
Registered: 2023-01-04
Posts: 3

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

nyanmisaka wrote:

Here I opened an issue:

https://github.com/intel/media-driver/issues/1597

And FYI everything works fine on Windows driver.


Good stuff - thank you!

Offline

#24 2023-03-01 14:45:11

Cvlc
Member
Registered: 2020-03-26
Posts: 273

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

I am trying to rebuild the Arch ffmpeg package with onevpl support, but I get

Unknown option "--enable-libvpl".

It used to work with (AUR)ffmpeg-git but it won't build right now, is there anything else needed for the extra/ version of ffmpeg to build ?

Any plans for the packaged version to enable onevpl ?

thanks !

Last edited by Cvlc (2023-03-01 14:45:59)

Offline

#25 2023-03-10 22:10:36

ico
Member
Registered: 2011-01-25
Posts: 35

Re: FFmpeg and oneVPL-intel-gpu (or quicksync)

Cvlc wrote:

I am trying to rebuild the Arch ffmpeg package with onevpl support, but I get

Unknown option "--enable-libvpl".

It used to work with (AUR)ffmpeg-git but it won't build right now, is there anything else needed for the extra/ version of ffmpeg to build ?

Any plans for the packaged version to enable onevpl ?

thanks !

Things should work out of the box with ffmpeg 6.0 and Linux kernel 6.2. Both are now in default repositories.

hevc_qsv with ICQ rate control still does not work, but that is a problem with Intel media drive (See the GitHub issue above).

Offline

Board footer

Powered by FluxBB