<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Do you use CVS Head ?<br>
Have you got video with gst-launch -v rtspsrc
location="rtsp://localhost/test.mp4" debug=1 ! "application/x-rtp,
media=video" ! decodebin ! xvimagesink<br>
Have you got audio with gst-launch -v rtspsrc
location="rtsp://localhost/test.mp4" debug=1 ! "application/x-rtp,
media=audio" ! 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 : <b>Mar 9.9.08, Eric Zhang <i><nicolas.m.zhang@gmail.com></i></b> a écrit :<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">De: Eric Zhang <nicolas.m.zhang@gmail.com><br>Objet: Re: [gst-devel] Decodebin doesn't work whereas playbin works, why?<br>À: "Discussion of the development of GStreamer" <gstreamer-devel@lists.sourceforge.net><br>Date: Mardi 9 Septembre 2008, 3h14<br><br><div id="yiv1342305937"><div dir="ltr">Hi, Jens:<br><br> Thanks for your reply but it doesn't work. Rtspsrc isn't like http-src element, the video & 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> I tried the command you mentioned, the result is - nothing happened. The output is:<br><br>==============================<br>eric@eric-desktop:~$ gst-launch rtspsrc location="rtsp://localhost/test.mp4" protocols=1 ! decodebin name=d ! queue ! ffmpegcolorspace ! xvimagesink 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"><<a rel="nofollow" target="_blank" href="mailto:xerxes2@gmail.com">xerxes2@gmail.com</a>></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="rtsp://localhost/test.mp4" protocols=1 !<br>
decodebin name=d ! queue ! ffmpegcolorspace ! xvimagesink d. ! queue !<br>
audioconvert ! alsasink<br>
<br>
Greets Jens<br>
<div><div></div><div class="Wj3C7c"><br>
Eric Zhang wrote:<br>
> Hi, gstreamer:<br>
><br>
> Recently, I wanna play movies from a rtsp server. I installed<br>
> DarwinStreamServer on my laptop and use command line:<br>
><br>
> gst-launch playbin uri="rtsp://localhost/test.mp4"<br>
><br>
> It works well. But if I use decodebin instead of playbin, error<br>
> occurs:<br>
><br>
> gst-launch rtspsrc location="rtsp://localhost/test.mp4"<br>
> protocols=1 name=d d. ! decodebin ! queue ! ffmpegcolorspace !<br>
> xvimagesink d. ! decodebin ! queue ! audioconvert ! alsasink<br>
><br>
> The error message is:<br>
><br>
> =========================<br>
> Setting pipeline to PAUSED ...<br>
> Pipeline is live and does not need PREROLL ...<br>
> Setting pipeline to PLAYING ...<br>
> New clock: GstSystemClock<br>
> ERROR: from element /pipeline0/d/udpsrc0: Internal data flow error.<br>
> Additional debug info:<br>
> gstbasesrc.c(2240): gst_base_src_loop (): /pipeline0/d/udpsrc0:<br>
> streaming task paused, reason not-linked (-1)<br>
> Execution ended after 117342031 ns.<br>
> Setting pipeline to PAUSED ...<br>
> Setting pipeline to READY ...<br>
> Setting pipeline to NULL ...<br>
> FREEING pipeline ...<br>
> ==================================<br>
><br>
> I noticed sometimes decodebin works but mostly it fails. What<br>
> tricks does playbin do to make it work? I skimed the source codes of<br>
> playbin and found out that it also use decodebin inside.<br>
><br>
> Thanks a lot. I really appreciate your suggestions.<br>
><br>
> Eric Zhang<br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the world<br>
> <a rel="nofollow" target="_blank" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a rel="nofollow" target="_blank" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
> <a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
><br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a rel="nofollow" target="_blank" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" target="_blank" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">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's<br>challenge<br>Build the coolest Linux based applications with Moblin SDK & win great<br>prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br>http://moblin-contest.org/redirect.php?banner_id=100&url=/</pre><pre>_______________________________________________<br>gstreamer-devel mailing list<br>gstreamer-devel@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br></pre></blockquote></td></tr></table><br>