If I can I play 4K videos on Youtube even though I have a 1080p display - simply the 4K stream allows more bandwidth so the image is better. On my PC with Windows 10 there are no issues doing this. With Linux - be it Manjaro or anything else - there is! I conducted a little test, lot’s of pictures below.
Gamers Nexus random video played at 4K
Firefox versions on Linux and Windows
Win10 frame drops (it stays 0 throughout the video):
Linux frame drops after 5 minutes (4% frame drops!):
Windows CPU and GPU utilizations: CPU around 40%, GPU around 29%
Linux CPU and GPU utilizations: CPU around 60%, GPU around 11%
And this is by far the best result on Linux. And it’s still shite. What’s the problem? All I can see is that CPU utilization is higher, and GPU is lower. But it still uses GPU.
The problem on Linux is that Firefox does not support Video Decoding over VDPAU (Nvidia), but supports VAAPI (Open Source) and at the moment only some Intel Chipsets.
OpenGL Rendering on the GPU is not the same as Video Decoding. Yes it improves Rendering, but not Video Acceleration.
If you need 4k, then it is a good idea to use a normal video player, which supports video acceleration.
Play the video with
mpv for example.
pamac install mpv youtube-dl
pamac build ff2mpv-native-messaging-host-git
And install this Add-On:
ff2mpv – Holen Sie sich diese Erweiterung für 🦊 Firefox (de)
Now you should be able to open a youtube link and click on the extension shortcut. It will open mpv with this youtube video with the highest possible resolution.
Here is how I did it on the terminal:
mpv --vo=gpu --hwdec=nvdec --hwdec-codecs=all --ytdl-format="bestvideo+bestaudio" "https://www.youtube.com/watch?v=r7hNmuizMB8"
You might want to add it to your mpv.conf:
That’s quite unfortunate but I will try out your method, thanksfor the help
Ah, i forgot to mention. Chromium based Browsers can use Video Decoding Acceleration, but it is blocked by default, because it is not really stable, but you can try it:
Google Chrome >=88
Brave >= 1.19
For Chromium and Firefox, see their corresponding Arch Wiki articles:
Chromium: Hardware video acceleration
Firefox: Hardware video acceleration
Note: This doesn’t work on Wayland. You can use VA-API on XWayland, using the --use-gl=egl command line flag (untested).
1. Enable the following web browser flags:
Warning: Disabling the rendering blacklist may cause unst…
(I use FF mainly, so did nit think of it.)