<div dir="ltr"><div>As far as I remember the last time i looked GStreamer uses byte-order convention for defining color models. In byte-order
                RGBA refers to Red being byte-0, Blue being byte-1, Green being
                byte-2 and Alpha being byte-3. Raspberry Pi programming documentation
                uses Word-order for color models. For this reason byteorder RGBA is defined
                in Raspberry Pi programming documentation as ABGR8888. Byte-order BGRA is in
                Raspberry Pi documentation defined as ARGB8888.</div><div><br></div><div>This difference/confusion can be an explanation for the colour change if one of the modules get it wrong although it does not explain if the exact same version produces one result in Rasp3 and another in Rasp4 .... unless Rasp4 has a different definition for its colour model or one of the modules compiles different code for Rasp4 compared to Rasp3. I believe the graphical API changed somewhat for Rasp4 so code may be different.</div><div><br></div><div>Regards</div><div>Peter MM<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 15, 2019 at 3:51 PM moritz.vieli <<a href="mailto:moritz.vieli@gmail.com">moritz.vieli@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all<br>
<br>
I have a simple pipe on a Raspberry Pi 4:<br>
gst-launch-1.0 -v videotestsrc ! videoconvert ! glimagesink<br>
<br>
The image is supposed to look like this:<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/t378671/testsrc.png" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/t378671/testsrc.png</a>> <br>
<br>
However, all colors are wrong and it looks like this:<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/t378671/testsrc_wrong.png" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/t378671/testsrc_wrong.png</a>> <br>
<br>
As you can see, the colors should be white, yellow, blue, green, etc. but<br>
are white, blue, yellow, green, etc. If I play a video, all colors are wrong<br>
as well and a blue sky with clouds has lots of yellow and green in.<br>
<br>
Omxplayer works well, I therefore think it's a Gstreamer-specific problem<br>
and not related to the Raspberry or the HDMI connection.<br>
<br>
Everything works well on a Raspberry Pi 3.<br>
<br>
Does anyone have an idea, where the problem could be?<br>
<br>
Thanks a lot for your feedback and best,<br>
Moritz<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>