Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an IP camera foscam, I am trying to setup a software on my server that can continuously record video and audio. Which software should I use?

share|improve this question

Both VLC and avconv work splendidly.

Try this:

avconv -i 'http://IP:PORT/videostream.asf?user=x&pwd=x&resolution=32' -t 3600 -c:a libmp3lame out.avi

..to record one hour video. You can use this in a small shell script to rotate hourly video files over time. Under Ubuntu, make sure you install ubuntu-restricted-extras for the proper codecs.

share|improve this answer
    
I don't see avconv available for Fedora 20, but swap 'ffmpeg' and your answer is splendid. Thanks! – Greg Sheremeta May 1 '14 at 4:33
    
I get a 404 when trying access the videostream.asf url. Any idea what firmware versions support this? – Steve Robbins Aug 22 '15 at 5:42

I had good results with Foscams using Zoneminder. FYI, it uses quite a bit of resources.

share|improve this answer

Under Linux I have found GStreamer incredibly powerful in the work I have been recently doing. It has a variety of plug-ins that can be used to capture, manipulate, transcode, etc. It is included in the package management repositories of all major Linux distributions I have encountered, although it may come as a series of different packages (Good, Bad Ugly) due to licensing issues.

It is a little daunting to use at first, when using it from the command line it operates on a pipeline basis similar to the console itself. For example the following pipeline would capture video from a webcam and save it as a H264 encoded MKV file.

gst-launch v4l2src ! x264enc ! matroskamux ! filesink location=webcam.mkv

Now clearly the pipelines vary depending on your exact circumstance, but some general rules ring true - such as you always need at-least one source and sink and generally if you have encoded a video you will also want to mux it.

Edit: I should also note that it has a C SDK for those who wish to use it as part of a C/C++ application as I have.

share|improve this answer

My Foscam camera can record video/audio itself and send it to an FTP server, provided it has an SD card inserted. It uses the ASF format.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .