<div dir="ltr"><div><div>Hi!<br><br></div>I basically construct pipeline to interact with Ip video cams. A very simple template:<br><br>rtspsrc name=source latency=100 ! rtph264depay ! mpegtsmux name=mux  ! queue !  multisocketsink sync-method=1  name=sink<br><br></div>This one is used for video distribution over http in python. I experienced both of above problems on it. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-21 3:04 GMT+03:00 Olivier Crête <span dir="ltr"><<a href="mailto:olivier.crete@collabora.com" target="_blank">olivier.crete@collabora.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 2016-06-20 at 17:04 +0300, Krutskikh Ivan wrote:<br>
> I use gstreamer 1.8.X with python and gi. For convenience I use<br>
> Gst.parse-launch() for creating pipelines. But the more I use those<br>
> approach, I stumble upon issues:<br>
><br>
> 1) Sometimes set_state(Gst.State.NULL) results in gstreamer exception<br>
> about some elements that should be manually set to NULL state.<br>
> Sometimes (like on handling EOS message) it works, sometimes it<br>
> crashes with segmentation fault with my whole multithread app =(. I<br>
> came up with a workaround for simple pipelines ( no tee's etc.): I<br>
> set src element to state_null and after that the whole pipeline. This<br>
> kind of works, but only with straight pipelines.  <br>
<br>
</span>Are you doing something else than setting the pipeline to PLAYING then<br>
back to NULL? What is your pipeline?<br>
<span class=""><br>
<br>
> 2) I cannot re-use my pipeline after it was set to state NULL. That's<br>
> less of a problem: I can just re-init my pipeline from scratch.<br>
><br>
> Are both of those issues the results of my lazy approach of using<br>
> Gst.parse-launch() instean of creating pipeline manually? And how can<br>
<br>
</span>Normally, parse_launch() should work multiple times, unless you have<br>
pipelines with sometimes pads like demuxers or decodebin, in that case,<br>
the "auto-linking" only happens the first time and you need to re-<br>
create it.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Olivier Crête<br>
<a href="mailto:olivier.crete@collabora.com">olivier.crete@collabora.com</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br></div>