sunrat Posted August 25, 2022 Share Posted August 25, 2022 Last night I spent some time setting up Firefox 104, the latest, in ~/bin/ after reading it support video hardware acceleration using VA-API. After failure, some searching, and ultimate frustration I stumble across the fact it doesn't work with nvidia drivers, only nouveau for Nvidia cards. Actually found that in the last place I looked, Debian wiki, which is usually one of the first places I look. Can I have my hour back, please? There is work under way to make VA-API for nvidia drivers however - https://forums.developer.nvidia.com/t/nvidia-va-api-implementation-v0-0-1-release/199437 Also I've been using Firefox-ESR 91 for ages in Debian and still will be using it. I perceived no difference in function or performance with the newer version. Also I created a new profile for 104 and can't be bothered resetting the plethora of config tweaks I made in FF-ESR. On the upside, I got MPV to use VA-API in my old buster install on ThinkPad Yoga notebook which had been bugging me for ages with glitchy playback for some videos whereas VLC would play them fine. It's not set by default for MPV so a simple entry in MPV's conf file did it. I did go with a more complete conf suggestion from https://linuxreviews.org/Mpv#mpv.conf_for_typical_Intel_iGPU_systems_and_AMD_APUs but I think all that is needed is hwdec=vaapi Quote Link to comment Share on other sites More sharing options...
securitybreach Posted August 25, 2022 Share Posted August 25, 2022 Well there is a nvidia-vaapi-driver available on Archlinux: https://wiki.archlinux.org/title/Hardware_video_acceleration#NVIDIA Source: https://github.com/elFarto/nvidia-vaapi-driver/ Quote This is an VA-API implementation that uses NVDEC as a backend. This implementation is specifically designed to be used by Firefox for accelerated decode of web content, and may not operate correctly in other applications. This library requires that the nvidia_drm kernel module is configured with the parameter nvidia-drm.modeset=1 Quote Link to comment Share on other sites More sharing options...
securitybreach Posted August 26, 2022 Share Posted August 26, 2022 I am sure that it could be applied to Debian too with some tweaking. Quote Link to comment Share on other sites More sharing options...
sunrat Posted August 26, 2022 Author Share Posted August 26, 2022 4 hours ago, securitybreach said: Well there is a nvidia-vaapi-driver available on Archlinux: https://wiki.archlinux.org/title/Hardware_video_acceleration#NVIDIA Source: https://github.com/elFarto/nvidia-vaapi-driver/ It is available in Debian Testing and Unstable. I'm using Stable. I have patience, it's only higher CPU usage without it and Firefox videos don't overload my CPU anyway. Was mainly an exercise in curiosity. That Github link is actually the project referenced in the Nvidia dev forum post I linked in my post. Quote Link to comment Share on other sites More sharing options...
abarbarian Posted August 26, 2022 Share Posted August 26, 2022 16 hours ago, sunrat said: https://linuxreviews.org/Mpv#mpv.conf_for_typical_Intel_iGPU_systems_and_AMD_APUs Neat site with loads of useful information. I found out about mpv LUA scripts after reading there. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.