Re: [Linux-uvc-devel] Logitech Quickcam for Notebooks Pro
Linux UVC driver and tools
Brought to you by:
pinchartl
|
From: Binary X. <bx...@gm...> - 2006-01-27 05:02:11
|
On 1/26/06, Laurent Pinchart <lau...@sk...> wrote:
>
> Hi Tanner,
>
> > Hmm, ill look into gnomemeeting (its emering now). however my primary
> > interest is aMSN and its msn (obviously heh) webcam.
> > The application supports v4l (v4l2?) and can even see my device, listed
> as
> > 'V4L-2: ', and when clicked on, displays a 'Error getting capabilities'
> > message. once engaged in the conversation the light on my camera will
> > start, but it never seems to be working.
>
> After a quick look at the source code, aMSN seems to support V4L2 and YUYV
> but
> not MJPEG. As I have no MSN account there is no way I can test the
> software.
> Have you tried asking the aMSN developers for support ?
Apparently, it is not v4l2 coded heh. ive looked through a bunch of the
code, and began placing debug printf's, there is a section of note:
>> struct video_capability vcap;
shouldnt this be v4l2_capability? (assuming v4l2 compliant)
>>if (ioctl(fvideo, VIDIOCGCAP, &vcap) < 0) {
struct v4l2_capability v4l2CAPS; // *********************** mine
ioctl(fvideo, VIDIOC_QUERYCAP, &v4l2CAPS); // ******************* this
is mine
printf("HELP!!!!\n%s", v4l2CAPS.capabilities &
V4L2_CAP_VIDEO_CAPTURE); // ************* this is mine
printf("video_capability[vcap]\n\tName: %s\n\tType: %s\n\tChannels:
%s\n\tAudios: %s\n\tWidth[max,min]: [%s,%s]\n\tHeight[max,min]: [%s,%s]\n",
vcap.name, vcap.type,vcap.channels, vcap.audios, vcap.maxwidth,
vcap.minwidth, vcap.maxheight,vcap.minheight); //*************************
this is mine also, note that program crashes on printf of this function
>> Tcl_AppendResult(interp, "Error getting capabilities - 1", (char *)
NULL);
>> close(fvideo);
>> return TCL_ERROR;
the entire return of test.tcl is:
dlsym[./libng/plugins/drv0-v4l2.so]: ./libng/plugins/drv0-v4l2.so: undefined
symbol: _ng_plugin_init
dlsym[./libng/plugins/drv1-v4l.so]: ./libng/plugins/drv1-v4l.so: undefined
symbol: _ng_plugin_init
WARNING: no plugins found [/home/xerroz/msn]
ioctl: VIDIOCGCAP(name="ôO=@§¿¤[2@";type=0x403ca160
[CLIPPING,FRAMERAM,MONOCHROME,MJPEG_ENCODER,(null),(null),(null),(null),(null),(null)];channels=1077040529;audios=1077042084;maxwidth=1077766688;maxheight=0;minwidth=0;minheight=134808394):
Invalid argument
HELP!!!!
Segmentation fault
<< now its faulting on the printf for the v4l2CAPS struct i made, output
with those lines commented
dlsym[./libng/plugins/drv0-v4l2.so]: ./libng/plugins/drv0-v4l2.so: undefined
symbol: _ng_plugin_init
dlsym[./libng/plugins/drv1-v4l.so]: ./libng/plugins/drv1-v4l.so: undefined
symbol: _ng_plugin_init
WARNING: no plugins found [/home/xerroz/msn]
ioctl: VIDIOCGCAP(name="ôO=@ ¦[2@";type=0x403ca160
[CLIPPING,FRAMERAM,MONOCHROME,MJPEG_ENCODER,(null),(null),(null),(null),(null),(null)];channels=1077040529;audios=1077042084;maxwidth=1077766688;maxheight=0;minwidth=0;minheight=134808394):
Invalid argument
video_capability[vcap]
Name:
Type: (¨
Channels: h
Audios: (¨
Width[max,min]: [ÂBù:°,::device]
Segmentation fault
<<
I am beginning to think that aMSN is NOT v4l2 compliant, judging from the
output of the printf (which should have the capabilities right?) and even
the iotctl message above (which, i cannot figure out where its coming from,
but seems to judge better than the other function, yet still off)
any ideas guys?
> I have tried to look through the source code of both uvcview, and amsn.
> > aMSN is in tcl (apparent thanks to the extention) and heh, i have no
> idea
> > how to work with that, let alone convert the source from uvcview.
>
> Some parts are implemented in tcl, but image capture is implemented in
> plain
> old C.
>
> > To be honest, i have no idea how it will be possible to integrate what i
> > need into aMSN, or even where to start =\
>
> Have a look at utils/linux/capture
>
> Regarding xawtv, I'll try to see if I can get it working with the
> linux-uvc
> driver this weekend. Has someone else had any success with xawtv so far ?
>
> Laurent Pinchart
>
|