Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- TelegramBotToken=
- Chatid=
- SnapFile="/home/pi/domoticz/scripts/dzVents/scripts/snapshot.jpg"
- ffmpeg -f MJPEG -y -i http://192.168.2.1:80/camsnapshot.jpg?idx=1 -r 1 -vframes 1 -q:v 1 snapshot.jpg
- # Send Telegram message with image
- curl -s -v -X POST "https://api.telegram.org/bot"$TelegramBotToken"/sendPhoto" -F chat_id=$Chatid -F photo="@$SnapFile" >> curl.log 2>&1
- # Remove Image
- /bin/rm $SnapFile
- ffmpeg -f MJPEG -y -i http://192.168.2.1:80/camsnapshot.jpg?idx=1 -r 1 -vframes 1 -q:v 1 snapshot.jpg
- ffmpeg -rtsp_transport tcp-f MJPEG -y -i rtsp://admin:[email protected]:554/h264Preview_01_sub -r 1 -vframes 1 -q:v 1 snapshot.jpg
- ffmpeg -i rtsp://user:[email protected]/VideoString
Advertisement
Add Comment
Please, Sign In to add comment