Score:0

Raspberry 4b, 8GB of RAM, Youtube playback issue, video tearing, choppy, looks like 4 fps

in flag

I have this video playback issue with my Raspberry Pi 4b, 8GB of RAM. My operating system is UBUNTU Desktop, 64 bit version.

spinn2046@UbuntuDesktop:~$ uname -a
Linux UbuntuDesktop 5.11.0-1027-raspi #30-Ubuntu SMP PREEMPT Thu Jan 13 12:52:48 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

My processor type, hardware platform and operating system are all aarch64 architecture.

I'm just a Linux beginner, so this is all I know:

spinn2046@UbuntuDesktop:~$ uname -sr
Linux 5.11.0-1027-raspi
spinn2046@UbuntuDesktop:~$ uname -v
#30-Ubuntu SMP PREEMPT Thu Jan 13 12:52:48 UTC 2022

spinn2046@UbuntuDesktop:~$ uname -a
Linux UbuntuDesktop 5.11.0-1027-raspi #30-Ubuntu SMP PREEMPT Thu Jan 13 12:52:48 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

spinn2046@UbuntuDesktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.04
Release:    21.04
Codename:   hirsute

The YouTube videos are choppy no matter the quality.

1080p the same as 480p or even 240p, they are very choppy, to the point I cannot normally watch them. They look like 4 fps.

Movies played using VLC (1920x1080) are the same - look like 4 fps.

I've found "stats for nerds" on YouTube and there is 1768 dropped out of 3566 frames, while playing 240p video. All 4 CPU cores usage is above 80% during YouTube playback of 240p video.

Sound is smooth and normal quality.

Even mouse pointer is annoyingly slow - to the point I need to wait 4 it. I want to use my Raspberry Pi 4b to watch theatrical movies on my TV or big 21:9 computer display and at the moment it's impossible.

EDIT: Something's really improved after I've upgraded to Ubuntu 21.10 and had Firefox updated to the newest version available on snapd.

spinn2046@UbuntuDesktop:~$ uname -a
Linux UbuntuDesktop 5.13.0-1016-raspi #18-Ubuntu SMP PREEMPT Thu Jan 20 08:53:01 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
spinn2046@UbuntuDesktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.10
Release:    21.10
Codename:   impish

I've found "stats for nerds" on YouTube and there is 290 dropped out of 5150 frames, while playing 360p video.

us flag
Raspberry Pi is a not a very powerful computer, and 64 bit graphics drivers are still not in a good shape. Try playing those videos in Raspberry Pi OS (armhf - 32 bit version), it has all the optimized drivers for RPi.
Eagle_Mike avatar
mx flag
Amazing that you are comparing a $35 RPi to a Windows computer! Using the Pi OS, you can get good quality, but in the end, it is still an inexpensive single board computer and should never be considered on the same level as a full laptop/desktop computer.
michal roesler avatar
in flag
On one hand I am grateful 4 your comments guys, but on the other hand I need 2 repeat my question. How 2 make 1080p video playback smooth (both YouTube and VLC movies) on Raspberry Pi 4b, 8GB, using Ubuntu ARM OS and Firefox browser, because the obvious thing is Raspberry Pi 4b can do this. Why would anyone suggest that 4, 1,5Ghz cores and 8GB of RAM cannot render 1080p video?
michal roesler avatar
in flag
What the hell is Linux "compositor"?? And why different "Raspberry Pi 4b choppy / tearing video playback threads" in other places suggest, that turning compositor off, can improve video playback performance??
us flag
Please don't ask too many questions in a single post. If you want to ask a question about something like "how to enable hardware acceleration in arm64 in Raspberry Pi", then ask that specific question. Consider editing your question to remove the rant. Also see https://askubuntu.com/conduct
us flag
https://unix.stackexchange.com/q/359257/55205
michal roesler avatar
in flag
I want to be more precise. I just don't know how can I check those things 4 you guys. I thought these lines I've provided where enough. Tell me here how can I check these details and I'll gladly provide them. I've installed the OS some time ago and I simply don't remember whether it was Ubuntu Server or Ubuntu Desktop.
michal roesler avatar
in flag
Am I using unsupported kernel? I don't even know what it means. I thought Ubuntu is an entry level Linux distro. Never intended on running unsupported kernel, whatever that means. This Raspberry Pi machine is my first non-Windows computer and I've never intended on doing anything out of ordinary. I guess I have Ubuntu Desktop 64 bits, but I don't know how to check it.
guiverc avatar
cn flag
Ubuntu products include Ubuntu Core, Ubuntu Desktop, Ubuntu Server... but release details matter too. eg. Ubuntu 21.04 Desktop used the 5.11 kernel, however that release from 2021-April (releases are *year.month* in format, so 21.04 tells you it was the 2021-April release; add 2000 to year) is EOL as installed systems should have upgraded to the next release (Ubuntu 21.10) and be using the 5.13 kernel. Some specialist releases use a *year* format, eg. Ubuntu Core 20 is the 2020 release of that product (only a single release for those products per annum). The release matters; eg. 20.04 LTS
michal roesler avatar
in flag
I really thought the IT word is a decade or even 15 years in 64 bits. I didn't realize that 32 bits OSes even exist in 2021/22.
guiverc avatar
cn flag
Microsoft were still selling windows 10 in 32-bit until mid-2020; that's hardly a decade ago (inc. with new hardware via OEMs)
guiverc avatar
cn flag
Ubuntu 21.04 (along with all flavors) is *End-of-Life* and thus unsupported on this site (https://askubuntu.com/help/on-topic), and many other Ubuntu sites, unless your question is specific to moving to a supported release of Ubuntu. https://fridge.ubuntu.com/2022/01/21/ubuntu-21-04-hirsute-hippo-end-of-life-reached-on-january-20-2022/ https://help.ubuntu.com/community/EOLUpgrades
michal roesler avatar
in flag
I've edited the question, deleted unnecessary rant and poisonous comments, deleted side questions as well. When can I expect the question being reopened? Or do the only reasonable answer been already given in the first to comments, being install 32-bit OS ??
guiverc avatar
cn flag
I suggest you read my last comment; your question doesn't meet the on-topic requirements for this site (*my comment included the [on-topic](https://askubuntu.com/help/on-topic) link if you're not familiar with it*). Only *supported* releases of Ubuntu are on-topic here, not EOL, ESM or *development* releases (*which excludes me asking questions too as I'm on a development release*). *If it gets re-opened, it'll likely get closed for off-topic reasons instead*
Ubuntu User avatar
ph flag
I feel for you man. I understand how it is to come to a linux forum and not know what they're talking about... I'd try looking H264ify the extension for chromium. https://chrome.google.com/webstore/detail/h264ify/aleakchihdccplidncghkekgioiakgal?hl=en I find that it can help though it might be a different problem. However I agree you probably should use the Raspberry Pi OS since it is better suited for the pi. If not, try installing mpv with: sudo apt install mpv If that works better for playing local videos, great. But remember, the number of bits doesn't matter if the OS is slow!
Ubuntu User avatar
ph flag
Also take a look at https://askubuntu.com/questions/214421/how-to-install-the-mpeg-4-aac-decoder-and-the-h-264-decoder
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.