Could it be related with the unactive branch, no data is flowing through it and that may cause the hanging.<br><br>If you remove the branch it work fine, isn't it?<br><div class="gmail_extra"><br><br><div class="gmail_quote">
2012/4/5 Stefan Sauer <span dir="ltr"><<a href="mailto:ensonic@hora-obscura.de" target="_blank">ensonic@hora-obscura.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div bgcolor="#ffffff" text="#000000"><div class="im">
On 04/05/2012 06:55 AM, Garth Tissington wrote:
<blockquote type="cite">
<div dir="ltr"><font>Hello,</font>
<div><font><br>
</font></div>
<div><font>I've looked through all the references I can find
related to output-selector - including
output-selector-tests.c. I still cannot get it to work.</font></div>
<div><font><br>
</font></div>
<div><font>I'm using this pipline</font></div>
<div><font><br>
</font></div>
<div><b style="font-family:'Times New Roman';font-size:medium"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">videotestsrc
i</span><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">s-live=true num-buffers=30 !</span></b></div>
<div><b style="font-family:'Times New Roman';font-size:medium"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> ffmpegcolorspace !</span></b></div>
<div><b style="font-family:'Times New Roman';font-size:medium"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> timeoverlay !</span></b></div>
<div>
<b style="font-family:'Times New Roman';font-size:medium"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">
ffmpegcolorspace !</span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> output-selector name=os </span></b></div>
<div><b style="font-family:'Times New Roman';font-size:medium"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> os. ! queue ! ffmpegcolorspace !
autovideosink </span></b></div>
<div><b style="font-family:'Times New Roman';font-size:medium"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> os.</span></b><b style="font-family:'Times New Roman';font-size:medium"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">
! qu</span></b><span style="font-family:Arial;font-size:15px;white-space:pre-wrap">eue ! ffmpegcolorspace !
autovideosink</span></div>
<div><font><br>
</font></div>
<div><br>
</div>
<div><br>
</div>
<div>after the pipeline is assembled I issue </div>
<div><br>
</div>
<div><br>
</div>
<div>
<pre style="font-size:13px;margin-bottom:0px;margin-top:0px;padding:0px"><code>g_object_get (G_OBJECT (sel), "active-pad", &srcpad1, NULL);</code></pre>
<pre style="font-size:13px;margin-bottom:0px;margin-top:0px;padding:0px"><code>
</code></pre>
<pre style="font-size:13px;margin-bottom:0px;margin-top:0px;padding:0px"><code>and</code></pre>
<pre style="font-size:13px;margin-bottom:0px;margin-top:0px;padding:0px"></pre>
<pre style="font-size:13px;margin-bottom:0px;margin-top:0px;padding:0px"><code></code><pre style="padding:0px;margin-top:0px;margin-bottom:0px"><code>gst_element_set_state (pipeline, GST_STATE_PLAYING);</code></pre>
</pre>
</div>
<div><font><br>
</font></div>
<div><font>Everything works fine if I take the output selector
out. However, with the output-selector there one videosink
is displayed but the video is not updates. just a static
snap shot. After num-buffers=30 expires the pipeline end.
and the application closes normally. So, the clock appears
to be running, one frame got through to the sink but no
more.</font></div>
</div>
</blockquote></div>
My gut feeling is that the sinks wait for prereoll buffers, which
they should not as you use a livesrc, could you <br>
1.) try that with a v4l2src<br>
2.) try sync=false on the sinks?<br>
This is just to narrow it down. Also run your app with
GST_DEBUG="*:2" to check if gstreamer posts some warnings.<br>
<br>
Stefan<br>
<blockquote type="cite"><div class="im">
<div dir="ltr">
<div><font><br>
</font></div>
<div>Interestingly<font> if I change num-buffers to 90 then the
program hangs and does not exit after 3 seconds as expected.
Does this mean the queue is full?</font></div>
<div><font><br>
</font></div>
<div><font>Any ideas?</font></div>
<div><font><br>
</font></div>
<div><font>Anyone know a real world example where
output-selector is being used. </font></div>
<div><font><br>
</font></div>
<div><font>Thanks,</font></div>
<div><font><br>
</font></div>
<div>Garth Tissington
<div>
<div>250 891 4797</div>
<div>---</div>
<div>
<div><br>
</div>
<div>Given sufficient thrust pigs fly just fine.</div>
</div>
</div>
<br>
</div>
</div>
</div><pre><fieldset></fieldset>
_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>----<br>Héctor Canto<br><br>
</div>