Hi Laurent,

Laurent Pinchart <[email protected]> writes:
> On Tuesday 02 June 2009 17:17:36 Jon Fairbairn wrote:
>> 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 ?

Not normally; there's the ignorable
uvcvideo: device Live! Cam Optia requested null bandwidth, defaulting to lowest.
but nothing else unless I set the trace parameter.

>> 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.

maybe, but only because I was looking around for an app that
would send the right ioctls and count as a decent test...

> I would still be interested in messages printed by the
> uvcvideo driver in the kernel log when running motion.

With trace=15, there's quite a lot. I've removed what I think
is boring, but let me know if I've trimmed too much:

uvcvideo: Adding mapping Brightness [... and various other controls]
uvcvideo: Probing generic UVC device 4
uvcvideo: Found format MJPEG.
uvcvideo: - 640x480 (30.0 fps)
uvcvideo: - 320x240 (30.0 fps)
uvcvideo: - 160x120 (30.0 fps)
uvcvideo: - 352x288 (30.0 fps)
uvcvideo: - 176x144 (30.0 fps)
uvcvideo: Found format YUV 4:2:2 (YUYV). [... same resolutions as above]

uvcvideo: Found a Status endpoint (addr 82).
uvcvideo: Found UVC 1.00 device Live! Cam Optia (041e:4057)
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/2 to device 4 
entity 5
[... more similar "Added control..." lines]
uvcvideo: Scanning UVC chain: OT 3 <- XU 6 <- PU 5 <- SU 4 <- IT 1
uvcvideo: Found a valid video chain (1 -> 3).
uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling 
workaround.
input: Live! Cam Optia as 
/devices/pci0000:00/0000:00:02.1/usb1/1-4/1-4:1.0/input/input10
uvcvideo: UVC device initialized.
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000.
uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
uvcvideo: UVC non compliance - GET_MIN/MAX(PROBE) incorrectly supported. 
Enabling workaround.
[ the next section repeats continually while motion is running ]
uvcvideo: Trying format 0x47504a4d (MJPG): 352x288.
uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
uvcvideo: Trying format 0x47504a4d (MJPG): 352x288.
uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
uvcvideo: Setting jpeg quality to 100.
uvcvideo: Control 0x0098090e not found.
uvcvideo: Control 0x0098090f not found.
uvcvideo: Control 0x00980911 not found.
uvcvideo: Control 0x00980912 not found.
uvcvideo: Control 0x00980913 not found.
uvcvideo: Control 0x08000000 not found.
uvcvideo: Control 0x08000001 not found.
uvcvideo: device Live! Cam Optia requested null bandwidth, defaulting to lowest.


>> mplayer with -tv mjpeg

> It might still be using MJPEG, although this sounds a bit
> weird.

It doesn't look like it...

> 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.

uvcvideo: Trying format 0x56595559 (YUYV): 640x480.
uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
uvcvideo: Trying format 0x32315659 (YV12): 640x480.
uvcvideo: Unsupported format 0x32315659.
uvcvideo: Trying format 0x32315559 (YU12): 640x480.
uvcvideo: Unsupported format 0x32315559.
uvcvideo: Trying format 0x59565955 (UYVY): 640x480.
uvcvideo: Unsupported format 0x59565955.
uvcvideo: Trying format 0x56595559 (YUYV): 640x480.
uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
uvcvideo: Trying format 0x56595559 (YUYV): 352x480.
uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
uvcvideo: Trying format 0x56595559 (YUYV): 352x288.
uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
uvcvideo: Control 0x00980909 not found.
uvcvideo: device Live! Cam Optia requested null bandwidth, defaulting to lowest.
uvcvideo: Control 0x00980909 not found.

I hope that helps!

Thanks,
  Jón

-- 
Jón Fairbairn                                 [email protected]


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

Reply via email to