glimagesink different behavior X vs. gbm on a RPI4
I am running gstreamer on a RPI4 and I noticed that glimagesink behaves differently when I run it from X vs. gbm.
gst-launch-1.0 videotestsrc ! glimagesink
produces the expected output when run from X, but is completely distorted (wrong colors, the edges between the color look funky) when run without X.
I tried compiling gst from source (via gst-build) with the following meson command:
meson build/ -D gst-plugins-base:gl_winsys=gbm,x11 -D gst-plugins-base:gl_platform=glx,egl -D gst-plugins-base:gl_api=opengl -D python=disabled -D introspection=disabled -D gst-plugins-bad:bluez=disabled -D gst-plugins-bad:opencv=disabled -D bad=enabled
but the result stays the same.
As soon as a videomixer
element gets involved it yields even stranger results: On X - everything works as expected.
Via gbm I get a solid one color image.
I use G2 GL (Fake KMS) OpenGL desktop driver with fake KMS
as the GL driver on my RPI4
I don't know how I can take a screenshot of gbm, but here a photo of the screen: