"H.264" codec defaults to AMD version (erroring on Intel)

  • I'm trying to render a video with the simple "H.264" preset. Whenever I try to begin the render, I get the following error:

    "Render Job 1 failed as the current clip could not be processed. Cannot find appropriate codec for encoding the video frame."


    Looking in the logs, I found this:

    [21:42:03] Loading: encoders/h264_amf.json
    [21:42:03] FFmpeg: DLL amfrt64.dll failed to open


    I have an Intel CPU, but 'encoders/h264_amf' is for AMD processors. I believe this is because Voukoder is just calling "h264" and not specifying the type.

    If you search through FFmpeg's encoders:

    Code
    ffmpeg.exe -encoders | find "264"
    <cut>
     V..... libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
     V..... libx264rgb           libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
     V..... h264_amf             AMD AMF H.264 Encoder (codec h264)
     V..... h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
     V..... h264_qsv             H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
     V..... nvenc                NVIDIA NVENC H.264 encoder (codec h264)
     V..... nvenc_h264           NVIDIA NVENC H.264 encoder (codec h264)

    You'll see that h264_amf is the top result in alphabetical order. As stated previously, just calling "h264" means FFmpeg just defaults to the first option it finds.


    This is probably an easy fix. Have an "H.264 AMD" option and an "H.264 Intel" option.


    My preferred fix would be to add support for the libx264 and libx264rgb options, as this encoder is generally regarded as the better option for h264 encoders. It's open source and already a part of FFmpeg. PLEASE ADD IT!

  • Vouk 6. November 2023 um 09:01

    Hat das Thema freigeschaltet.