<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">You may try to set the display. Something like <div><br></div><div>DISPLAY=:0 <span style="background-color: rgba(255, 255, 255, 0);">gst-launch-1.0 -v v4l2src device=/dev/video0 !</span><blockquote type="cite"><div dir="ltr"><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">'video/x-raw,framerate=(fraction)50/1,format=RGB' ! videoconvert !<br>xvimagesink</span></font></div></blockquote><div><br></div>The :0 part may vary, but that’s typically the default value. Of course you can export it to make it last for the entire session.</div><div><br></div><div>Michael</div><div><a href="http://www.ridgerun.com">www.ridgerun.com</a></div><div><div><div dir="ltr"><br>On Apr 24, 2019, at 1:38 PM, Ranran <<a href="mailto:ranshalit@gmail.com">ranshalit@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><span>Hello,</span><br><span></span><br><span>We need to start gstreamer from serial console , and see the video on</span><br><span>the display output (regular hdmi interface).</span><br><span></span><br><span>But trying:</span><br><span>gst-launch-1.0 -v v4l2src device=/dev/video0 !</span><br><span>'video/x-raw,framerate=(fraction)50/1,format=RGB' ! videoconvert !</span><br><span>xvimagesink</span><br><span></span><br><span>results in: "could not open display".</span><br><span></span><br><span>The same command works very well when we run it from the GUI by</span><br><span>opening a terminal.</span><br><span></span><br><span>How should we run gstreamer to make it work ?</span><br><span></span><br><span>Thank you,</span><br><span>ranran</span><br><span>_______________________________________________</span><br><span>gstreamer-embedded mailing list</span><br><span><a href="mailto:gstreamer-embedded@lists.freedesktop.org">gstreamer-embedded@lists.freedesktop.org</a></span><br><span><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded">https://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded</a></span></div></blockquote></div></div></body></html>