[clug] USB webcam video capture

Peter Barker pbarker at barker.dropbear.id.au
Fri Mar 27 19:26:36 MDT 2015


On Fri, 27 Mar 2015, Andrew Janke wrote:

>> cvlc v4l2:///dev/video0 --sout
> '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:file{dst=/tmp/fred.mp4}'
>>
>> Give-or-take half a million options.
>
> thanks, I'll give it a shot. I'm not recording audio, So can I drop the
> acodec bit?

Yep.  Probably a few of the other options, too.

>>>   crw-rw-rw+
>> Well, that would be a udev issue.  Which distribution?
> Ubuntu 14.04

Hmmm.  I do not have that problem:

pbarker at eccles:~$ ls -la /dev/video0
crw-rw----+ 1 root video 81, 0 Mar 27 18:38 /dev/video0
pbarker at eccles:~$

pbarker at eccles:~$ cat /etc/issue
Ubuntu 14.04.1 LTS \n \l

Dropping this into /etc/udev/rules.d/60-video-permissions.rules should 
work:

SUBSYSTEM=="video4linux", MODE="0777"

0777 is possibly not appropriate, however :-)

You might like to work out why your install is working differently to 
mine....

2651618395 769 /lib/udev/rules.d/60-persistent-v4l.rules
467730766 3074 /lib/udev/rules.d/50-udev-default.rules

pbarker at eccles:/lib/udev/rules.d$ cksum * | cksum
3870272332 3708
pbarker at eccles:/lib/udev/rules.d$

> a

Yours,
-- 
Peter Barker                          |   Programmer,Sysadmin,Geek.
pbarker at barker.dropbear.id.au	      |   You need a bigger hammer.
:: It's a hack! Expect underscores! - Nigel Williams


More information about the linux mailing list