GNOME Bugzilla – Bug 145399
[v4lsrc] probably needs more options to overide the default behavior
Last modified: 2004-12-22 21:47:04 UTC
I struggled a lot to make my webcam work. It's a Labtech Quickcam USB camera which only supports BGR format (bpp=24, depth=24). I made two modifications: 1) change MIN_BUFFERS_QUEUED from 2 to 1. My quickcam driver only opens 1 buffer. 2) In gst_v4lsrc_open(), I modified the palette[] array by moving forward VIDEO_PALETTE_RGB24 to before VIDEO_PALETTE_RGB555. Otherwise v4lsrc will use RGB555, instead of RGB24. In short, I think probably v4lsrc needs two options to set the minimum buffer number and the preferred color format. If you agree, I can try to add them for you.
No. :). 1) there's a kernel module option for the quickcam driver to provide the same buffer twice to userspace. This fixes the given problem. 2) use fixate handlers to set a specific caps. Otherwise, it'll use the automatically detected caps. If you think that it should prefer RGB24 over RGB555 (which soulds like a good idea ;) ), please provide a patch for that. :).
Can you tell me how to use the module option? Thanks!
qcset compat=dblbuf
zhanglei, does that help ?
Yes, it works :) Actually, I also used 'subsample' to make it work when the size is 176x144. All other sizes don't need 'sub sample'. I think my webcam driver is buggy. Thanks a lot!