<div dir="ltr"><div dir="ltr">On Wed, Apr 22, 2020 at 1:02 PM Erik Rull <<a href="mailto:erik.rull@rdsoftware.de">erik.rull@rdsoftware.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I was struggling with some shm src / sink issues and found out that the<br>
ximagesink sink does not seem to support 8 bit gray images.<br>
<br>
What do I have to do to get the video displayed?<br>
I see that the frames are there due to a identity that I check for arriving items...<br>
<br>
If I convert everything to BGRx I get the frames. But I don't want to waste that<br>
much bandwidth. Also several videoconverts before it do not help.<br>
<br>
The section of the pipeline looks like this:<br>
<br>
shmsrc socket-path=/tmp/pad_shm is-live=1 !<br>
video/x-raw,format=(string)GRAY8,framerate=(fraction)8/1,pixel-aspect-ratio=(fraction)1/1,interlace-mode=(string)progressive,width=401,height=404<br>
! videoconvert  ! identity name=identity ! ximagesink max-lateness=500000000<br>
<br>
the part before comes from an appsrc which generates proper 8 bit frames:<br>
appsrc name=src stream-type=0 is-live=1 max-bytes=10000000<br>
caps=video/x-raw,format=(string)GRAY8,framerate=8/1,width=401,height=404 !<br>
shmsink render-delay=0 socket-path=/tmp/pad_shm shm-size=10000000<br>
wait-for-connection=0 max-lateness=500000000 buffer-time=0</blockquote><div><br></div><div>You don't exactly say what the result is with your current pipeline. 

Have you tried substituting "avimux ! filesink location=test.mp4" or similar for ximagesink to see what you're getting?  </div><div> <br></div><div>I ran your pipelines but with videotestsrc instead of appsink, and it works fine. Only thing I can see going on is that your appsrc isn't actually producing data as GRAY8, 401x404. Also, are you padding the rows to 404x404? GStreamer assumes widths are multiples of 4-bytes, so you'll need to pad rows with three pixels.</div><div><br></div><div>-Josh</div><div>

</div></div></div>