Skip to content

Instantly share code, notes, and snippets.

View gabr10's full-sized avatar

Gabrio Barbieri gabr10

  • Akamai Technologies
  • San Jose, Costa Rica
View GitHub Profile
@gabr10
gabr10 / recordCam.sh
Last active February 9, 2021 17:48 — forked from LucaTNT/recordCam.sh
Record Foscam IP camera live feed
#!/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.