Skip to content

Add VAAPI Encoder Support #39

Open

Description

@e-dong

Useful for those who encode on VAAPI rather than AMD AMF

Reference: https://trac.ffmpeg.org/wiki/Hardware/VAAPI

Activity

  1. Proryanator commented on Jun 13, 2024

    @Proryanator
    Owner

    I don't have access to an AMD GPU anymore to be able to fully test this feature out, however I could always code it in with a note about it being experimental.

  2. geerlingguy commented on Dec 11, 2025

    @geerlingguy

    Subscribing — today I was working on testing a couple AMD GPUs, and had to resort to running ffmpeg directly since the amf encoder is only supported with the 'Pro' driver (which I can't install on my particular setup).

    Here's the ffmpeg command I ran for the 720p60 encode:

    ffmpeg -init_hw_device vaapi=foo:/dev/dri/renderD129 -i 720-60.y4m -filter_hw_device foo -vf 'format=nv12,hwupload' -c:v h264_vaapi -pix_fmt yuv420p -movflags +faststart 720-60.mp4
    

    On my ffmpeg install I see the encoders:

     V....D h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
     V..... h264_v4l2m2m         V4L2 mem2mem H.264 encoder wrapper (codec h264)
     V....D h264_vaapi           H.264/AVC (VAAPI) (codec h264)
     V....D h264_vulkan          H.264/AVC (Vulkan) (codec h264)
    

    This is on a Raspberry Pi; I don't expect every encoder under the sun to be supported of course, but I think vaapi might be more widespread than h264_amf/hevc_amf at least.

    (I'd be willing to test, too, if it lines up with some of my testing cycles.)

  3. mardaravicius commented on Aug 2, 2026

    @mardaravicius

    attempt to add support for it:
    #82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions