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,308 times
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
- 82,867
- 54
- 239
- 271
-
I want to use avconv, the output of ls /dev/video* is /dev/video0 and the output of arecord -l is: card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 What do I have to type? – wb9688 May 12 '15 at 10:33
-
`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
-
I get the error: `[alsa @ 0x976c3a0] cannot open audio device plughw:Intel,0 (No such device) plughw:Intel,0: Input/output error` – wb9688 May 12 '15 at 10:47
-
Do you have input device such as microphone?> – Maythux May 12 '15 at 10:49
-
Yes, I have a built-in microphone. – wb9688 May 12 '15 at 10:50
-
what is the command you run – Maythux May 12 '15 at 10:52
-
I run the command you give me: `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` – wb9688 May 12 '15 at 10:53
-
try this `avconv -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
-
Now I get the error: `[alsa @ 0x85d03a0] cannot open audio device plughw:0x976c3a0,0 (No such device) plughw:0x976c3a0,0: Input/output error` – wb9688 May 12 '15 at 10:56
-
Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/23690/discussion-between-new-user-and-wb9688). – Maythux May 12 '15 at 10:58
-
I've found the solution: `avconv -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
1
Go to application , Chose
cheese
Cheese has an icon to record a video , Use that .
Simple as few clicks
vishal vasudeva
- 63
- 1
- 7