This video plays fine in firefox, but is not playing in brave or vivaldi. Is that a misconfiguration on my side or is this a real problem in both browsers?
And other than that I realize a huge CPU load with vivaldi and brave when playing youtube videos fullscreen.
Example:
approx. CPU load over all browser processes:
brave 35 %
vivaldi 25 %
firefox 10 %
Is that correct? Does somebody see the same differences? Watching videos is one of my main use cases in a browser. This would be quite a push back for me using brave or vivaldi.
And the performance differences are even more severe then I thought.
When watching video #2 with youtube I can select max quality “2160p60 (4K)”. If I do so brave and vivaldi have a CPU load of 230-280 % while firefox stays below 50 %. Thats significant and a total surprise for me.
You have to figure out hardware video acceleration for these browsers. That’s the reason why the first isn’t playing (no browser software decoding on Linux) or that they require a lot of CPU (software decoding).
it does not work for me. Neither in ~/.config/chromium-flags.conf
nor ~/.config/brave-flags.conf
nor directly on the commandline brave --enable-features=DefaultANGLEVulkan,VaapiIgnoreDriverChecks,Vulkan,VulkanFromANGLE
video #1 does not play and video #2 consumes 250 % CPU
EDIT:
It works. I had manually tweaked some brave flags which I had to put back to default before it works. I have it now in ~/.config/brave-flags.conf.
video #1 is playing and video #2 has now less than 50 % CPU, similar to firefox.
Thanks a lot, @Bink . I will mark your post as the solution.
I have learned one more thing during this whole investigation that I want to share:
You can check the hardware acceleration status in vivaldi and brave by using the internal browser url: vivaldi://gpu or brave://gpu. This displays the GPU internals. At the bottom of the page you see “Video Acceleration Information”.
Didn’t know Chromium-based browsers came with an “acceleration disabled” default (as opposed to Firefox). Making my Chromium work at least with H.264 on my i915 graphics, I had to put this into my ~/.config/chromium-flags.conf: