Capturing video from the Webcam in the Ubuntu Terminal

In order to this you need to have installed ffmpeg

sudo apt-get intall ffmpeg v4l-utils

List the available interfaces

v4l2-ctl --list-devices

Now to capture the video you just need to execute the following command

ffmpeg -f video4linux2 -s 1024x768 -framerate 25 -i /dev/video0 out.mkv

More information
https://trac.ffmpeg.org/wiki/Capture/Webcam

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s