Security Camera 1 Min Loop
Page 1 of 1
Security Camera 1 Min Loop
- Code:
#!/bin/bash
name="`date +%Y-%m-%d_%H.%M`"
# Where the videos will be saved
BASEpath='/home/jay/scripts/Stream_Recorder'
RECpath=$BASEpath'/video'
# Save the streams using ffmpeg at 30 fps, stopping the capture after 900 seconds (15 minutes). Add more lines if you have more than 2 cameras
ffmpeg -n -i rtsp://192.168.0.34:554 -r 30 -vcodec copy -an -t 60 $RECpath/cam01/$name.mp4
name="`date +%Y-%m-%d_%H.%M`"
-n = no dont overwrite write when this happens, and -y = yes.
Box Link (Updated)
https://app.box.com/s/w9na99lc7quvagspx4ep7onldn1qh6hj
Similar topics
» Parrot Security OS
» Bash Loop Quit Ctrl C Escape
» Testing For Security Issues
» Security Test Pass!
» IT & Cable Security Clearence
» Bash Loop Quit Ctrl C Escape
» Testing For Security Issues
» Security Test Pass!
» IT & Cable Security Clearence
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum