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

Xiang, Haihao haihao.xiang at intel.com
Mon Apr 22 18:46:40 EEST 2024


> 
> Hi,
> 
> yes, I did so, but it did not help, see here
>  
> vainfo 
> Trying display: wayland
> Trying display: x11
> 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_20
> 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
> ...
> 
> I again receive this error.
> 
> [AVHWDeviceContext @ 0x55be64a65600] libva: VA-API version 1.20.0
> [AVHWDeviceContext @ 0x55be64a65600] libva: User requested driver 'iHD'
> [AVHWDeviceContext @ 0x55be64a65600] libva: Trying to open
> /usr/lib64/dri/iHD_drv_video.so
> [AVHWDeviceContext @ 0x55be64a65600] libva: Found init function
> __vaDriverInit_1_20
> [AVHWDeviceContext @ 0x55be64a65600] libva: va_openDriver() returns 0
> [AVHWDeviceContext @ 0x55be64a65600] Initialised VAAPI connection: version
> 1.20
> [AVHWDeviceContext @ 0x55be64a65600] VAAPI driver: Intel iHD driver for
> Intel(R) Gen Graphics - 24.1.3 ().
> [AVHWDeviceContext @ 0x55be64a65600] Driver not found in known nonstandard
> list, using standard behaviour.
> [AVHWDeviceContext @ 0x55be64a65140] Use Intel(R) oneVPL to create MFX
> session, API version is 2.10, the required implementation version is 1.3
> [AVHWDeviceContext @ 0x55be64a65140] Initialize MFX session: implementation
> version is 1.35

Seems you didn't install the right vpl runtime. You may install libmfx-gen1.2
through yum/apt etc or build it from source code
(https://github.com/intel/vpl-gpu-rt ) 


Thanks
Haihao

> [AVHWDeviceContext @ 0x55be64a65140] 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
> 
> 
> Martin.
> 
> 
> 
> 
> 
> On Monday, 22 April, 2024 14:51 CEST, "Xiang, Haihao"
> <haihao.xiang-at-intel.com at ffmpeg.org> wrote:
>  
> [...]
> [AVHWDeviceContext @ 0x560662049440] libva: VA-API version 1.20.0
> [AVHWDeviceContext @ 0x560662049440] libva: User requested driver 'iHD'
> [AVHWDeviceContext @ 0x560662049440] libva: Trying to open
> /usr/lib64/dri/iHD_drv_video.so
> [AVHWDeviceContext @ 0x560662049440] libva: Found init function
> __vaDriverInit_1_15
> [AVHWDeviceContext @ 0x560662049440] libva: va_openDriver() returns 0
> [AVHWDeviceContext @ 0x560662049440] Initialised VAAPI connection: version
> 1.20
> [AVHWDeviceContext @ 0x560662049440] VAAPI driver: Intel iHD driver for
> Intel(R) Gen Graphics - 24.1.3 ().
> 
> VA-API version is 1.20 however your driver was built against 1.15, could you
> rebuild your driver against vaapi 1.20 ?
> 
> BRs
> Haihao
> 
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list