Vedio Recording using webcam in any Linux Distro
For vedio recording in linux, mplayer alone may not be enough, one additional package that comes with mplayer is needed. Its mencoder. To install mencoder in a debian based distro use the command
$sudo apt-get install mencoder
For other distros like redhat you can use relevant tools like YUM to install mencoder.
Then for vedio recording follow the commad below
Video Recording Without Sound
$ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -nosound -ovc lavc -o filename.avi
Video recording With Sound
$ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o filename.avi
To change/increase the rate of frames captured use the fps option of the above command.
Use it like
-fps 24
Rock with you webcam….





