Last time we use RTSP which required a special service of it’s own. Otherwise, skip ahead to “Gather Camera Details”. To better understand why we need them and how to test them to make sure they are working properly, read on. Super short version: sudo apt install nginx ffmpeg -y And you don’t have to hand compile either! The two programs you will need are a file server ( nginx, apache, python -m rver, etc…) to host the DASH/HLS content and ffmpeg. But I personally use RSTP for my own home setup still. As I already went over how to set that up, I won’t repeat it here and only go over DASH. Using my Raspberry Pis DASH/HLS seem to have a 10~20 second delay, compared to about 1 second for RTSP. The real advantage with RTSP is the fact it really is nearly “real time” compared to DASH/HLS. Whereas RTSP requires additional software, such as VLC or a security system to view it. This makes it super easy to set up an all-in-one device that can host it’s own webpage to view a video at. So now the difference really comes down to how DASH/HLS are HTTP based protocols that can easily be supported in browser. Meaning if you are trying to share these video streams with the public or view on an Apple device, you will get the most compatibility with HLS. So if DASH and RTSP can handle everything, why even bother with HLS? Long story short, Apple, who developed HLS, is a bully, so they don’t support the open MPEG-DASH on their devices. The big gotcha is what type of videos the viewer supports (and in RTSP’s case the middleman server as well.) DASH and RTSP are fully codec agnostic, meaning they are capable of wrapping around any type of video codec. So to clear this up first of all, these are “containers” that wrap around the actual video, which is a particular “codec” (such as h264). This article will walk you through how to either copy or convert video from your webcam or pi camera, set it up as a systemd service, and finally view it on a webpage or access it remotely. This is an improvement on my previous article, Raspberry Pi Hardware Accelerated RTSP Camera, now with the option of using more modern technology, MPEG-DASH and HLS!įirst off, if you don’t care about the technicalities and just want a script to do everything for you, here you go! If you’re still interested in how it all works or want to tweak the settings, read on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |