Ubuntu – Video lag in Chrome and Firefox

20.04firefoxgoogle-chromevideo

I have just installed Ubuntu 20.04.1 and noticed that in Chrome or Firefox video is lagging. It doesn't matter if video is being played in YouTube, Twitter, Facebook, the result is same – lag. Any advice?

My laptop is Lenovo y580. The laptop specifications are:

  • CPU – i7
  • GPU – Nvidia 660
  • RAM – 6GB

P.S. I have already installed NVIDIA driver, but video is still lagging.

Best Answer

I had/have a very similar problem as what you describe. Or maybe not exactly the same, I'm not so sure from your description. In may case, the video would completely hang. It would maybe play 1 sec or so and then just hang. Moving the mouse sometimes plays a few more frames. It's somewhat strange.

I thought this is a problem with my graphics somehow (also because it noticed the problem since a Nvidia graphics driver update, and I had other graphics problems before, like this).

I thought this is an issue with Chrome but Firefox has the same problem. Also disabling hardware acceleration in Chrome or doing sth like that did not help.

But then I switched the audio (I attached some Bluetooth headset), and suddenly all the videos play fine again, without any hang.

Related Question