Thanks Tim.<br><br>Putting queues still does not help. I am attaching the log with the queues in place.<br><br> I do not see the pipeline reaching PLAYING state. The pipeline <i>hangs</i> and I need to kill it using Ctrl-C. As soon as I kill it, I see <span style="color: rgb(153, 51, 0);">&quot;ERROR: pipeline doesn&#39;t want to preroll&quot;<font color="#000000">. See line number 44930 of the attached logs.<br>
<br>My suspicion is that mpgdemux does not send no-more-pads and hence decodebin does not change state to PLAYING which means filesink does not preroll. <br><br>Has anyone used mpgdemux with decodebin and filesink?<br><br>
thanks and regards<br>Mohit<br></font></span><br><div class="gmail_quote">On Thu, Feb 28, 2008 at 6:03 PM, Tim Müller &lt;<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, 2008-02-28 at 17:44 +0530, Mohit Garg wrote:<br>
<br>
&gt; I am using gstreamer to work with MPEG-1 streams. However, I am unable<br>
&gt; to get it working. The pipeline hangs and does not go to a PLAYING<br>
&gt; state. I suspect the issues to be mpegdemux not sending no_more_pads()<br>
&gt; and hence decodebin not being able to change stage to PLAYING which<br>
&gt; causes filesink to be stuck in PAUSED and hence, not coming out of<br>
&gt; preroll-ing.<br>
&gt;<br>
&gt; e.g. try this pipeline:<br>
&gt; gst-launch -v gnomevfssrc<br>
&gt; location=&quot;<a href="http://samples.mplayerhq.hu/MPEG1/mpeg_demuxer_crash.mpg" target="_blank">http://samples.mplayerhq.hu/MPEG1/mpeg_demuxer_crash.mpg</a>&quot; !<br>
&gt; decodebin name=d ! filesink location=aud d. ! filesink location=vid<br>
<br>
</div>You need queues here, ie.<br>
<br>
&nbsp;decodebin name=d &nbsp;\<br>
 &nbsp; &nbsp;d. ! queue ! filesink location=audio.dump &nbsp;\<br>
 &nbsp; &nbsp;d. ! queue ! filesink location=video.dump<br>
<br>
(you can&#39;t really assume that the first one will be an audio stream and<br>
the second a video stream though; you can use mpegdemux/dvddemux and<br>
specify that pad names directly, however, but then you also need to know<br>
which streams exist to get the right pad names; alternatively, if you<br>
know the format of the audio, you can add filter caps before the queue<br>
and make it pick the right pad that way).<br>
<br>
Cheers<br>
<font color="#888888">&nbsp;-Tim<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
&gt; Questions:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Is this a known bug? If yes, is there a known/recommended workaround?<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; mpegdemux has a RANK of secondary and I was expecting that it would work straightaway while ffdemux_mpeg has a rank of NONE and hence decodebin does not pick it up. How is the RANK of elements decided?<br>
&gt; (I am using gst-plugins-ugly-0.10.6)<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>&quot;We know we have a duty to hope&quot; -- Sunita Narain, Environmentalist<br><br>regards<br>Mohit Garg<br><br>Personal Homepage: <a href="http://www.mohrahit.in">http://www.mohrahit.in</a><br>
Social Work: <a href="http://www.noragging.com">http://www.noragging.com</a>