Skip to content

AMF and VAAPI unavailable on Linux Flatpak #8050

Open

Description

@smdstudios

Problem Description

I was told that the latest snapshots have implemented hardware accelerated encoding for Radeon cards on Linux.

However, after installing the latest development snapshot (20260816074532-d43e68f23-master), I found no option for GPU acceleration. I am on Fedora 44 with a 9070 XT.

Image

According to my activity log, the VAAPI connection cannot be initialised.

Activity Log, Crash Log or any other details

HandBrake 20260816074532-d43e68f23-master (2026081701)
OS: GNOME 49 (Flatpak runtime)
Kernel: Linux 7.1.8-200.fc44.x86_64 (x86_64)
CPU: AMD Ryzen 7 5700X 8-Core Processor x 16
Install Dir: /app/bin
Config Dir:  /home/smdstudios/.var/app/fr.handbrake.ghb/config/ghb
_______________________________

[01:40:00] Compile-time hardening features are enabled
Cannot load libnvidia-encode.so.1
[01:40:00] vcn: not available on this system
[01:40:00] qsv: not available on this system
[VAAPI @ 0x5570f21aac00] Failed to initialise VAAPI connection: -1 (unknown libva error).
[01:40:00] Failed to create a VAAPI device. Error code: Input/output error (nil)

[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_vaapi_available: device ctx null
[01:40:00] hb_init: starting libhb thread
[01:40:00] hb_init: starting libhb thread
[01:40:00] hb_init: starting libhb thread
WARNING: radv is not a conformant Vulkan implementation, testing use only.
WARNING: radv is not a conformant Vulkan implementation, testing use only.

What Operating System are you running?

Fedora 44

What version of HandBrake are you running?

20260816074532-d43e68f23-master

Where did you download HandBrake from?

github

Activity

  1. Toorero commented on Aug 19, 2026

    @Toorero

    I think it's a Flatpak sandbox issue, as I can't reproduce the issue on my non-sandboxed build. The issue however does exist for me on the Flatpak snapshot (20260816-git-d43e68f23).

    I have org.freedesktop.Platform.GL.default 25.08-extra and 24.08extra installed. org.freedesktop.Platform.VaInfo works successfully. I highly suspect the custom environment variables set in the Flatpak could cause issues: LIBVA_DRIVERS_PATH=/app/extensions/lib/dri, LD_LIBRARY_PATH=/app/extensions/lib.

    As a "workaround" I'd suggest building a bare-metal version for your system. You can start here. Ensure to enable VA-API support in the configure-stage.

  2. bradleysepos commented on Aug 19, 2026

    @bradleysepos
    Contributor

    You might try flatpak override --user --device=dri fr.handbrake.ghb.

  3. smdstudios commented on Aug 20, 2026

    @smdstudios
    Author

    You might try flatpak override --user --device=dri fr.handbrake.ghb.

    No dice. I'll try building it from source.

  4. smdstudios commented on Aug 20, 2026

    @smdstudios
    Author

    I think it's a Flatpak sandbox issue, as I can't reproduce the issue on my non-sandboxed build. The issue however does exist for me on the Flatpak snapshot (20260816-git-d43e68f23).

    I have org.freedesktop.Platform.GL.default 25.08-extra and 24.08extra installed. org.freedesktop.Platform.VaInfo works successfully. I highly suspect the custom environment variables set in the Flatpak could cause issues: LIBVA_DRIVERS_PATH=/app/extensions/lib/dri, LD_LIBRARY_PATH=/app/extensions/lib.

    As a "workaround" I'd suggest building a bare-metal version for your system. You can start here. Ensure to enable VA-API support in the configure-stage.

    I built from source with the --enable-vaapi and --enable-vce parameters. I got this build error:

      : ERROR: vaapi requested but not found
      : 
      : If you think configure made a mistake, make sure you are using the latest
      : version from Git.  If the latest version fails, report the problem to the
      : [email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
      : Include the log file "ffbuild/config.log" produced by configure as this will help
      : solve the problem.
      : gmake: *** [../contrib/ffmpeg/module.rules:2: contrib/ffmpeg/.stamp.ffmpeg.configure] Error 1
      : gmake: *** Waiting for unfinished jobs....
      : [ 98%] Built target common
      : [100%] Linking CXX static library libx265.a
      : [100%] Built target x265-static
      : gmake[1]: Leaving directory '/home/smdstudios/HandBrake/build/contrib/x265/x265_4.3/8bit'
      : touch contrib/x265/.stamp.x265_8.build
    
  5. smdstudios commented on Aug 20, 2026

    @smdstudios
    Author

    I tried building again after installing libva-devel and it works!!! I suggest this package be listed on the building page as a dependency for Radeon.

  6. bradleysepos commented on Aug 20, 2026

    @bradleysepos
    Contributor

    @smdstudios Funny you mention that, I was working on it just this week: HandBrake/HandBrake-docs#267. Glad you were able to figure it out!

    Anyway, we'll need to investigate the Flatpak issue.

  7. changed the title [-]No GPU acceleration available on snapshot (Radeon)[/-] [+]VAAPI unavailable on Linux Flatpak[/+] on Aug 20, 2026
  8. changed the title [-]VAAPI unavailable on Linux Flatpak[/-] [+]AMF and VAAPI unavailable on Linux Flatpak[/+] on Aug 20, 2026
  9. Toorero commented on Aug 22, 2026

    @Toorero

    You might try flatpak override --user --device=dri fr.handbrake.ghb.

    device=dri is required by default. Even setting device=all didn't help. I suspect the main problem lies in outdated or incomplete Mesa drivers that are bundled with HandBrake and forced by overriding LIBVA_DRIVERS_PATH.

  10. Nekkowe commented on Sep 9, 2026

    @Nekkowe
  11. github-actions commented on Oct 10, 2026

    @github-actions

    Hello,

    Warning

    This issue appears to be inactive and will be automatically closed within 5 days if no further activity is detected.
    If you wish this issue to remain open, please request the stale label to be removed and an appropriate label assigned.

    Tip

    If this ticket is awaiting feedback, please make sure the requested information is provided. This may be a sample file, log files etc.

    Thank You,
    The HandBrake Bot

  12. github-actions commented on Nov 9, 2026

    @github-actions

    Hello,

    Warning

    This issue appears to be inactive and will be automatically closed within 5 days if no further activity is detected.
    If you wish this issue to remain open, please request the stale label to be removed and an appropriate label assigned.

    Tip

    If this ticket is awaiting feedback, please make sure the requested information is provided. This may be a sample file, log files etc.

    Thank You,
    The HandBrake Bot

  13. github-actions commented on Nov 15, 2026

    @github-actions

    Hello,

    Note

    This ticket has now been closed due to inactivity.
    If you believe this is in error, please leave a comment and we can re-open it.

    Thank You,
    The HandBrake Bot

  14. Nekkowe commented on Nov 16, 2026

    @Nekkowe

    Here's a comment, please re-open it.

    As mentioned above, org.freedesktop.Platform.amd.amf got merged a while back, so AMF support should be possible for the flatpak now.

  15. reopened this on Nov 16, 2026
  16. sr55 commented on Nov 16, 2026

    @sr55
    Contributor

    At present, we don't have any developers for the linux platform. If this requires any code changes on our end, Pull Request would be very welcome.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions