Thursday, February 21, 2013

Wednesday, February 06, 2013

Recording video from an IP-enabled camera on Linux using vlc

Here's a little Bourne shell script that I put together to monitor a Foscam FI8904W IP-enabled outdoor camera from a Linux host.  The script will watch the camera's alarm status, and record the video after each alarm.  wget is used to monitor the camera status, and cvlc (console version of vlc) is used to pull the video.  There seemed to be an assortment of solutions for Windows boxes, but I wasn't able to find anything simple that worked on Linux and didn't require a GUI.

     ipcam_monitor.sh