I’m using Fedora 42, but I don’t like Flathub packages in general. I prefer to avoid them when possible.
After spending 1 hour debugging why VLC was outputting videos with bad quality (compared to Dragon Player, Firefox, etc), I finally found out that running VLC installed with dnf install vlc resulted in it not finding any drivers for my AMD Phoenix1 card. Opening my MP4 video resulted in lots of messages:
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[00007fd058ea06f0] croppadd filter error: Unknown input chroma VAOP
...
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[00007fd0588f5f90] chain filter error: Too high level of recursion (3)
[00007fd0588bd830] main filter error: Failed to create video converter
...
[00007fd068045c60] main video output error: Failed to compensate for the format changes, removing all filters
And the image was blocky.
After running flatpak run flathub org.videolan.VLC and flatpak run org.videolan.VLC, I got these messages:
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[00007fe664c15f30] avcodec decoder: Using Mesa Gallium driver 25.2.4 for AMD Radeon 780M Graphics (radeonsi, phoenix, LLVM 19.1.7, DRM 3.64, 6.16.11-200.fc42.x86_64) for hardware decoding
And the video quality was much better (and it was correctly maximized by default, which didn’t happen before).
The Flatpak version is less ergonomic to me: besides the long command (flatpak run... instead of just vlc), the main usability issue is that I cannot simply give a file in the command line: due to sandboxing, I am forced to open VLC and then open the file dialog to choose the file.
So, considering these, I wonder: is there a way to get hardware acceleration for my AMD Phoenix1 with the RPM package? Maybe installing some optional dependency?