av_rec

av_rec is used to record live video from a v4l-device. Audio is captured from the sound card (/dev/dsp).

For the syntax of the output file and the codec options, please see the section about av_convert.

Examples

av_rec -o Avi::Rec.avi -V XVID -V MaxQuantisation=8 -V MinQuantisation=4 -V Bitrate=4000 -V Quality=4 -V KeyInterval=5 -A mp3 -x 640 -y 480 -i 2

This example records to the file Rec.avi whereas video is encoded by the XVID codec and audio by the mp3 codec.

The options -i 1 or i 2 define filters for noise reduction.

The provided script rec-divx contains all parameters needed for recording to an Avi file. It can simply be called by
rec-divx Rec.avi
Recording can be stopped at any time by pressing the space bar.