Dear Laurent, Moritz,

This is the output of my program, I think information is pretty clear, you may see that grab sizes are correctly detected (enclosed below). The last messages are warnings trying to set YUV420P (I try this by default, but I can handle yuv422 as well, through libv4l2 and libv4lconvert),

The relevant lines is:

>> [2011/01/20 17:46:37] +++......grab sizes: 5 discrete values: 640x480 352x288 320x240 176x144 160x120

(I request grab size for each pixelformat, maybe an overwork)

The sizes are correctly request. I can get this lines with DEBUG on, so each ioctl can be properly debugged, let me know if you need more information,

Thank you very much for your time and effort,

best regards

Gabriel Huecas

(relevant) OUTPUT of my video program:

[2011/01/20 17:46:37] v4lUnified: starting up
[2011/01/20 17:46:37] +++Open device: /dev/video0
[2011/01/20 17:46:37] +++v4l2 supported
[2011/01/20 17:46:37] +++
[2011/01/20 17:46:37] +++Description of device
[2011/01/20 17:46:37] +++=====================
[2011/01/20 17:46:37] +++device: WebCam SCB-0370N
[2011/01/20 17:46:37] +++driver: uvcvideo
[2011/01/20 17:46:37] +++version: 0.1.0
[2011/01/20 17:46:37] +++bus: usb-0000:00:1a.0-1.4
[2011/01/20 17:46:37] +++supports:
[2011/01/20 17:46:37] +++...V4L2_CAP_VIDEO_CAPTURE
[2011/01/20 17:46:37] +++...V4L2_CAP_STREAMING
[2011/01/20 17:46:37] +++..description for channel 0
[2011/01/20 17:46:37] +++....identifier: 0
[2011/01/20 17:46:37] +++....name    : Camera 1
[2011/01/20 17:46:37] +++....type    : CAMERA
[2011/01/20 17:46:37] +++....tuners    : 0
[2011/01/20 17:46:37] +++....flags    : 0x0
[2011/01/20 17:46:37] +++....audioset: 0
[2011/01/20 17:46:37] +++
[2011/01/20 17:46:37] +++..List of supported standards:
[2011/01/20 17:46:37] ---....NO video standard in use
[2011/01/20 17:46:37] +++
[2011/01/20 17:46:37] +++..List of controls:
[2011/01/20 17:46:37] +++...Brightness:
[2011/01/20 17:46:37] +++....id: 9963776:
[2011/01/20 17:46:37] +++....type: 1:
[2011/01/20 17:46:37] +++....name: Brightness:
[2011/01/20 17:46:37] +++....min: 0:
[2011/01/20 17:46:37] +++....max: 255:
[2011/01/20 17:46:37] +++....step: 1:
[2011/01/20 17:46:37] +++....default: 128:
[2011/01/20 17:46:37] +++....current: 127:
[2011/01/20 17:46:37] +++....flags: 0x0:
[2011/01/20 17:46:37] +++...Contrast:
[2011/01/20 17:46:37] +++....id: 9963777:
[2011/01/20 17:46:37] +++....type: 1:
[2011/01/20 17:46:37] +++....name: Contrast:
[2011/01/20 17:46:37] +++....min: 0:
[2011/01/20 17:46:37] +++....max: 127:
[2011/01/20 17:46:37] +++....step: 1:
[2011/01/20 17:46:37] +++....default: 35:
[2011/01/20 17:46:37] +++....current: 63:
[2011/01/20 17:46:37] +++....flags: 0x0:
[2011/01/20 17:46:37] +++...Saturation:
[2011/01/20 17:46:37] +++....id: 9963778:
[2011/01/20 17:46:37] +++....type: 1:
[2011/01/20 17:46:37] +++....name: Saturation:
[2011/01/20 17:46:37] +++....min: 0:
[2011/01/20 17:46:37] +++....max: 127:
[2011/01/20 17:46:37] +++....step: 1:
[2011/01/20 17:46:37] +++....default: 40:
[2011/01/20 17:46:37] +++....current: 63:
[2011/01/20 17:46:37] +++....flags: 0x0:
[2011/01/20 17:46:37] +++...Hue:
[2011/01/20 17:46:37] +++....id: 9963779:
[2011/01/20 17:46:37] +++....type: 1:
[2011/01/20 17:46:37] +++....name: Hue:
[2011/01/20 17:46:37] +++....min: -15:
[2011/01/20 17:46:37] +++....max: 15:
[2011/01/20 17:46:37] +++....step: 1:
[2011/01/20 17:46:37] +++....default: 0:
[2011/01/20 17:46:37] +++....current: 0:
[2011/01/20 17:46:37] +++....flags: 0x0:
[2011/01/20 17:46:37] +++
[2011/01/20 17:46:37] +++..List of grab formats for '/dev/video0'
[2011/01/20 17:46:37] +++...Index 0 de VIDEO_CAPTURE
[2011/01/20 17:46:37] +++......type: V4L2_BUF_TYPE_VIDEO_CAPTURE
[2011/01/20 17:46:37] +++......flags: 0x0 (uncompressed)
[2011/01/20 17:46:37] +++......description: YUV 4:2:2 (YUYV)
[2011/01/20 17:46:37] +++......format: [0x56595559] YUYV
[2011/01/20 17:46:37] +++......grab sizes: 5 discrete values: 640x480 352x288 320x240 176x144 160x120
[2011/01/20 17:46:37] +++
[2011/01/20 17:46:37] +++..Default capture values:
[2011/01/20 17:46:37] +++...type: V4L2_BUF_TYPE_VIDEO_CAPTURE
[2011/01/20 17:46:37] +++...WxH: 320x240, bytesperline: 640, sizeimage: 153600
[2011/01/20 17:46:37] +++...field: V4L2_FIELD_NONE
[2011/01/20 17:46:37] +++...pixelformat: YUYV, colorspace: UNKNOWN_COLORSPACE [2011/01/20 17:46:37] +++..Grab sizes for default capture: 5 discrete values: 640x480 352x288 320x240 176x144 160x120
[2011/01/20 17:46:37] +++...MIN/MAX sizes: (160x120)..(640x480)
[2011/01/20 17:46:37] v4l2DS_t::setGrabFormat: trying to set format YUV::420P
[2011/01/20 17:46:37] v4l2DS_t::setGrabFormat: V4L2 ID=[0x32315559] YU12
[2011/01/20 17:46:37] setGrabFormat: default capture params:
    type=V4L2_BUF_TYPE_VIDEO_CAPTURE,width=320,height=240,
    pixelformat=YUYV,field=V4L2_FIELD_NONE,bytesperline=640,
    sizeimage=153600,colorspace=UNKNOWN_COLORSPACE
[2011/01/20 17:46:37] v4l2DS_t:setGrabFormat: VIDIOC_TRY_FMT failed: error 22 Invalid argument
[2011/01/20 17:46:37] v4l2DS_t:setGrabFormat: trying to continue anyway
[2011/01/20 17:46:37] v4l2DS_t:setGrabFormat: VIDIOC_S_FMT failed: error 22 Invalid argument

El 16/02/2011 13:38, Moritz Barsnick escribió:
On Tue, Feb 15, 2011 at 19:58:12 +0100, Laurent Pinchart wrote:
What happen if you try to capture images in the problematic resolution with a
test software such as yavta (git.ideasonboard.com) ?
Wow, I wasn't aware of this neat little tool. It has so many
advantages:
- no SDL dependency like luvcview
- no big chunk of dependencies like guvcview (which is otherwise really
   great, especially since it's not restricted to UVC anymore)
- no age-old tool like those from the xawtv suite (which some distros
   don't package anymore).

Would it enumerate resolutions and frame rates like {l,g}uvcview do? (I
only tested on a TV V4L device, my webcam is blocked.)

Do you mind if I submit a patch or two for some things that came to
mind, notably error reporting?

Thanks,
Moritz
_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

<<attachment: gabriel.vcf>>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to