EvertJob

Untitled

Jan 26th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #!/bin/sh
  2. TelegramBotToken=
  3. Chatid=
  4. SnapFile="/home/pi/domoticz/scripts/dzVents/scripts/snapshot.jpg"
  5. ffmpeg -f MJPEG -y -i http://192.168.2.1:80/camsnapshot.jpg?idx=1 -r 1 -vframes 1 -q:v 1 snapshot.jpg
  6. # Send Telegram message with image
  7. curl -s -v -X POST "https://api.telegram.org/bot"$TelegramBotToken"/sendPhoto" -F chat_id=$Chatid -F photo="@$SnapFile" >> curl.log 2>&1
  8. # Remove Image
  9. /bin/rm $SnapFile
  10.  
  11.  
  12. ffmpeg -f MJPEG -y -i http://192.168.2.1:80/camsnapshot.jpg?idx=1 -r 1 -vframes 1 -q:v 1 snapshot.jpg
  13.  
  14.  
  15. 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
  16. ffmpeg -i rtsp://user:[email protected]/VideoString
Advertisement
Add Comment
Please, Sign In to add comment