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 540941 - v4l2: RGB32 should be mapped to xRGB instead of RGBx
v4l2: RGB32 should be mapped to xRGB instead of RGBx
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-30 14:33 UTC by Fredrik Persson
Modified: 2014-04-30 19:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fredrik Persson 2008-06-30 14:33:03 UTC
Using the dvi2usb solo (from epiphan; http://www.epiphan.com/products/product.php?pid=88) and this gst-launch:

gst-launch v4lsrc device=/dev/video1 ! videoscale ! ffmpegcolorspace ! ximagesink

... the blue color is replaced with the red, and vice versa. So some bitmask somewhere isn't doing what it should.

Using mplayer (mplayer -vo x11 -tv driver=v4l:outfmt=rgb24:device=/dev/video1 tv://) this problem doesn't exist.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2011-03-27 20:03:44 UTC
For v4l related issues, please add the output from v4l-info. Ideally try narrowing it does (by e.g. omitting videoscale, using xvimagesink or outputting to png images).
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2011-04-29 20:27:02 UTC
Please reopen with the needed info if you still like to get it fixed.
Comment 3 Fredrik Persson 2011-04-29 21:28:37 UTC
After *three years* you ask for additional information?

Why do you even run an open bug tracker?
Comment 4 Tim-Philipp Müller 2011-04-29 22:06:54 UTC
Sorry 'bout that. We try to do our best, but sometimes bugs are just missed - we've got quite a few to deal with. Next time, maybe ping after a while :)
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2011-04-30 12:15:31 UTC
(In reply to comment #3)
> After *three years* you ask for additional information?
> 
> Why do you even run an open bug tracker?

Please stay calm. Why should I not ask for details, it could have been that you could tell that nowadays it works and that would have been good to know.
Comment 6 Fredrik Persson 2014-03-27 18:54:40 UTC
You are right, sorry about my outburst there.

I have grown older and more patient in the six years that have passed since the filing of this report.

Unfortunately, the project that I was working on at the time is since long closed and I no longer have access to the hardware in question.

You can close this bug.
Comment 7 Nicolas Dufresne (ndufresne) 2014-03-27 19:04:50 UTC
Ah, interesting, I didn't know this big existed:

I'll merge this soon:
http://cgit.collabora.com/git/user/nicolas/gst-plugins-good.git/commit/?h=v4l2-converter&id=cf1c99a3af3c1fab67ac380a07b0c793d462064c
Comment 8 Nicolas Dufresne (ndufresne) 2014-04-30 19:37:20 UTC
commit 7ff514fec689b79c0520aa1b2aaa376b49a7b007
Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date:   Fri Mar 7 17:31:29 2014 -0500

    v4l2: Correctly map RGB32 format
    
    In v4l2 specification, RGB32 has the alpha, or pading, first, not last.
    See http://linuxtv.org/downloads/v4l-dvb-apis/packed-rgb.html .
    
    https://bugzilla.gnome.org/show_bug.cgi?id=540941