the script will check to see if ffmpeg is running, and if not will start it Now let’s set the script to execute every minute using cron.
if you know better permissions to use feel free because these are probably wrong even though they work
Let’s make sure these folders & files have permissions that will work.
Open terminal and update your apt library In my examples I use 192.168.1.16 as the server ip (I also mistakenly use 192.168.10.16 sometimes but just assume they’re the same) Set a static ip for your server (in your router settings). find/write down the RTSP url, should looks something like: setup:.
You need to install the RTSP firmware, guide can be found here: Wyze Cam RTSP – Wyze.Camera streaming RTSP (in my case wyzecams).Linux server (in my case an old laptop running Ubuntu).To make this work I relied heavily on this guide: Setup Nginx on Ubuntu to Stream Live HLS Video - Requirements:
There is probably a way to convert straight from RTSP to HLS using ffmpeg, but I couldn’t figure out how to do it correctly. Then we make a webpage with nginx and use vjs(videojs) player to play the HLS files. The basic idea is to convert the RTSP stream from the ip camera to RTMP using ffmpeg, and then RTMP into HLS using nginx with the RTMP module. Also if anyone knows how to optimize the stream, input would be appreciated. I am a beginner at all of this stuff so don’t expect it to work and follow this guide at your own risk. There is no security other than it only being on your LAN so do this at your own risk. In this setup you will only be able to view the website/camera feeds if you are on the same network/wifi as your cameras. This is one way you can stream your RTSP camera feed to a local website so that you can view the stream from any device through a web browser. They can be found here:Īlso when creating the html directories described below they should be cam1, cam2, etc. UPDATE: sorry I must have accidentally deleted the google drive files.