<html><head>

<style id="css_styles" type="text/css">blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: right;'] {  list-style-position: inside;}
body { font-family: Segoe UI; font-size: 12pt;   }</style></head><body class="plain"><div>RPI3B. I forgot to include that in the subject. I'm trying to make test 4:3 video sources but having a hard time not showing it fullscreen scaled.
</div><div>
</div><div>kmssink force-modesetting=true
</div><div>
</div><div>Causes frame dropping and these errors. Its using video4linux h264 decoder though
</div><div>
</div><div>WARNING: from element /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstKMSSink:kmssink0: A lot of buffers are being dropped.
</div><div>
</div><div>I'll try that hack thanks. I would need a way to get console display back when streaming stops though.</div>
<div><br /></div>
<div>------ Original Message ------</div>
<div>From: "Nicolas Dufresne" <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>></div>
<div>To: "Daniel Rossi" <<a href="mailto:electroteque@gmail.com">electroteque@gmail.com</a>></div>
<div>Cc: "Discussion of the development of and with GStreamer" <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>></div>
<div>Sent: 10/11/2019 1:35:51 AM</div>
<div>Subject: Re: Re[2]: Playbin + kmssink + aspect ratio black borders</div><div><br /></div>
<div id="x1b0dfa11d2dd4d0"><blockquote type="cite" class="cite2">

<div class="plain_line">Le jeudi 10 octobre 2019 à 11:47 +0000, Daniel Rossi a écrit :</div>
<blockquote type="cite" class="cite">
<div class="plain_line"> Thanks mate. Some of it went over my head regards to fbcon. How do I disable that ? I don't know what modetest is. Is this something I should take up with RPI forum ?</div>
</blockquote>
<div class="plain_line"> </div>
<div class="plain_line">modetest is missing on raspbian (drm-utils is missing), sorry didn't</div>
<div class="plain_line">catch you are on RPi. One way I found is to unbind all consoles:</div>
<div class="plain_line"> </div>
<div class="plain_line">  for i in  /sys/class/vtconsole/*; do echo 0 > $i/bind; done</div>
<div class="plain_line"> </div>
<div class="plain_line">For me it turns the VT blank, no blinking or anything. And then kmssink</div>
<div class="plain_line">seems to do the right thing.</div>
<div class="plain_line"> </div>
<blockquote type="cite" class="cite2">
<div class="plain_line"> </div>
<div class="plain_line"> This setting force-modesetting seems to use the original underlying layer for display, or tries to. I'll test it and report back.</div>
<div class="plain_line"> </div>
<div class="plain_line"> I tried "add-borders" with videoscale and didn't seem to work ?</div>
<div class="plain_line"> </div>
<div class="plain_line"> <a href="https://gstreamer.freedesktop.org/documentation/videoscale/index.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/videoscale/index.html?gi-language=c</a></div>
<div class="plain_line"> </div>
<div class="plain_line"> </div>
<div class="plain_line"> </div>
<div class="plain_line"> ------ Original Message ------</div>
<div class="plain_line"> From: "Nicolas Dufresne" <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>></div>
<div class="plain_line"> To: "Daniel Rossi" <<a href="mailto:electroteque@gmail.com">electroteque@gmail.com</a>></div>
<div class="plain_line"> Cc: "Discussion of the development of and with GStreamer" <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>></div>
<div class="plain_line"> Sent: 10/10/2019 9:45:31 PM</div>
<div class="plain_line"> Subject: Re: Playbin + kmssink + aspect ratio black borders</div>
<div class="plain_line"> </div>
<div class="plain_line"> ></div>
<div class="plain_line"> > Le jeu. 10 oct. 2019 04 h 56, Daniel Rossi <<a href="mailto:electroteque@gmail.com">electroteque@gmail.com</a>> a écrit :</div>
<div class="plain_line"> > > I am using kmssink to output video to HDMI on RPI. However, the video is overlaying the console text, with the text showing underneath it depending on the video scale.</div>
<div class="plain_line"> > ></div>
<div class="plain_line"> > > In 16:9 on a TV it still shows text top and bottom but not on my monitor. In 4:3 it's apparantly forcing aspect ratio, and the console text is displaying underneath it .</div>
<div class="plain_line"> > ></div>
<div class="plain_line"> > > Is there a way to force a black border using playbin ?</div>
<div class="plain_line"> ></div>
<div class="plain_line"> > By default, kmsink will render on an overlay, leaving fbcon frame buffer in place. To add black border without loosing the speed of zero copy, kmssink would need to learn to render on multiple planes, and for that it would need to use the new atomic kernel API. We basically need to implement a small compositor to go further with that.</div>
<div class="plain_line"> ></div>
<div class="plain_line"> > Meanwhile, you could disable fbcon, or try to set force-modesetting property (that does not always work though). I've heard of a patch adding a "fullscreen-overlay" property, but it was a bit of a hack.</div>
<div class="plain_line"> ></div>
<div class="plain_line"> > Final way, you could use modetest to replace fbcon framebuffer, but I don't know exactly how.</div>
<div class="plain_line"> ></div>
<div class="plain_line"> > > Example command</div>
<div class="plain_line"> > ></div>
<div class="plain_line"> > > gst-launch-1.0 playbin -v video-sink="kmssink" uri=srt://:8888</div>
<div class="plain_line"> > > _______________________________________________</div>
<div class="plain_line"> > > gstreamer-devel mailing list</div>
<div class="plain_line"> > > <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a></div>
<div class="plain_line"> > > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></div>
</blockquote>
</blockquote></div>
</body></html>