<div dir="ltr">Hi, Aurelien:<br><br>&nbsp;&nbsp;&nbsp; Thanks guys. I tried the way Aurelien mentioned and found out that when I play separate video or audio streams -- that was OK. But if I combine the two gst-launch command, error occurs. I think maybe this is a bug with decodebin or gst-launch. According to the error message, seems that the reason is trying to play the stream while the pipeline was not linked completely.<br>
<br>&nbsp;&nbsp;&nbsp; Next I am going to upgrade the gstreamer, including all plugin packages, then try again. Thanks for all helps.<br><br>Eric Zhang<br><br><div class="gmail_quote">2008/9/9 Aurelien Grimaud <span dir="ltr">&lt;<a href="mailto:gstelzz@yahoo.fr">gstelzz@yahoo.fr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Do you use CVS Head ?<br>
Have you got video with gst-launch -v rtspsrc
location=&quot;rtsp://localhost/test.mp4&quot; debug=1 ! &quot;application/x-rtp,
media=video&quot; ! decodebin ! xvimagesink<br>
Have you got audio with gst-launch -v rtspsrc
location=&quot;rtsp://localhost/test.mp4&quot; debug=1 ! &quot;application/x-rtp,
media=audio&quot; ! decodebin ! audioconvert ! alsasink<br>
<br>
To figure out which are the differences between two pipelines (playbin/decodebin), one can dump dot files and draw graphs.<br>
<br>
export GST_DEBUG_DUMP_DOT_DIR=/tmp<br>
gst-launch ...<br>
dot files will be generated on every pipeline state change.(since gstreamer-0.10.18)<br>
<br>
Aurelien<br><br>--- En date de&nbsp;: <b>Mar 9.9.08, Eric Zhang <i>&lt;<a href="mailto:nicolas.m.zhang@gmail.com" target="_blank">nicolas.m.zhang@gmail.com</a>&gt;</i></b> a écrit&nbsp;:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
De: Eric Zhang &lt;<a href="mailto:nicolas.m.zhang@gmail.com" target="_blank">nicolas.m.zhang@gmail.com</a>&gt;<br>Objet: Re: [gst-devel] Decodebin doesn&#39;t work whereas playbin works, why?<br>À: &quot;Discussion of the development of GStreamer&quot; &lt;<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>
Date: Mardi 9 Septembre 2008, 3h14<div><div></div><div class="Wj3C7c"><br><br><div><div dir="ltr">Hi, Jens:<br><br>&nbsp;&nbsp;&nbsp; Thanks for your reply but it doesn&#39;t work. Rtspsrc isn&#39;t like http-src element, the video &amp; audio stream are separated in it while not been separated in any demux element. So that means there are 2 streams coming from rtspsrc and each of them should be connected to a decodebin.<br>

<br>&nbsp;&nbsp;&nbsp; I tried the command you mentioned, the result is - nothing happened. The output is:<br><br>==============================<br>eric@eric-desktop:~$ gst-launch rtspsrc location=&quot;rtsp://localhost/test.mp4&quot; protocols=1 ! decodebin name=d ! queue ! ffmpegcolorspace ! xvimagesink&nbsp; d. ! queue ! audioconvert ! alsasink<br>

Setting pipeline to PAUSED ...<br>Pipeline is live and does not need PREROLL ...<br>Setting pipeline to PLAYING ...<br>New clock: GstSystemClock<br>==============================<br><br>Eric Zhang<br><br><br><div class="gmail_quote">

2008/9/8 Jens Persson <span dir="ltr">&lt;<a rel="nofollow" href="mailto:xerxes2@gmail.com" target="_blank">xerxes2@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hmm, try this instead:<br>
gst-launch rtspsrc location=&quot;rtsp://localhost/test.mp4&quot; protocols=1 !<br>
decodebin name=d ! queue ! ffmpegcolorspace ! xvimagesink &nbsp;d. ! queue !<br>
audioconvert ! alsasink<br>
<br>
Greets Jens<br>
<div><div></div><div><br>
Eric Zhang wrote:<br>
&gt; Hi, gstreamer:<br>
&gt;<br>
&gt; &nbsp; &nbsp; Recently, I wanna play movies from a rtsp server. I installed<br>
&gt; DarwinStreamServer on my laptop and use command line:<br>
&gt;<br>
&gt; &nbsp; &nbsp; gst-launch playbin uri=&quot;rtsp://localhost/test.mp4&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; It works well. But if I use decodebin instead of playbin, error<br>
&gt; occurs:<br>
&gt;<br>
&gt; &nbsp; &nbsp; gst-launch rtspsrc location=&quot;rtsp://localhost/test.mp4&quot;<br>
&gt; protocols=1 name=d d. ! decodebin ! queue ! ffmpegcolorspace !<br>
&gt; xvimagesink d. ! decodebin ! queue ! audioconvert ! alsasink<br>
&gt;<br>
&gt; &nbsp; &nbsp; The error message is:<br>
&gt;<br>
&gt; =========================<br>
&gt; Setting pipeline to PAUSED ...<br>
&gt; Pipeline is live and does not need PREROLL ...<br>
&gt; Setting pipeline to PLAYING ...<br>
&gt; New clock: GstSystemClock<br>
&gt; ERROR: from element /pipeline0/d/udpsrc0: Internal data flow error.<br>
&gt; Additional debug info:<br>
&gt; gstbasesrc.c(2240): gst_base_src_loop (): /pipeline0/d/udpsrc0:<br>
&gt; streaming task paused, reason not-linked (-1)<br>
&gt; Execution ended after 117342031 ns.<br>
&gt; Setting pipeline to PAUSED ...<br>
&gt; Setting pipeline to READY ...<br>
&gt; Setting pipeline to NULL ...<br>
&gt; FREEING pipeline ...<br>
&gt; ==================================<br>
&gt;<br>
&gt; &nbsp; &nbsp; I noticed sometimes decodebin works but mostly it fails. What<br>
&gt; tricks does playbin do to make it work? I skimed the source codes of<br>
&gt; playbin and found out that it also use decodebin inside.<br>
&gt;<br>
&gt; &nbsp; &nbsp; Thanks a lot. I really appreciate your suggestions.<br>
&gt;<br>
&gt; Eric Zhang<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>
&gt; <a rel="nofollow" href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a rel="nofollow" href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>
</div><pre>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s<br>challenge<br>Build the coolest Linux based applications with Moblin SDK &amp; win great<br>
prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a></pre>
<pre>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</pre></div></div></blockquote></td></tr></tbody></table><br>




      <br>-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>