Skip to content

[Feature]: (Linux) Add support for ffmpeg vaapi codecs #82

Open

Description

@BlasterM5

Problem or limitation

CPU encoding is slow and inefficient. I have an overpowered AMD GPU that can do hardware encoding, but there is no interface that supports ffmpeg vaapi. They all support only nvenc. You could be the first.

Proposed solution

Add support for ffmpeg vaapi encoding, which is supported by Intel and AMD GPUs.

Workflow and media context

No response

Relevant platforms

Linux

Alternatives considered

No response

Additional context

No response

Checklist

  • I searched the existing issues and did not find a duplicate request.
  • I agree to follow this project's Code of Conduct.

Activity

  1. EmersonBiggons commented on Jul 20, 2026

    @EmersonBiggons

    And to add to this: Specifically full support of VAAPI:

    AV1 and H264/HEVC.

    I've seen a lot of VAAPI implementations that completely forget AV1 support. So I figured I'd add to this issue just in case.

  2. mrintrepide commented on Jul 22, 2026

    @mrintrepide

    I think Vulkan encoding should be prioritized since it's multi-OS and multi-device, notably for devices that aren't VA-API compatible.

  3. EmersonBiggons commented on Jul 22, 2026

    @EmersonBiggons

    I think Vulkan encoding should be prioritized since it's multi-OS and multi-device, notably for devices that aren't VA-API compatible.

    VAAPI is already multi-OS and supports intel and AMD, which covers a lot of hardware. However, I agree vulkan encode would be a good idea.

  4. 66HEX commented on Jul 27, 2026

    @66HEX
    Owner

    I’m definitely in favor of this feature, but unfortunately we’ll have to wait until a maintainer comes along whose hardware allows for manual testing of the solution before deploying it to production. I only have a MacBook Pro M4; I run all Linux-related tests on a virtual machine, and that won’t be sufficient for testing VAAPI. We need someone with Intel/AMD hardware.

  5. mmcnutt commented on Jul 27, 2026

    @mmcnutt

    the intel QSV extensions would be good too for those with Arc hardware

  6. berkeokur commented on Aug 22, 2026

    @berkeokur

    I can help test this on physical AMD hardware running Bazzite.

    System:

    • AMD Radeon RX 9070 XT
    • AMD Ryzen 5 5600X
    • 32 GB RAM
    • Bazzite: 43.20260420.0 (Silverblue)
    • Build: Stable (F43.20260420)
    • Kernel: 6.17.7-ba29.fc43.x86_64
    • FFmpeg: 7.1.3
    • VA-API device: /dev/dri/renderD128

    I tested VAAPI encoding at runtime using a five-second 1920×1080 60-fps generated source. All three relevant encoders completed successfully and produced valid output files:

    • h264_vaapi: H.264 High profile, approximately 7× real-time speed
    • hevc_vaapi: HEVC Main profile, 300 frames, approximately 13× real-time speed
    • av1_vaapi: AV1 Main profile, 300 frames, approximately 5.94× real-time speed

    These speeds used FFmpeg’s default quality settings so I’m including them only as runtime confirmation rather than a quality or performance comparison.

    If someone creates an implementation branch or pull request, I’m happy to build and test it on my machine and provide results, logs, or help investigate failures.

  7. added
    enhancement
    help wanted
    priority:p2
    effort:e5
    impact:d3
    status:planned
    on Aug 26, 2026
  8. added this to the 0.36.0 milestone on Aug 26, 2026
  9. added
    area:hardware
    platform:linux
    on Aug 26, 2026
  10. 66HEX commented on Nov 28, 2026

    @66HEX
    Owner

    Linux VA-API is ready to try in the 0.36.0 beta 2. @BlasterM5, I’d love to hear how one of your usual exports goes on your AMD GPU. @EmersonBiggons, AV1 made it in alongside H.264 and HEVC. Thanks for calling that out early.

    @berkeokur, thanks again for offering to test on Bazzite. Could you try the same five-second clip on your 9070 XT and see if all three codecs work in Frame the way they did in FFmpeg?

    @mmcnutt, do you happen to have an Arc card running Linux? I’m still looking for someone to try VA-API on Intel. QSV is a separate request.

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

    area:hardwareeffort:e5enhancementhelp wantedimpact:d3platform:linuxpriority:p2status:planned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions