Last Updated on April 27, 2023
This is a weekly blog about the Raspberry Pi 4 (“RPI4”), the latest product in the popular Raspberry Pi range of computers.
This week I’m covering video streaming on the RPI4. Any desktop machine that cannot muster smooth video streaming is a non-starter from my perspective. Again I give my honest and unfettered experiences.
I spend most of my time streaming video using a web browser. Normally on my main desktop machine I gravitate towards Firefox. Sadly, there’s only a very old version of that web browser (60.9.0) available as a Raspbian package. Instead, the officially supported web browser on Raspbian is Chromium.
How does Chromium function for video streaming? I’ve tested a myriad of streaming services including BBC iPlayer, Twitch, and YouTube. Frankly, watching these services in Chromium doesn’t come remotely close to replicating the experience of my main desktop. In fact, video streaming with Chromium is barely enjoyable. While it’s a big improvement over earlier models of the RPI, there is some tearing on videos, and panning is not smooth enough for my liking. It’s more noticeable when the video is played full screen.
RPI4 should have sufficient grunt to be able stream video fluidly. For example, I’ve being comparing the RPI4 to a Chromebook sporting only a dual-core Celeron N3060 CPU with 2GB RAM running GalliumOS. It’s a very basic Chromebook that in many respects is slower than the RPI4. Compiling musikcube takes 17 minutes 13 seconds on the Chromebook using a single core, and 8 minutes 57 seconds with both cores. The RPI4 completes the test significantly faster (see Week 1 of my blog).
Video streaming with Chromium / GalliumOS / Chromebook is very good. Something that cannot be said for the RPI4.
If you’re technically minded, I’d be interested to know where the issue lies with the RPI4. There are lots of differences between running Chromium on the RPI4 and the Chromebook. First, GalliumOS is 64-bit, whereas Raspbian is 32-bit. Next, GalliumOS is using a more recent version of Chromium (77.0.3865.90, compared to RPI4’s Raspbian which is 74.0.3729.157). But it’s unlikely these differences are the cause of the disparity? Is the RPI4 suffering from a bottleneck? Is it an issue with RPI4’s ARM architecture? Are GalliumOS’s Chromium optimisations further developed?
I’m aware Raspbian’s developers claim there have spent considerable effort in optimising Chromium for the RPI4. But something is definitely awry. Coupled with the fact that streaming videos with Chromium on the RPI4 is very CPU intensive, there must be a better way. And fortunately there is.
Solutions for the RPI4
In fact, there’s multiple ways of getting excellent video streaming on the RPI4. I’ll outline two of them.
1) The first solution makes use of RPI4’s Broadcom VideoCore GPU. This involves playing videos in Chromium using omxplayerGUI. It’s a frontend to omxplayer which uses the GPU to decode the video. You can’t install omxplayerGUI in isolation; it’s an integral part of the kweb suite. There’s a few steps you need to take to get this working. I’ve put instructions here.
Don’t be put off by omxplayerGUI’s archaic interface. It uses Python’s Tkinter GUI so it harks back to a bygone era in GUI computing terms. But it acts as a good bridge between omxplayer and Chromium.
Even though omxplayerGUI needs to be installed as part of the kweb site, you can also use omxplayerGUI as a media player for locally stored video.
2. Use Streamlink. It’s a command-line utility that extracts streams from services and pipes them to a video player. Streamlink lets you avoid buggy and CPU heavy plugins but still be able to enjoy various streamed content. There’s a good range of streaming services supported such as BBC iPlayer, YouTube, Dailymotion, Twitch, NBC, NBC Sports, UStream, Livestream, ITV Player, tvplayer, and Bloomberg.
There’s a package in Raspbian’s repository. Don’t use it. It’s not the current version, and some services only work with latest version. I’ve put instructions on how to install streamlink here.
I’m disappointed with RPI4’s video streaming capabilities with Chromium. It’s such a central activity on the desktop, and the RPI4 should be able to handle this task with aplomb. But it doesn’t. Fortunately, using Chromium with omxplayerGUI or using streamlink with a media player (such as VLC, omxplayer, omxplayerGUI, mpv etc) are viable alternatives.
Read all my blog posts about the RPI4.
|Raspberry Pi 4 Blog|
|Week 36||Manage your personal collections on the RPI4|
|Week 35||Survey of terminal emulators|
|Week 34||Search the desktop with the latest version of Recoll|
|Week 33||Personal Information Managers on the RPI4|
|Week 32||Keep a diary with the RPI4|
|Week 31||Process complex mathematical functions, plot 2D and 3D graphs with calculators|
|Week 30||Internet radio on this tiny computer. A detailed survey of open source software|
|Week 29||Professionally manage your photo collection with digiKam|
|Week 28||Typeset beautifully with LyX|
|Week 27||Software that teaches young people how to learn basic computing skills and beyond|
|Week 26||Firefox revisited - Raspbian now offers a real alternative to Chromium|
|Week 25||Turn the Raspberry Pi 4 into a low power writing machine|
|Week 24||Keep the kids learning and having fun|
|Week 23||Lots of choices to view images|
|Week 22||Listening to podcasts on the RPI4|
|Week 21||File management on the RPI4|
|Week 20||Open Broadcaster Software (OBS Studio) on the RPI4|
|Week 19||Keep up-to-date with these news aggregators|
|Week 18||Web Browsers Again: Firefox|
|Week 17||Retro gaming on the RPI4|
|Week 16||Screen capturing with the RPI4|
|Week 15||Emulate the Amiga, ZX Spectrum, and the Atari ST on the RPI4|
|Week 14||Choose the right model of the RPI4 for your desktop needs|
|Week 13||Using the RPI4 as a screencaster|
|Week 12||Have fun reading comics on the RPI4 with YACReader, MComix, and more|
|Week 11||Turn the RPI4 into a complete home theater|
|Week 10||Watching locally stored video with VLC, OMXPlayer, and others|
|Week 9||PDF viewing on the RPI4|
|Week 8||Access the RPI4 remotely running GUI apps|
|Week 7||e-book tools are put under the microscope|
|Week 6||The office suite is the archetypal business software. LibreOffice is tested|
|Week 5||Managing your email box with the RPI4|
|Week 4||Web surfing on the RPI4 looking at Chromium, Vivaldi, Firefox, and Midori|
|Week 3||Video streaming with Chromium & omxplayerGUI as well as streamlink|
|Week 2||A survey of open source music players on the RPI4 including Tauon Music Box|
|Week 1||An introduction to the world of the RPI4 looking at musikcube and PiPackages|
This blog is written on the RPI4.