Hi Jon,

On Tuesday 02 June 2009 17:17:36 Jon Fairbairn wrote:
> Hi Laurent,
>
> Laurent Pinchart <[email protected]> writes:
> > Here's a patch that implements VIDIOC_[GS]_JPEGCOMP. It seems to work
> > with a Logitech QuickCam Pro for Notebooks. Could you please test it with
> > your camera(s) and report the results ?
>
> Thanks. I downloaded the source for the kernel I'm running,
> applied the patch (it applied cleanly), so I built it and
> insmodded it, and ran motion -- this message
>
>    motion: [1] VIDIOC_G_JPEGCOMP not supported but it should
>    be (does your webcam driver support this ioctl?)
>
> no longer appears,

Good.

> but I still get
>
>    motion: [1] Video device fatal error - Closing video
>    device
>
> That might be bug in motion, but I'm not sure what else to
> use to test it.

Does the driver print anything in the kernel log when the problem happens ?

> mplayer with -tv mjpeg says (inter alia)
>
> Selected driver: v4l2
>  name: Video 4 Linux 2 input
>  author: Martin Olschewski <[email protected]>
>  comment: first try, more to come ;-)
> v4l2: video fd: /dev/video0: 3
> v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM
> was used instead. Selected device: Live! Cam Optia
>  Capabilites:  video capture  streaming
>  supported norms:
>  inputs: 0 = Camera 1;
>  Current input: 0
>  Format MJPEG  ( 0 bits, MJPEG): Unknown 0x47504a4d
>  Format YUYV   (16 bits, YUV 4:2:2 (YUYV)): Packed YUY2
>  Current format: YUYV
> v4l2: set format: YVU420
> v4l2: ioctl set format failed: Invalid argument
> v4l2: set format: YUV420
> v4l2: ioctl set format failed: Invalid argument
> v4l2: set format: UYVY
> v4l2: ioctl set format failed: Invalid argument
> v4l2: set format: YUYV
> v4l2: set input: 0
>
> which doesn't look right -- it doesn't say "set format:
> MJPEG".

It might still be using MJPEG, although this sounds a bit weird. If you load 
the uvcvideo driver with trace=15 the driver will print various debug messages 
to the kernel log. You will be able to trace all format get/set calls made by 
mplayer.

> xawtv just gives me a black window on my vncsession.

xawtv is known to have bugs, don't use it for testing.

> luvcview and mjpeg-streamer work in MJPEG mode, but they did
> before the patch, so that's no test either.
>
> What would be the right way to test this?

>From your report it seems you mostly experience userspace application issues. 
I would still be interested in messages printed by the uvcvideo driver in the 
kernel log when running motion.

Best regards,

Laurent Pinchart

_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to