Search code examples
ffmpegamd-gpu

ffmpeg h264_amf error: CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 10


Trying to transcode a video on a Azure VM with Windows 2019 and with a AMD Radeon instinct MI25 GPU gives this error:

CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 10

Command used: ffmpeg -i input.mp4 -c:v h264_amf output.mp4

(ffmpeg is compiled with h264_amf support)

I could not find any info on this specific error. Any ideas?


Solution

  • Unfortunately, the AMD Radeon instinct MI25 used in Azure's NVv4-Series does not appear to support any video acceleration (Datasheet PDF).

    I had some luck using the DirectX backend which uses the general-purpose GPU cores for decoding, but ended up switching to Azure's NVIDIA-based VMs which have both decoding and encoding support.