NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: webcam support - unexpected success!



On Mon, Dec 06, 2010 at 09:10:56PM +0000, Dave Tyson wrote:
> I picked up a headset which came with a 2Mpixel webcam from Aldi today for 
> the 
> princely sum of £14.99. I really only needed the headset, but out of 
> curiosity 
> plugged the webcam into my laptop running 5.1_STABLE. It seemed to be 
> detected 
> and attached:
> 
> uvideo0 at uhub4 port 2 configuration 1 interface 0: vendor 0x04f2 USB2.0 2MP 
> UVC Camera, rev 2.00/1.00, addr 2
> video0 at uvideo0: vendor 0x04f2 USB2.0 2MP UVC Camera, rev 2.00/1.00, addr 2
> uaudio0 at uhub4 port 2 configuration 1 interface 2: vendor 0x04f2 USB2.0 2MP 
> UVC Camera, rev 2.00/1.00, addr 2
> uaudio0: audio rev 1.00
> audio2 at uaudio0: full duplex, playback, capture, independent
> 
> A quick web search revealed a video showing it worked under Linux. I tried a 
> search for video support for NetBSD and found the NetBSD Video Class driver
> from the Summer of code 2008 with some instructions. A quick recompile of 
> Mplayer with the extra configure option --enable-tv-v4l2 and then running it 
> with:
> 
> mplayer tv:// -tv driver=v4l2:device=/dev/video0 -fps 30 

I had to give that a try.

I had to use a slightly different command to avoid a blue window and
a stream of errors, "X11 error: BadAlloc (insufficient resources for
operation)".  The command:

mplayer tv:// -tv driver=v4l2:device=/dev/video0 -fps 30 -vo x11

Dave

> produced a perfect video. I was gobsmacked! I just need to see if I can get 
> it 
> to work with a web streaming server. 
> 
> Fantastic work guys - a very happy user.
> 
> Dave
> 
> -- 
> =====================================================================
> Phone: 07805784357
> Open Source O/S: www.netbsd.org
> Caving: http://www.wirralcavinggroup.org.uk
> =====================================================================

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index