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);">"ERROR: pipeline doesn't want to preroll"<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 <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>> 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>
> I am using gstreamer to work with MPEG-1 streams. However, I am unable<br>
> to get it working. The pipeline hangs and does not go to a PLAYING<br>
> state. I suspect the issues to be mpegdemux not sending no_more_pads()<br>
> and hence decodebin not being able to change stage to PLAYING which<br>
> causes filesink to be stuck in PAUSED and hence, not coming out of<br>
> preroll-ing.<br>
><br>
> e.g. try this pipeline:<br>
> gst-launch -v gnomevfssrc<br>
> location="<a href="http://samples.mplayerhq.hu/MPEG1/mpeg_demuxer_crash.mpg" target="_blank">http://samples.mplayerhq.hu/MPEG1/mpeg_demuxer_crash.mpg</a>" !<br>
> decodebin name=d ! filesink location=aud d. ! filesink location=vid<br>
<br>
</div>You need queues here, ie.<br>
<br>
decodebin name=d \<br>
d. ! queue ! filesink location=audio.dump \<br>
d. ! queue ! filesink location=video.dump<br>
<br>
(you can'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"> -Tim<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
> Questions:<br>
> Is this a known bug? If yes, is there a known/recommended workaround?<br>
> 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>
> (I am using gst-plugins-ugly-0.10.6)<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>"We know we have a duty to hope" -- 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>