Youtube using a lot of cpu

While playing youtube videos cpu usage goes above 70 percent…why is that happening?

These are the brave stats:

Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Disabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Disabled
OpenGL: Enabled
Rasterization: Hardware accelerated
Raw Draw: Disabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
WebGPU: Disabled

Vids are also dropping frames :slight_smile:
any help??

2 Likes

Is it only youtube or does it affect other video playing as well? For example playing video localy from the disk.
Is it the same when you decrease the video quality?
Some time ago I had a problem with audio that caused excess cpu usage. Do you have pulseaudio or pipewire installed?

I have pipewire
Sound API: ALSA v: k6.1.15-1-lts running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.66 running: yes

and no its with youtube only…

You could also try the free tube client.

But Google likes to monitor, mother Google is a hungry beast.

3 Likes

Computer specs?

i will try for sure,thanks

If not done already, disable ‘Ambient mode’

They’ve recently added this “feature”, which puts on a blur effect behind video player, resulting in high CPU usage.

image

3 Likes

WHAT?! :exploding_head:
Are you sure it is that…? I don’t see it visually and can hardly believe it’s what they mean, it would be the most idiotic thing ever.

1 Like

I’m not sure if OP’s issue is caused by this “feature”.

I did struggle with high CPU usage on one core and eventually found this to be the culprit.

You need to be in dark mode on a web browser for the option to show up in player settings. It’ll add a subtle background around the player, which is based on the current video frame. CPU taxing indeed.

On the left, ambient mode enabled, on the right, disabled. You can see slight purple tint to the area below player on left, while on the right its plain black.

Simply a waste of CPU cycles imho.

They even added the feature in new versions of YouTube app on Android. Sucks because blurring takes CPU, and that drains battery a bit quicker than normal.

PS. I absolutely don’t know if they’re actually blurring the frame. I didn’t and cannot check Google’s source code. Regardless whatever processing they’re doing, its intensive.

2 Likes

Weird, i don’t have it at all like you’ve shown…Probably gets cut off by ublock origin or something :man_shrugging:

But yeah, it’s mega-idiotic idea because people will not associate it with performance-killing feature, and it’s enabled by default…fantastic decision :clown_face: tube :rofl:

honka_animated-128px-35

1 Like

Well thats good. Better not get crapware by default :rofl:

I do have ublock but I still get that “feature”. Simply keeping it disabled :upside_down_face:

Indeed! :rofl:

1 Like

It is the current year! Who still watches youtoob videos on youtub-dot-commercial? That player runs on soy lattes and JavaScript (but I repeat myself).

I use yt-dlp for all my content consooming needs. Download the video, watch it using your player of choice, and then delete it, or keep it… The version in the repos is the latest release, but Goolag is always breaking it, so it’s best to just clone the master branch from github and use that. It’s just Python anyway…

1 Like

I’ve never seen this effect. I use a few addons to remove unwanted youtube stuff so these things might be being cleared out.

I’m nearly always downloading and playing, or streaming off via MPV. On my phone, I got NewPipe to download and VLC to play.

Yet, when I have to marathon a fifty lecture videos on YouTube before an exam, I leave the hassle1 of yt-dlp or MPV, and focus straight on the video.

For the creators I like (mostly linux related folks), I’ll always go to their channel and drop a like on their videos. Also play the video start to end. I don’t like the system, but atleast I can help the creators a bit. So again, I can’t totally get rid of the web UI.


1. 'hassle' is very much subjective

Edit : I end the YT hating conversation right here. Quite off topic by now, considering the OP’s help post.

Its only on dark mode as noted.

The extensions could be doing something to clear out crap.

Yeah, helping them be dependent on Goolag, instead of getting a real job. That’s helping like giving an alcoholic bum money for booze.

Not at all, I just hit my “consoom content” key binding, which for me is Meta+v, and SMPlayer opens with the video playing, the URL of which was stored in the clipboard. Scripts take care of everything.

2 Likes

Got any money?!

1 Like

You were there last night too?!?!

4 Likes

A better caption for that same image:

SMASH that like button and be sure to subscribe for more content! And don’t forget to ring the bell. :robot:

honka_memes-128px-50

I.d rather hit the balls of person saying that phrase :rofl:

1 Like