MUTE_AUDIO=0 # Discard audio from the camera USE_TCP=1 # Use TCP transport for RTSP, otherwise UDP YOUTUBE_URL="rtmp://a./live2" # Base YouTube RTMP URL RTSP_SOURCE="rtsp://$CAMERA_USERNAME: $CAMERA_IP_ADDRESS:554" Raspberry Pi 4įirst I installed ffmpeg, the standard tool in opensource video processing, and created a stream.sh file on the Pi, containing the following commands: #! /bin/bash It is normal for live streams on YouTube and most other platforms to have a lag of ~30 seconds, and with this setup I was able to achieve a live stream with ~15 seconds delay, while the load on the Raspberry Pi was only about 0.3. Next, I wanted to see if the Raspberry Pi 4 ( DE Amazon, US Amazon - affiliate links), which I had initially planned for another project, was strong enough to take the camera's RTSP stream and transfer it live (almost realtime) as a 1:1 copy to YouTube. It has a 4x optical zoom, IR for night mode, works on both 2.4 and 5 GHz, and can even be connected and powered over PoE instead of the provided power adapter. This model is able to stream a 5MP video over WiFi, supports RTSP and costs only ~100 € ( DE Amazon, US Amazon - affiliate links - As an Amazon Associate I earn from qualifying purchases.). I found online comments about Reolink cameras being a good choice for quite a low price, so I ordered a Reolink RLC-511W IP camera to test. Recently, I thought about that idea again, and realized that a lot has changed since the first time I had it. For a long time I wanted to set up a video stream of my hometown, but it was prohibitively expensive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |