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.
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.
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.
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: