Advertisement
Guest User

Untitled

a guest
Nov 10th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. // получаем картинку с камер
  2. $url="rtsp://192.168.1.53:554/user=admin_password=SFCA5L64_channel=1_stream=1.sdp?real_stream";
  3. $jpg="/var/www/cached/snapshot.jpg";
  4. exec('ffmpeg -y -i "'.$url.'" -f image2 -vframes 1 '.$jpg.'');
  5.  
  6. $telegram_module->sendImageToAdmin($jpg);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement