<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class=""><div class="">Date: Fri, 15 Dec 2017 18:59:22 +0200<br class="">From: Ran Shalit <<a href="mailto:ranshalit@gmail.com" class="">ranshalit@gmail.com</a>><br class="">To: Discussions specific to using GStreamer on embedded systems<br class=""><span class="Apple-tab-span" style="white-space:pre">       </span><<a href="mailto:gstreamer-embedded@lists.freedesktop.org" class="">gstreamer-embedded@lists.freedesktop.org</a>><br class="">Subject: Re: x11 and gstreamer compete on same display ?<br class="">Message-ID:<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span><<a href="mailto:CAJ2oMhLwenVMA_XMKetWk8w568ZHM9BDGTuhgGPQMz1egnEZcw@mail.gmail.com" class="">CAJ2oMhLwenVMA_XMKetWk8w568ZHM9BDGTuhgGPQMz1egnEZcw@mail.gmail.com</a>><br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">בתאריך 15 בדצמ 2017 17:54, "Todd Fischer" <<a href="mailto:todd.fischer@ridgerun.com" class="">todd.fischer@ridgerun.com</a>> כתב:<br class=""><blockquote type="cite" class=""><br class=""><br class=""><blockquote type="cite" class=""><br class="">Date: Thu, 14 Dec 2017 21:14:07 +0200<br class="">From: Ran Shalit <<a href="mailto:ranshalit@gmail.com" class="">ranshalit@gmail.com</a>><br class="">To: Discussions specific to using GStreamer on embedded systems<br class=""><<a href="mailto:gstreamer-embedded@lists.freedesktop.org" class="">gstreamer-embedded@lists.freedesktop.org</a>><br class="">Subject: Re: x11 and gstreamer compete on same display ?<br class="">Message-ID:<br class=""><<a href="mailto:CAJ2oMhJ4NmYkeMYvEABoan2G16+_5OkC8JcE8JOBDZEw7edSAw@mail.gmail.com" class="">CAJ2oMhJ4NmYkeMYvEABoan2G16+_5OkC8JcE8JOBDZEw7edSAw@mail.gmail.com</a>><br class="">Content-Type: text/plain; charset="UTF-8"<br class=""><br class=""><br class="">On Thu, Dec 14, 2017 at 8:25 PM, Todd Fischer <<a href="mailto:todd.fischer@ridgerun.com" class="">todd.fischer@ridgerun.com</a>><br class=""></blockquote></blockquote>wrote:<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class=""><br class=""><blockquote type="cite" class="">On Dec 14, 2017, at 11:07 AM, Ran Shalit <<a href="mailto:ranshalit@gmail.com" class="">ranshalit@gmail.com</a>> wrote:<br class=""><br class="">Hello,<br class=""><br class="">I am using linux distro with x11.<br class="">We have some issue, that gstreamer is not displayed correctly with rtp.<br class="">We suspect that x11 and gstreamer compete on the display (becuase on<br class="">exiting the gstreamer process x11 is immeditely shown again).<br class=""></blockquote><br class=""><br class="">What is the pipeline you are using?<br class=""></blockquote><br class=""><br class="">Hi,<br class="">This is the pipeline:<br class=""><br class="">gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp,<br class="">media=(string)video, clock-rate=(int)90000,<br class="">encoding-name=(string)RAW,width=(string)1280,height=(string)1024,<br class="">payload=(int)96,sampling=YCbCr-4:2:0" ! rtpvrawdepay ! imxg2dvideosink<br class="">use-vsync=true<br class=""><br class=""><br class=""></blockquote><br class="">There are several other video sinks available for iMX6.  I was trying to<br class=""></blockquote>find a specific example for QT + GST on iMX6, but didn’t stumble across<br class="">one.  You might find some useful information at<br class=""><blockquote type="cite" class=""><br class="">*<br class=""></blockquote><a href="http://developer.ridgerun.com/wiki/index.php?title=IMX6_GStreamer_Pipelines_-_SDK_Turrialba" class="">http://developer.ridgerun.com/wiki/index.php?title=IMX6_GStreamer_Pipelines_-_SDK_Turrialba</a><br class=""><blockquote type="cite" class="">*<br class=""></blockquote>http://developer.ridgerun.com/wiki/index.php?title=Getting_Started_Guide_for_RidgeRun_iMX6_Graphics-Server<br class=""><br class="">I saw various distortions even in low resolutions and rates.<br class="">That is why I suspect that x11 terminal or ui is also writing or competing<br class="">on the same framebuffer. Is that possible?<br class=""></div></div></blockquote><div><br class=""></div><div><br class=""></div><div>Ran,</div><div><br class=""></div><div>On an iMX6, X11 writes to the RGB framebuffer and GStreamer writes to YUV framebuffer. </div><div>The IPU does color space conversion and mixes the two framebuffers.</div><div><br class=""></div><div>I found the diagrams in Oliver Brown’s presentation helpful to understand the IPU capabilities.</div><div><br class=""></div><div><a href="https://community.nxp.com/docs/DOC-100482" class="">https://community.nxp.com/docs/DOC-100482</a></div><div><br class=""></div><div>You need to make sure you are not using the ARM to copy the framebuffer, that will kill performance.</div><div><br class=""></div><div>We have a wiki on iMX6 QT enablement at</div><div><br class=""></div><div><a href="http://developer.ridgerun.com/wiki/index.php?title=IMX6_QT-X11_support" class="">http://developer.ridgerun.com/wiki/index.php?title=IMX6_QT-X11_support</a></div><div><br class=""></div><div>You can get the SDK from <a href="https://www.ridgerun.com/download-evaluation-sdk" class="">https://www.ridgerun.com/download-evaluation-sdk</a> if you want to </div><div>have a comparison build system to see if you get different result.</div><div><br class=""></div><div>Todd Fischer</div><div>RidgeRun</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class=""><br class="">What system is running the pipeline?<br class=""><br class=""></blockquote>imx6, yocto morti, x11 distro (there is also fb distro, which might be<br class=""></blockquote></blockquote>better?)<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class="">It sounds like the hardware that mixes the display and video windows<br class=""></blockquote></blockquote></blockquote>isn’t configured as you would like.  The easiest fix is likely to use a<br class="">different video sink.<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class=""><br class="">This is my assumption. That x11 and gstreamer are competing. when I<br class="">stop the pipeline I immediately see the GUI. even when I disabled<br class="">desktop manager with systemctl set-default multi-user.target ,<br class="">although I don't see the gnome environment, I keep see the xterm<br class="">terminal. So, I suspect that they compete, and that's why gstreamer<br class="">has difficulties. Yet, I am not sure,  with simpler pipelines without<br class="">rtp, like videotstsrc, then it appears better on the screen.<br class=""><br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class=""><br class="">Does it make sense ?<br class=""><br class="">Thank you,<br class="">Ran<br class=""></blockquote><br class=""><br class="">Todd<br class="">RidgeRun<br class=""></blockquote></blockquote></blockquote></div></div></blockquote></div><br class=""></body></html>