Wrong colors on Raspberry Pi 4
Nicolas Dufresne
nicolas at ndufresne.ca
Fri Nov 15 17:23:30 UTC 2019
Le vendredi 15 novembre 2019 à 08:54 -0600, moritz.vieli a écrit :
> Hi all
>
> I have a simple pipe on a Raspberry Pi 4:
> gst-launch-1.0 -v videotestsrc ! videoconvert ! glimagesink
>
> The image is supposed to look like this:
> <http://gstreamer-devel.966125.n4.nabble.com/file/t378671/testsrc.png>
>
> However, all colors are wrong and it looks like this:
> <http://gstreamer-devel.966125.n4.nabble.com/file/t378671/testsrc_wrong.png>
>
> As you can see, the colors should be white, yellow, blue, green, etc. but
> are white, blue, yellow, green, etc. If I play a video, all colors are wrong
> as well and a blue sky with clouds has lots of yellow and green in.
Indeed, red and blue component are inverted.
>
> Omxplayer works well, I therefore think it's a Gstreamer-specific problem
> and not related to the Raspberry or the HDMI connection.
I would be more looking toward a Mesa bug here (make sure you have the
latest and greatest). I have done video playback with GStreamer on RPi4
recently, and it worked fine for me (tried both glimagesink and
waylandsink). Maybe there is a specific color format that is broken,
add the -v to gst-launch-1.0, that will provide more details. This code
is common to PC, and it works on PC, so that's why I blame the GL
implementation (which is rather young on the latest Pi).
>
> Everything works well on a Raspberry Pi 3.
>
> Does anyone have an idea, where the problem could be?
>
> Thanks a lot for your feedback and best,
> Moritz
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191115/780ba3d3/attachment-0001.sig>
More information about the gstreamer-devel
mailing list