<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><div>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 ?<br /><br />This setting force-modesetting seems to use the original underlying layer for display, or tries to. I'll test it and report back. <br /><br />I tried "add-borders" with videoscale and didn't seem to work ?<br /><br /><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><br /><br /><br /></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/10/2019 9:45:31 PM</div>
<div>Subject: Re: Playbin + kmssink + aspect ratio black borders</div><div><br /></div>
<div id="xb9a19118dd8e45c"><blockquote cite="CAKQmDh_otgRm7giqOnqRUTprSHjbE0eZJLT5ypL0JZ_eOT5AeA@mail.gmail.com" type="cite" class="cite2">
<div dir="auto"><div><br /><br /><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 10 oct. 2019 04 h 56, Daniel Rossi <<a href="mailto:electroteque@gmail.com">electroteque@gmail.com</a>> a écrit :<br /></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>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. <br /><br />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 . <br /><br />Is there a way to force a black border using playbin ?<br /></div></blockquote></div></div><div dir="auto"><br /></div><div dir="auto">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 dir="auto"><br /></div><div dir="auto">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 dir="auto"><br /></div><div dir="auto">Final way, you could use modetest to replace fbcon framebuffer, but I don't know exactly how.</div><div dir="auto"><br /></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br />Example command<br /><br />gst-launch-1.0 playbin -v video-sink="kmssink" uri=srt://:8888</div>_______________________________________________<br />
gstreamer-devel mailing list<br />
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br />
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" style="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>
</blockquote></div>
</body></html>