Guest User

Untitled

a guest
Jun 15th, 2017
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. set -u
  4.  
  5. URI='rtsp://192.168.1.10/user=admin&password=tlJwpbo6&channel=1&stream=0.sdp'
  6.  
  7. CNT=0
  8.  
  9. mkdir out
  10. cd out
  11.  
  12. while true; do
  13. CNT=$((CNT+1))
  14. FOLDER=$(printf %03d $CNT)
  15.  
  16. mkdir $FOLDER
  17. (cd $FOLDER && openRTSP -K -t -c -v -D 1 -4 -P 300 -B 10000000 -b 10000000 "$URI")
  18.  
  19. echo "Recording stopped"
  20. sleep 60
  21. done
RAW Paste Data