[FFmpeg-user] Initialising hardware device fails with error -17

Martin Stenzel m.stenzel at mail.xy-space.de
Sun Apr 21 23:53:35 EEST 2024


Hi list,

I finally want to make use of hardware acceleration, but the 
initialisation fails - miserably...

uname -a

Linux terve.xy-space.de 6.1.61-1.22-default #1 SMP PREEMPT_DYNAMIC Thu 
Nov  2 15:59:07 EET 2023 (f10035c) x86_64 x86_64 x86_64
GNU/Linux



vainfo

Trying display: wayland
error: XDG_RUNTIME_DIR not set in the environment.
Trying display: x11
error: can't connect to X server!
Trying display: drm
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.20.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 
24.1.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI
      VAProfileHEVCMain               : VAEntrypointEncSliceLP
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointEncSliceLP
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSliceLP
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointEncSliceLP
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointEncSliceLP
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointEncSliceLP
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointEncSlice
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointEncSlice
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain422_12         : VAEntrypointEncSlice
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP



ffmpeg -loglevel verbose -init_hw_device 
qsv:hw,child_device=/dev/dri/renderD128

ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
   built with gcc 13 (SUSE Linux)
   configuration: --prefix=/usr --libdir=/usr/lib64 
--shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-O2 
-g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector 
-funwind-tables -fasynchronous-unwind-tables' --optflags='-O2 -g -m64 
-fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables 
-fasynchronous-unwind-tables' --disable-htmlpages --enable-pic 
--disable-stripping --enable-shared --disable-static --enable-gpl 
--enable-version3 --disable-openssl --enable-gnutls --enable-ladspa 
--enable-libaom --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdc1394 
--enable-libdrm --enable-libfontconfig --enable-libfreetype 
--enable-libfribidi --enable-libgsm --enable-libjack --enable-libmp3lame 
--enable-libopenjpeg --enable-libopenmpt --enable-libx264 
--enable-libopenh264-dlopen --enable-libopus --enable-libpulse 
--enable-librubberband --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libsrt --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx 
--enable-libwebp --enable-libxml2 --enable-libzmq --enable-libzvbi 
--enable-lv2 --enable-libvpl --enable-vaapi --enable-version3 
--enable-libfdk-aac-dlopen --enable-nonfree --enable-libx265 
--enable-libxvid
   libavutil      58. 29.100 / 58. 29.100
   libavcodec     60. 31.102 / 60. 31.102
   libavformat    60. 16.100 / 60. 16.100
   libavdevice    60.  3.100 / 60.  3.100
   libavfilter     9. 12.100 /  9. 12.100
   libswscale      7.  5.100 /  7.  5.100
   libswresample   4. 12.100 /  4. 12.100
   libpostproc    57.  3.100 / 57.  3.100
[AVHWDeviceContext @ 0x562bc19d6600] libva: VA-API version 1.20.0
[AVHWDeviceContext @ 0x562bc19d6600] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x562bc19d6600] libva: Trying to open 
/usr/lib64/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x562bc19d6600] libva: Found init function 
__vaDriverInit_1_15
[AVHWDeviceContext @ 0x562bc19d6600] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x562bc19d6600] Initialised VAAPI connection: 
version 1.20
[AVHWDeviceContext @ 0x562bc19d6600] VAAPI driver: Intel iHD driver for 
Intel(R) Gen Graphics - 24.1.3 ().
[AVHWDeviceContext @ 0x562bc19d6600] Driver not found in known 
nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x562bc19d6140] Use Intel(R) oneVPL to create MFX 
session, API version is 2.10, the required implementation version is 1.3
[AVHWDeviceContext @ 0x562bc19d6140] Initialize MFX session: 
implementation version is 1.35
[AVHWDeviceContext @ 0x562bc19d6140] Error setting child device handle: -17
Device creation failed: -1313558101.
Failed to set value 'qsv:hw,child_device=/dev/dri/renderD128' for option 
'init_hw_device': Unknown error occurred
Error parsing global options: Unknown error occurred

oneVPL is version 2.10.1


Any ideas?


-- 
Martin Stenzel · er/ihm · he/him
m.stenzel at mail.xy-space.de

An der Drehscheibe 9
D-50733 Köln · Cologne
Deutschland · Germany



This message was checked by ESET Endpoint Antivirus for Linux.
Detection Engine Version: 29100 (20240421).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5674 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20240421/2cf1e3cb/attachment.bin>


More information about the ffmpeg-user mailing list