I have an EEE PC 701 and want to record video using the built-in webcam. I have installed Lubuntu 14.10. I already have installed avconv
and I want to use avconv
.
Asked
Active
Viewed 1,312 times
1

wb9688
- 1,437
2 Answers
2
Find video device
ls /dev/video*
suppose video0
2- Find audio device
arecord -l
suppose output like this
card 1: U0x46d0x8ad [USB Device 0x46d:0x8ad],........
Then the audio device would be:
plughw:U0x46d0x8ad,0
Capture video and audio:
avconv -f video4linux2 -r 25 -i /dev/video0 -f alsa -i plughw:U0x46d0x8ad,0 -ar
22050 -ab 64k -strict experimental -acodec aac -vcodec mpeg4 -y webcam.mp4
If you want to try some GUI apps:
1.Camorama Webcam Viewer
To install it:
sudo apt-get install camorama
2.GTK+ base UVC Viewer
Install GUVC Viewer
sudo apt-get install guvcview

Maythux
- 84,289
1
Go to application , Chose
cheese
Cheese has an icon to record a video , Use that .
Simple as few clicks
avconv -f video4linux2 -r 25 -i /dev/video0 -f alsa -i plughw:Intel,0 -ar 22050 -ab 64k -strict experimental -acodec aac -vcodec mpeg4 -y webcam.mp4
– Maythux May 12 '15 at 10:35[alsa @ 0x976c3a0] cannot open audio device plughw:Intel,0 (No such device) plughw:Intel,0: Input/output error
– wb9688 May 12 '15 at 10:47avconv -f video4linux2 -r 25 -i /dev/video0 -f alsa -i plughw:Intel,0 -ar 22050 -ab 64k -strict experimental -acodec aac -vcodec mpeg4 -y webcam.mp4
– wb9688 May 12 '15 at 10:53avconv -f video4linux2 -r 25 -i /dev/video0 -f alsa -i plughw:0x976c3a0,0 -ar 22050 -ab 64k -strict experimental -acodec aac -vcodec mpeg4 -y webcam.mp4
– Maythux May 12 '15 at 10:55[alsa @ 0x85d03a0] cannot open audio device plughw:0x976c3a0,0 (No such device) plughw:0x976c3a0,0: Input/output error
– wb9688 May 12 '15 at 10:56avconv -f video4linux2 -r 25 -i /dev/video0 -f alsa -i plughw:0 -ar 22050 -ab 64k -strict experimental -acodec aac -vcodec mpeg4 -y webcam.mp4
– wb9688 May 31 '15 at 09:03