File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ The scripts are written in bash.
66
77I will outline their purpose here in short.
88
9- 1 . cleanup.sh - This will take remove any video files in X path after the given X days that are specified as a command line argument
9+ 1 . cleanup.sh - This will remove any video files in X path after the given X days that are specified as a command line argument
1010 2 . location-room.servie - this system service will execute the recording script and make sure it restarts in case of system reboot
1111 3 . record-location-room.sh - this is the main recording script. it calls ffmpeg and creates an apendable video file for the whole day
1212 4 . remux.sh - this script will convert the previous days recording into an mp4 file extension
1313 5 . watchdog.sh - this script serves a watchdog function that will check if the ffmpeg recording has stalled and restart it
1414
15- Another possible approach when recording is to use the build in segmentation feature of ffmpeg and have it record in smaller chunks with
15+ Another possible approach when recording is to use the built- in segmentation feature of ffmpeg and have it record in smaller chunks with
1616a non-appendable format. That way you can still recover from errors and use less space. The drawback is that you will have to concatenate
17- these small chunks at one point. The operation itself is not resource intensive but it means you need to have additional space available
18- for that short amount of time, write a script for it and schedule it with crontab.
17+ these small chunks at one point. The operation is not resource intensive but you need to have additional space available during that time,
18+ write a script for it and schedule it with crontab.
You can’t perform that action at this time.
0 commit comments