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

Martin Stenzel m.stenzel at mail.xy-space.de
Thu Apr 25 23:40:58 EEST 2024


Hi Haihao,

this is an update finding myself in a happy mood 🙂

openSuSE ships both _libmfx_, and _libmfx-gen_.

It took me some time to realise that, but your last response lead me in the

right direction. I compiled libmfx-gen, and voila I can qsv transcode as 
desired.

Thank you for your continuous support,


Martin.



Am 24/04/2024 um 04:26 schrieb Xiang, Haihao:
> Hi Martin,
>
> /usr/lib64/libmfxhw64.so.1.35 is for legacy HWs, you should install the vpl
> runtime for your i9-13900. libmfx-gen.so is a link to the vpl runtime. For
> example, below is the runtime in my system:
>
> $ ls -l /usr/lib/x86_64-linux-gnu/libmfx-gen.so*
> lrwxrwxrwx 1 root root        17 Apr 24 10:09 /usr/lib/x86_64-linux-gnu/libmfx-gen.so -> libmfx-gen.so.1.2
> lrwxrwxrwx 1 root root        20 Apr 24 10:09 /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2 -> libmfx-gen.so.1.2.10
> -rw-r--r-- 1 root root 114212224 Apr 24 10:09 /usr/lib/x86_64-linux-gnu/libmfx-gen.so.1.2.10
>
> Please install the runtime component via apt/yum etc or install the library to
> /usr/lib64 when building the runtime from source code, then retest.
>
> BRs
> Haihao
>
>> Hi Haihao,
>>
>> when running
>>
>> "vpl-inspect", I get this, and only this
>> Implementation #0: mfxhw64
>>    Library path: /usr/lib64/libmfxhw64.so.1.35
>>    AccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI
>>    ApiVersion: 1.35
>>    Impl: MFX_IMPL_TYPE_HARDWARE
>>    VendorImplID: 0x0000
>>    ImplName: mfxhw64
>>    License:
>>    Version: 1.2
>>    Keywords: MSDK,x64
>>    VendorID: 0x8086
>>    mfxAccelerationModeDescription:
>>      Version: 1.0
>>      Mode: MFX_ACCEL_MODE_VIA_VAAPI
>>    mfxPoolPolicyDescription:
>>      Version: 1.0
>>    mfxDeviceDescription:
>>      MediaAdapterType: MFX_MEDIA_UNKNOWN
>>      DeviceID: a780/0
>>      Version: 1.1
>>    mfxDecoderDescription:
>>      Version: 0.0
>>    mfxEncoderDescription:
>>      Version: 0.0
>>    mfxVPPDescription:
>>      Version: 0.0
>>    NumExtParam: 0
>>    Warning - MFX_IMPLCAPS_SURFACE_TYPES not supported
>>
>> Total number of implementations found = 1
>> I do NOT have the library "libmfx-gen.so" in my system...
>>
>> Best w​​​​ishes, Martin.
>>
>>
>>
>> On Tuesday, 23 April, 2024 17:57 CEST, "Xiang, Haihao"
>> <haihao.xiang-at-intel.com at ffmpeg.org> wrote:
>>   
>> Hi Martin,
>>
>> I may reproduce your issue in my side if there is only msdk runtime
>> (libmfxhw.so) in my system. Could you run vpl-inspect to check whether vpl gpu
>> runtime (libmfx-gen.so) is available in your side ?
>>
>> $ vpl-inspect | grep libmfx-gen.so
>>
>> 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".

-- 
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: 29125 (20240425).
-------------- 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/20240425/3a5da366/attachment.bin>


More information about the ffmpeg-user mailing list