Feeding RGBA into go-gst appsrc

@RSWilli : I’m still working with example/appsrc (development version), but injecting pixels from an RGBA image.Image. It displays 100% colour bars perfectly on the local display with :

FFFFFF - white ok
FFFF00 - yellow ok
00FFFF - cyan ok
00FF00 - green ok
etc
000000 - black ok

but not with a stepped grey scale:

000000 - step1 ok (black
1F1F1F - step2 not ok (yellow)
3F3F3F - step3 not ok (white)
5F5F5F - step4 not ok (yellow)
etc

My Go data has 8 bits/colour, but the Gstreamer docs (for their RGBA) states…

Component 0: R
          depth:           8
          pstride:         4
          offset:          0
etc

Is this also 8 bits/colour?
I’ve spent days getting nowhere. Am I doing something stupid or is it just because I’m ahead of the development?

I looked at your reproduction and I cannot see what’s wrong with it:

1 Like

And btw: the generated bindings are 99% complete, you are definitely not ahead of the development.

@RSWilli - Thank you for taking the time. The “problem” is now clear. My code runs on a server. No GNOME, KDE, etc - just the console monitor. I was surprised to see autovideosink display this way, but I began to rely on it, whilst delaying the RTMP stuff. Lesson learnt.

Congratulations on reaching 99%. Your effort will be much appreciated as more people switch over to Go.

You should have been able to see that the video format has changed if you had rendered a pipeline graph. Most issues with gstreamer pipelines are immediately obvious there. The new bindings support this via three functions on bin/pipeline

1 Like