After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 145399 - [v4lsrc] probably needs more options to overide the default behavior
[v4lsrc] probably needs more options to overide the default behavior
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.2
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-04 17:46 UTC by Zhanglei Wang
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zhanglei Wang 2004-07-04 17:46:16 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.
Comment 1 Ronald Bultje 2004-07-04 22:17:57 UTC
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. :).
Comment 2 Zhanglei Wang 2004-07-05 01:03:59 UTC
Can you tell me how to use the module option? Thanks!
Comment 3 Ronald Bultje 2004-07-05 16:59:51 UTC
qcset compat=dblbuf
Comment 4 Thomas Vander Stichele 2004-07-30 17:53:38 UTC
zhanglei, does that help ?
Comment 5 Zhanglei Wang 2004-07-30 19:33:27 UTC
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!