Skip to content

Instantly share code, notes, and snippets.

@bdwilson
Created January 23, 2020 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdwilson/f05b7530318ca9a70c152842091a8ba8 to your computer and use it in GitHub Desktop.
Save bdwilson/f05b7530318ca9a70c152842091a8ba8 to your computer and use it in GitHub Desktop.
monit script to start ffmpeg only when Wyze Cam V2 is on
#!/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