Small mini application for recording BOTH the video and audio stream of a Foscam IP camera.
- Copy
camera.service
to /etc/systemd/system/camera.service - Copy
record.sh
to a place you prefer. - Change values in both your copied files according to the specs listed below.
- Restart the service daemon by running
sudo systemctl daemon-reload
- Start the service by running
sudo systemctl start camera.service
- Enable the service at startup by running
sudo systemctl enable camera.service
WorkingDirectory
: Folder to save video files toExecStart
: Path to the shellscript
yourusername
: Username used for Foscam camera accessyourpassword
: Pasword used for Foscam camera accesscamip
: LAN IP address of the camera (Port should probably remain on 88)-segment_time
: 1800-stimeout
: TCP I/O timeout in microseconds (3000000 = 3 seconds)camera_%Y-%m-%d_%H-%M-%S.mkv
: Output filename using time and datestamps