Using gstreamers gst-launch, one could easily record the live stream from a webcam directly to an OGG-container using theora-encoding. By splitting the input from the v4l source (through “tee”) into two parallel sub-pipes, it is possible to show the recorded stream on the screen, while saving it to the OGG-file on the other processing path.
For more details see the following shell-script:
I’m going to try and use this (and gstreamer) with my RaspberryPi for my local youth projects “wildlife camera project” and am very excited to prototype the whole thing.
I suppose I’ve two questions,
1: Will this work with any IP camera?
2: What libraries will this need to get it functioning?
1) by ip cam you mean a camera which is able by itself to send a stream? if so, i think in general gstreamer should be able to record from that stream. For normal web-cams (usb) they are supported by if they are supported by v4l (video for linux).
2) v4l (video for linux), then it depends what you like to do with your stream (what format to save it etc.). I think you will need at least ffmpeg libraries.