Recording from webcam, saving to file, displaying locally, using VLC, under Linux

# Change /dev/video1 to your webcam device name
# Change plughw:1,0 to your audio capture device. (Check /proc/asound/devices)
# Change 1920 to the correct width of your webcam ( Check Cheese preferences )
# Change 1080 to the correct height of your webcam ( Check Cheese preferences )

$ vlc v4l2:///dev/video1 :input-slave=alsa://plughw:1,0 :v4l2-standard=0 :v4l2-aspect-ratio=16\:9 :v4l2-width=1920 :v4l2-height=1080 :v4l2-fps=30 :sout="#transcode{vcodec=mp4v,vb=5000,scale=1,fps=30,acodec=mpga,ab=128,channels=1,samplerate=44100}:duplicate{dst=std{access=file,mux=ts,dst=/tmp/video-output.mpg},dst=display}"

Comments

Popular posts from this blog

Toshiba R830 and 16GB of RAM

Five steps to create Fedora chroot jail using yum

GitHub Social Coding