Youtube slow on Linux mint

Questions about the project and the distribution - obviously no support questions here please
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Locked
ZestyMister
Level 1
Level 1
Posts: 2
Joined: Fri May 05, 2023 11:23 am

Youtube slow on Linux mint

Post by ZestyMister »

I installed "ubuntu-restricted-extras" which installed some 'absolutely proprietary' media codecs that helped run youtube videos properly. Previously, my UI felt jittery and slow when playing youtube videos, but now its very smooth. Props to linux mint team by not installing them by default and keeping the os libre :D

Edit: I tried playing youtube on firefox but the issue remains the same, chromium browsers work just fine.
Last edited by LockBot on Sun Nov 05, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
tenplus1
Level 1
Level 1
Posts: 34
Joined: Wed Nov 02, 2022 9:00 am

Re: Youtube slow on Linux mint

Post by tenplus1 »

Firefox has it's own codecs build-in from what I know, installing propriatary drivers won't affect this unless it the binary driver for nvidia's gfx cards.

What are your system specs ?
ZestyMister
Level 1
Level 1
Posts: 2
Joined: Fri May 05, 2023 11:23 am

Re: Youtube slow on Linux mint

Post by ZestyMister »

tenplus1 wrote: Sat May 06, 2023 5:16 am Firefox has it's own codecs build-in from what I know, installing propriatary drivers won't affect this unless it the binary driver for nvidia's gfx cards.

What are your system specs ?
I have a intel i5 9th gen cpu, radeon 520 gpu, 8gig ram. Pretty modern laptop in my opinion.
User avatar
Midnight True
Level 7
Level 7
Posts: 1549
Joined: Wed Jul 20, 2022 3:23 am
Location: Southern and Southwestern area of Mato
Contact:

Re: Youtube slow on Linux mint

Post by Midnight True »

ZestyMister wrote: Fri May 05, 2023 11:40 am Edit: I tried playing youtube on firefox but the issue remains the same, chromium browsers work just fine.
i recommend installing firefox via flatpak instead because org.freedesktop provides the necessary dependencies to make firefox run better such as follows

Code: Select all

TAP-plugins                       org.freedesktop.LinuxAudio.Plugins.TAP 1.0.1        22.08       system
SWH                               org.freedesktop.LinuxAudio.Plugins.swh 0.4.17       22.08       system
Freedesktop Platform              org.freedesktop.Platform               22.08.11     22.08       system
Mesa                              org.freedesktop.Platform.GL.default    21.3.9       21.08       system
Mesa                              org.freedesktop.Platform.GL.default    23.0.2       22.08       system
Mesa (Extra)                      org.freedesktop.Platform.GL.default    23.0.2       22.08-extra system
Intel                             org.freedesktop.Platform.VAAPI.Intel                21.08       system
Intel                             org.freedesktop.Platform.VAAPI.Intel                22.08       system
ffmpeg-full                       org.freedesktop.Platform.ffmpeg-full                22.08       system
openh264                          org.freedesktop.Platform.openh264      2.1.0        2.0         system
openh264                          org.freedesktop.Platform.openh264      2.1.0        2.2.0       system
If your interested in installing firefox as flatpak please try this in the terminal:

Code: Select all

flatpak install flathub org.mozilla.firefox
By the way, i found Betterfox user.js https://github.com/yokoffing/Betterfox and on top of that adding Fastfox https://github.com/yokoffing/Betterfox/ ... Fastfox.js made FF a lot faster, though losing some privacy but this can be mitigated by NoScript and CanvasBlocker Ad-on.

If you are interested in applying the youtube tweaks please add and test the following to your user.js

Code: Select all

// CPU and GPU utilization
user_pref("dom.media.webcodecs.enabled", true);
user_pref("media.hardware-video-decoding.force-enabled", false); // enforce | orig = true
user_pref("gfx.webrender.enabled", true); 
user_pref("gfx.webrender.software", false); // Webrender uses the CPU and not the GPU | orig = true
user_pref("gfx.webrender.software.opengl", false); // [LINUX] | orig = true
user_pref("gfx.webrender.compositor.force-enabled", false); // enforce | orig = true
user_pref("dom.webgpu.enabled", true); // orig = false 
user_pref("dom.webgpu.indirect-dispatch.enabled", true); // orig = false
user_pref("gfx.webrender.enable-gpu-markers", true); // orig = false
user_pref("layers.gpu-process.allow-software", true); // orig = false
user_pref("layers.gpu-process.force-enabled", false); // enforce | orig = true
user_pref("media.gpu-process-decoder", true);

// to utilize ffmpeg runtimes via flatpak
user_pref("media.ffmpeg.enabled", true); 
user_pref("media.ffmpeg.vaapi.enabled", true);
user_pref("media.rdd-ffmpeg.enabled", true);
user_pref("media.utility-ffmpeg.enabled", true);

// using h264 codec exclusively, YT videos will play avc1
user_pref("media.gmp.decoder.enabled", true);
user_pref("media.gmp-provider.enabled", true);
user_pref("media.gmp-gmpopenh264.enabled", true);
user_pref("media.gmp.trial-create.enabled", true);
user_pref("media.navigator.mediadatadecoder_h264_enabled", true);

// disable vp9 codes
user_pref("media.encoder.webm.enabled", false); // orig = true
user_pref("media.mediasource.webm.enabled", false);
user_pref("media.mediasource.webm.audio.enabled", false);
user_pref("media.webm.enabled", false);

Laurence Bosch
Level 1
Level 1
Posts: 2
Joined: Sun Dec 27, 2020 12:57 pm

Re: Youtube slow on Linux mint

Post by Laurence Bosch »

It's not a temporary issue. I faced it sometimes but a few mins later it's okay.
Locked

Return to “Non-technical Questions”