Created
January 23, 2020 00:45
-
-
Save bdwilson/f05b7530318ca9a70c152842091a8ba8 to your computer and use it in GitHub Desktop.
monit script to start ffmpeg only when Wyze Cam V2 is on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# connects to local ffserver starting from /etc/rc.local with: /usr/bin/ffserver & | |
# Wyze camera on 192.168.1.42 with rtsp server replace user and password with your user/password setup within Wyze app | |
# make sure you have screen package installed | |
/usr/bin/screen -dmS ffmpeg ffmpeg -rtsp_transport tcp -i 'rtsp://user:password@192.168.1.42/live' http://127.0.0.1:8090/camera.ffm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment