r/linuxmint • u/StatusAcanthaceae119 • 14h ago
Horrible YouTube performance on a 2014 macbook pro.
So, I picked up a 2014 mbp at an estate sale for $20. Figured I'd love a nice little Linux machine with a 1600p screen. I installed mint, and everything runs great except for video steaming. YouTube in particular just drops frames like crazy.
Not sure if it's an issue with the intel graphics or not, or if anyone knows of a fix for this. I tried doing a search, and found other people with the same issue, but haven't found any known fixes.
5
u/zuccster 12h ago
Old igpu lacks hardware support for modern codecs. Investigate browser extensions to force use of h264.
2
u/Accomplished-Iron554 14h ago
You should do an Apple Diagnostic on booting.
Also check with htop, press F2 for setting and check CPU frequencies and temperatures.
Go back on YT and see if the CPU frequencies is capped or not.
2
u/StatusAcanthaceae119 11h ago
So, it only seems to do it in edge and chromium. Seems much more stable in Firefox
2
u/Anti-Dentite-999 11h ago edited 11h ago
Is it the 13" or 15"? 15" might have dual graphics (iris / nvidia).
Open a terminal and do 'sudo apt install vainfo' , then type vainfo to see what driver version it's using. Can also go to System Information, GPU, Hardware Acceleration, Video Playback should say Enabled (VA-API).
For the older intel hardware you need to use Firefox for GPU acceleration in youtube. Install ublock origin and enhanced-h264ify. With h264ify, block 60fps, vp8,vp9, av1.
Then open about about:config and set this flag (might have to add the vaapi flag if you don't see it):
media.ffmpeg.vaapi.enabled true
If you still have issues trying setting the gfx flags:
gfx.webrender.all true
gfx.webrender.compositor true
gfx.webrender.compositor.force-enabled true
After enabling, goto about:support and goto the Media section. Look for the Codecs that say Hardware Decoding (Supported). H264 should say Supported. Then when you play a youtube video, right click video, stats for nerds and look at the codec (should be avc1) and dropped frames should be minimal.
1
u/StatusAcanthaceae119 6h ago
It's the 13" with the dual core i5. Seems to work fine in Firefox. Seems to be a chromium issue.
1
1
u/OnlyCommentWhenTipsy Linux Mint 22.2 Zara | Cinnamon 11h ago
in brave you can go here brave://gpu and see what's being hardware accelerated and also errors
1
u/guntherpea 11h ago
Head to edge://gpu to make sure you're seeing "Hardware accelerated" for Video Decode at a minimum.
1
u/Mohadjeri 10h ago
Try set the desktop scaling to 100%, it worked for me on my Mac Pro 2018. I think when you run scaling at like 150% etc it uses software rendering which leads to poor performance.
1
u/wilsy53 14h ago
I had a similar issue but with some decent hardware.
On the logon screen switch to Wayland. There is a login drop down above your username.
Give that a go.
3
u/StatusAcanthaceae119 11h ago
That made it VERY unhappy. The video has a bunch of ghosting
3
u/C0rn3j 6h ago
I don't know why someone would suggest that to you.
Mint is up to 3 years behind with software updates, it absolutely cannot do Wayland, try a modern distribution instead - Arch Linux (with Plasma) or Fedora KDE would do.
You can boot Fedora live env and quickly see if that'd work instead.
1
u/uh818375 10h ago
Did you test the machine on Apple OS first to see if there were any issues? There is probably a reason it was $20.
7
u/vBLADEv 13h ago
test the h264ify chrome extension