HandBrake
HandBrake copied to clipboard
Intel QSV encoder options not available with Arc A750 GPU
Problem Description
Intel QSV encoder options don't appear in Handbrake's GUI. I've listed some of the troubleshooting steps I've taken after reading through similar issues. My activity log shows a few "init failed" entries that are probably relevant, but I'm unsure how to resolve them.
Everything was working fine about 6 months ago, but it's been a while since I've needed to encode anything. I'm unsure if this was due to a particular update or something else changing on my system. My hardware hasn't changed at least.
What I've tried:
- Installing the latest Handbrake & intel plugin snapshots. ~~No difference.~~ actually does work, see comments.
- Installed HandBrake-gui from rpmfusion repos. Intel QSV encoders do appear in this case, but performance is abysmal. Less than a 6th of the speed (and GPU utilization) I was getting previously with this same hardware configuration.
- Steps 1, 4, and 5 of #4958 (the rest appear to no longer be relevant, as I'm already on kernel 6.6, etc). No difference.
- Adding /dev/dri to HandBrake permissions in Flatseal ("All devices" is enabled by default, don't think this matters anyway). No difference.
- Installed intel-media-driver and intel-gpu-tools packages (which probably don't affect the Flatpak?). No difference.
- Running the Handbrake Flatpak as root. It fails to launch due to XDR_RUNTIME_DIR not being set correctly.
- Removing secondary GPU (AMD 6900xt) from system entirely.
- Rebooting, of course.
- (edit) Installing older versions of Handbrake (1.7.1, 1.7.0, and 1.6.1). No difference.
- (edit) changing LIBVA_DRIVERS_PATH env variable to /usr/lib64/dri (instead of the default /app/extensions/lib/dri). This seems to resolve the init failed errors in the activity logs, but the Intel QSV options still don't appear.
Other details:
- Output of
sudo dmesg | grep HuC(same issue with firmware version 7.10.3). - flatpak info output. IntelMediaSDK shows as "for Handbrake 1.5.1", but that appears to be the only version available from Flathub.
- Output of
glxinfo | grep "OpenGL" - Resizable BAR is enabled in bios.
- GPU is installed in top slot on motherboard.
What I haven't tried (yet):
- ~~Installing an older version of Handbrake.~~
- Installing on a different distro.
Activity Log, Crash Log or any other details
OS: GNOME 45 (Flatpak runtime)
HandBrake 1.7.2 (2024010400)
Kernel: Linux 6.6.9-200.fc39.x86_64 (x86_64)
CPU: AMD Ryzen 9 5900X 12-Core Processor x 24
Install Dir: /app/bin
Config Dir: /home/atmur/.var/app/fr.handbrake.ghb/config/ghb
_______________________________
[22:56:05] Compile-time hardening features are enabled
Cannot load libnvidia-encode.so.1
[22:56:05] hb_display_init: attempting VA driver 'iHD'
libva info: VA-API version 1.13.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /app/extensions/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva error: /app/extensions/lib/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
[22:56:05] hb_display_init: attempting VA driver 'i965'
libva info: VA-API version 1.13.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /app/extensions/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[22:56:05] hb_display_init: attempting VA default driver
libva info: VA-API version 1.13.0
libva info: Trying to open /app/extensions/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva error: /app/extensions/lib/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /app/extensions/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[22:56:05] hb_qsv_make_adapters_list: MFXVideoCORE_QueryPlatform failed impl=0 err=-16
[22:56:05] hb_display_init: attempting VA driver 'iHD'
libva info: VA-API version 1.13.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /app/extensions/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva error: /app/extensions/lib/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
[22:56:05] hb_display_init: attempting VA driver 'i965'
libva info: VA-API version 1.13.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /app/extensions/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[22:56:05] hb_display_init: attempting VA default driver
libva info: VA-API version 1.13.0
libva info: Trying to open /app/extensions/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva error: /app/extensions/lib/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /app/extensions/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[22:56:05] qsv: is available on this system
[22:56:05] hb_init: starting libhb thread
[22:56:05] hb_init: starting libhb thread
[22:56:05] hb_init: starting libhb thread
What Operating System are you running?
Fedora 39
What version of HandBrake are you running?
1.7.2 (x86_64)
Where did you download HandBrake from?
Flathub
Try the QuickSync Plugin from https://handbrake.fr/downloads.php
Try the QuickSync Plugin from https://handbrake.fr/downloads.php
I had tried installing just the QuickSync plugin from the website (with Handbrake from Flathub) before to no avail, but installing both Handbrake and the plugin from your website did the trick! And performance is as expected unlike the version from the rpmfusion repo.
Not sure what's up with Flathub and the snapshot versions, but I'm all set if you want to close this issue. Thanks!
rpmfusion repo is 3rd party and not supported by us. It looks like they are still producing broken builds of HandBrake by customising the build in unsupported ways.
@jstebbins @robxnano anything look dodgy with the flathub distro?
The Intel media plugin on Flathub is quite old, from before the Arc GPUs were even released. It still works on older hardware at least, but it sounds like updating it would fix the problem.
@jstebbins there somewhere we need to poke an update on? I thought it was part of the main repo?
The Intel media plugin on Flathub is quite old, from before the Arc GPUs were even released. It still works on older hardware at least, but it sounds like updating it would fix the problem.
I have the A750 as well and tested today on Solus Linux using the flatpaks on the main site and had all the QSV options available. Might be something else related on Fedora, like a missing library or properly built libraries interfering.
@atmurr - What is the output of vainfo? It may help with figuring out what is going on.
While I was reinstalling the A750 and setting up Handbrake to test again, I found that Gnome Software is also introducing some weirdness that I didn't notice before. This doesn't change the original issue, but the snapshots actually do work as well if installed from a terminal using flatpak install <file.flatpak>. I think it's installing the Flathub version even when the local file is chosen.
So just to correct my previous comment, here is the current situation:
@codewizard1975 Anyway, here's vainfo (had to be more specific with vainfo --display drm --device /dev/dri/renderD128, cause it only displays my 6900xt with just vainfo).
Derp, https://github.com/flathub/fr.handbrake.ghb.Plugin.IntelMediaSDK/blob/master/fr.handbrake.ghb.Plugin.IntelMediaSDK.json hasn't been updated in a few years.
We'll need to get an update pushed to that to sort-out flathub.
3rd Party stores / software centres likely won't ever be fixed. Many have badly broken HB builds due to their packaging rules so we don't support them.
Installing current handbrake (v1.7.2) from flathub results in QSV being not available. Installing the handbrake Plugin from flathub results in QSV being available, but not all options (e.g. no hevc_qsv) - I guess the plugin is outdated. Installing handbrake (v1.7.2) from the github releases section as flatpak (incl. the plugin), results in QSV being available, incl hevc_qsv.