Laptop or desktop webcam

View current stream from webcam:

sudo mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0

This will allow you to record input to file:

sudo mencoder tv:// -tv driver=v4l:width=320:height=240:device=/dev/video0:forceaudio:adevice=/dev/dsp1 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o /home/YOUR.USERNAME.HERE/Desktop/webcam.avi

Leave a Reply