CYB3RBYTE wrote: ↑
Fri Jan 25, 2019 3:29 pm
I am new to the pi, and I am trying to figure out the best way to watch livestreams (of the monterey bay aquarium) on the pi.
– which uses the extremely potent and well-established tools of FFmpeg, mpv and youtube-dl – does an excellent job at playing live video streams. Unlike the Raspberry's Chromium web browser, it does not exhibit ANY
sluggishness or dropped frames whatsoever. In fact, you'll find that even with 1080p live streams, my build of mpv never utilizes more than 5 to 7% of the CPU – a tiny amount that's almost entirely devoted to audio processing. I also wrote a script that builds all the necessary software and sets everything up for you automatically
Visitors of the Monterey Bay Aquarium
website will see that all the embedded videos are delivered via YouTube (a wise choice, given that no self-hosted website could possibly match the reliability of YouTube's vast infrastructure).
I personally tested the video feeds you referenced and verified that my GPU-accelerated build of mpv plays them perfectly.
For example, with my mpv build you would simply run the following command line to watch live video from the "Monterey Bay Cam":
Of all the feeds they offer, I chose the above example because it's the only one that broadcasts 24/7. Unfortunately, the source video's encoding quality is quite low. They also might need to clean the sea spray off the lens more often! On top of that, their highest-resolution stream is 720p, not 1080p. The net result of all these external
factors is that the video looks a bit blurry and uninspiring. Just wanted to make clear that none of that has anything to do with YouTube or my customized software!
I'LL CLOSE WITH 3 KEY THINGS:
Screenshot mosaic of my mpv build streaming at various resolutions (though not shown here, it goes all the way up to 1080p):
My tutorial's extremely detailed Appendix 4
, which shows how to stream live video with my build of mpv.
The Grand Finale: My entire tutorial and script: GIANT UPDATE: Build FFmpeg and mpv – Automatically in 54 Minutes!