This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# recordCam.sh | |
# ------------ | |
# This script saves the live video from the Foscam IP camera to a full-quality mp4 file. | |
# The files are requested as 30 second mp4s, so that in case of an outage, | |
# the recording's potential of corrupted videos is smaller. | |
# This can be paired with a cron job or systemd service/timer to automatically repeat | |
# when finished. |