usb/xawtv help needed

Net Llama! netllama
Mon May 17 11:30:12 PDT 2004


Actually, Joel, i finally got the camera working last night at 1AM.  For 
anyone else's benefit (i'll writeup a SxS eventually with alot more 
details), here's what i had to do to get this Philips 690 functional:
1) Build 2.4.18 from source with video4linux (v4l) module *AND* 
philips-web-cam (pwc).  Also build the modules for USB support (usbcore 
and usb-uhci).
2) Activate DGA and v4l in XF86Config (and restart X).
3) Build & install hotplug and xawtv
4) Setup /dev/video0 with correct major/minor numbers
5) Load all the relevant modules, in this order:
pwc, pwcx-i386, videodev, usbcore, usb-uhci

It looks to me that the bttv module is only needed if you have a TV 
tuner card, otherwise it has no purpose.

I've now got a few remaining problems.  The first is how to get the 
modules to load in the correct order via modules.conf.  modprobing 
usb-uhci doesn't load pwce.  modprobing pwce doesn't load usb-uhci.  So 
basically its a 2 step process, and i can't quite figure out the correct 
aliases in modules.conf to make it load in the correct order.

THe 2nd is that xawtv refuses to obey the resolution parameter that i'm 
feeding it:
xawtv -geometry 352x288-0+0
and keeps defaulting back to 128x96 (which looks like crap).  My camera 
is definitely capable of doing 640x480 @16fps, so its not a hardware 
limitation.  I'm seeing this error from xawtv as it defaults to the 
lesser resolution:
ioctl: VIDIOCMCAPTURE(0,fmt=7,size=128x96): Invalid argument

Even if i run it without the higher resolution , the same error appears.

And the final error is occuring whenver i try to take a snapshot with 
the camera:
JPEG parameter struct mismatch: library thinks size is 372, caller 
expects 376

My research seems to indicate that this is a bug in an older version of 
libjpeg (like version 6a).  However, i've got libjpeg-6b-18 which is 
basically the newest stable release, so i'm stumped.

Any suggestions or ideas are quite welcome.  Thanks!

Joel Hammer wrote:
> I have no idea how many of my comments are relevant to your webcam problem
> but you did say "anybody."
> I have a video capture card. 
> I have the same /dev/video0 device and a videodev module loaded.  I am using kwintv,
> not xawtv, but xawtv seems to need the bttv driver, which you don't list
> with lsmod.
> Here is the complete list of modules I have for my video capture card and
> for my usb game pad:
> bttv                   57508   0  (unused)
> tuner                   3988   1
> tda9875                 2380   0  (unused)
> tda7432                 2560   0  (unused)
> msp3400                13620   0  (unused)
> videodev                2944   2  [bttv]
> i2c-algo-bit            7444   1  [bttv]
> i2c-dev                 4080   0  (unused)
> i2c-core               12556   0  [bttv tuner tda9875 tda7432 msp3400
> i2c-algo-bit i2c-dev]
> hid                    12016   0  (unused)
> usb-uhci               21720   0  (unused)
> usbcore                27940   0  [hid usb-uhci]
> evdev                   3624   0  (unused)
> joydev                  6212   0  (unused)
> input                   3264   0  [hid evdev joydev]     
> 
> Have you visited the xawtv home page?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                       	       netllama at linux-sxs.org
Linux Step-by-step & TyGeMo: 		    http://netllama.ipfox.com

   9:05am  up 1 day, 16:01,  5 users,  load average: 0.53, 0.27, 0.23




More information about the Linux-users mailing list