My setup for GPU is:
Get-CimInstance -ClassName Win32_VideoController |
>> Select-Object @{Name='Idx';Expression={$_.DeviceID -replace '.*(\d+)$','$1'}},
>> Name, PNPDeviceID, AdapterRAM
Idx Name PNPDeviceID AdapterRAM
--- ---- ----------- ----------
1 AMD Radeon(TM) Graphics PCI\VEN_1002&[...]536870912
2 NVIDIA RTX A2000 PCI\VEN_10DE&DEV_2531&SUBSYS_151D10DE&REV_A1\4&[...]
I want to use the NVIDIA, the AMD is a CPU/GPU combo. Up to now, the NVIDIA is not being used. I have switched on the option to use hardware encoding.
At start up I get warnings:
DEBU[2025-10-07 08:32:28] FFMpeg version 7.1.1 detected
DEBU[2025-10-07 08:32:28] FFProbe version 7.1.1 detected
DEBU[2025-10-07 08:32:28] [InitHWSupport] Codec {H264 Intel Quick Sync Video (QSV) h264_qsv} not supported. Error output:
[AVHWDeviceContext @ 0000021534b3f340] Failed to find d3d11va adapter by vendor id 0x8086
Device creation failed: -1313558101.
Failed to set value 'qsv=hw' for option 'init_hw_device': Unknown error occurred
rror parsing global options: Unknown error occurred
DEBU[2025-10-07 08:32:29] [InitHWSupport] Codec {H264 Intel Quick Sync Video (QSV) Compatibility profile h264_qsv} not supported. Error output:
[AVHWDeviceContext @ 000002326c603540] Failed to find d3d11va adapter by vendor id 0x8086
Device creation failed: -1313558101.
Failed to set value 'qsv=hw' for option 'init_hw_device': Unknown error occurred
rror parsing global options: Unknown error occurred
DEBU[2025-10-07 08:32:29] [InitHWSupport] Codec {H264 VAAPI h264_vaapi} not supported. Error output:
[AVHWDeviceContext @ 000001b30c522e80] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': I/O error
rror parsing global options: I/O error
DEBU[2025-10-07 08:32:29] [InitHWSupport] Codec {H264 V4L2M2M h264_v4l2m2m} not supported. Error output:
[vost#0:0 @ 000001dc63889700] Unknown encoder 'h264_v4l2m2m'
[vost#0:0 @ 000001dc63889700] Error selecting an encoder
Error opening output file -.
rror opening output files: Encoder not found
DEBU[2025-10-07 08:32:29] [InitHWSupport] Codec {VP9 Intel Quick Sync Video (QSV) vp9_qsv} not supported. Error output:
[AVHWDeviceContext @ 00000233ff68f340] Failed to find d3d11va adapter by vendor id 0x8086
Device creation failed: -1313558101.
Failed to set value 'qsv=hw' for option 'init_hw_device': Unknown error occurred
rror parsing global options: Unknown error occurred
DEBU[2025-10-07 08:32:29] [InitHWSupport] Codec {VP9 VAAPI vp9_vaapi} not supported. Error output:
[AVHWDeviceContext @ 00000212614e2e80] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': I/O error
rror parsing global options: I/O error
DEBU[2025-10-07 08:32:29] [InitHWSupport] Codec {H264 VideoToolbox h264_videotoolbox} not supported. Error output:
Unrecognized option 'realtime'.
rror splitting the argument list: Option not found
INFO[2025-10-07 08:32:29] [InitHWSupport] Supported HW codecs [2]:
H264 NVENC HQ profile - h264_nvenc
H264 NVENC - h264_nvenc
When I use a recent ffmpeg I get another error, so I am stuck with 7.1.1 as delivered by Stash.
Q: how can I tell this specific version of ffmpeg to use the NVIDIA card and see all available codecs?