Hi, gstreamer:
Recently, I wanna play movies from a rtsp server. I installed DarwinStreamServer on my laptop and use command line:
gst-launch playbin uri="rtsp://localhost/test.mp4"
It works well. But if I use decodebin instead of playbin, error occurs:
gst-launch rtspsrc location="rtsp://localhost/test.mp4"
protocols=1 name=d d. ! decodebin ! queue ! ffmpegcolorspace !
xvimagesink d. ! decodebin ! queue ! audioconvert ! alsasink
The error message is: ========================= Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /pipeline0/d/udpsrc0: Internal data flow error. Additional debug info: gstbasesrc.c(2240): gst_base_src_loop (): /pipeline0/d/udpsrc0: streaming task paused, reason not-linked (-1) Execution ended after 117342031 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... FREEING pipeline ... ================================== I noticed sometimes decodebin works but mostly it fails. What tricks does playbin do to make it work? I skimed the source codes of playbin and found out that it also use decodebin inside. Thanks a lot. I really appreciate your suggestions. Eric Zhang ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hmm, try this instead:
gst-launch rtspsrc location="rtsp://localhost/test.mp4" protocols=1 ! decodebin name=d ! queue ! ffmpegcolorspace ! xvimagesink d. ! queue ! audioconvert ! alsasink Greets Jens Eric Zhang wrote: > Hi, gstreamer: > > Recently, I wanna play movies from a rtsp server. I installed > DarwinStreamServer on my laptop and use command line: > > gst-launch playbin uri="rtsp://localhost/test.mp4" > > It works well. But if I use decodebin instead of playbin, error > occurs: > > gst-launch rtspsrc location="rtsp://localhost/test.mp4" > protocols=1 name=d d. ! decodebin ! queue ! ffmpegcolorspace ! > xvimagesink d. ! decodebin ! queue ! audioconvert ! alsasink > > The error message is: > > ========================= > Setting pipeline to PAUSED ... > Pipeline is live and does not need PREROLL ... > Setting pipeline to PLAYING ... > New clock: GstSystemClock > ERROR: from element /pipeline0/d/udpsrc0: Internal data flow error. > Additional debug info: > gstbasesrc.c(2240): gst_base_src_loop (): /pipeline0/d/udpsrc0: > streaming task paused, reason not-linked (-1) > Execution ended after 117342031 ns. > Setting pipeline to PAUSED ... > Setting pipeline to READY ... > Setting pipeline to NULL ... > FREEING pipeline ... > ================================== > > I noticed sometimes decodebin works but mostly it fails. What > tricks does playbin do to make it work? I skimed the source codes of > playbin and found out that it also use decodebin inside. > > Thanks a lot. I really appreciate your suggestions. > > Eric Zhang > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi, Jens:
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. I tried the command you mentioned, the result is - nothing happened. The output is: ============================== eric@eric-desktop:~$ gst-launch rtspsrc location="rtsp://localhost/test.mp4" protocols=1 ! decodebin name=d ! queue ! ffmpegcolorspace ! xvimagesink d. ! queue ! audioconvert ! alsasink Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock ============================== Eric Zhang
2008/9/8 Jens Persson <[hidden email]> Hmm, try this instead: ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Ok, but it might give you some more clues. Perhaps like this:
gst-launch rtspsrc location="rtsp://localhost/test.mp4" protocols=1 name=d ! decodebin ! queue ! ffmpegcolorspace ! xvimagesink d. ! decodebin ! queue ! audioconvert ! alsasink I've never used rtsp before. :D Greets Jens Eric Zhang wrote: > Hi, Jens: > > 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. > > I tried the command you mentioned, the result is - nothing > happened. The output is: > > ============================== > eric@eric-desktop:~$ gst-launch rtspsrc > location="rtsp://localhost/test.mp4" protocols=1 ! decodebin name=d ! > queue ! ffmpegcolorspace ! xvimagesink d. ! queue ! audioconvert ! > alsasink > Setting pipeline to PAUSED ... > Pipeline is live and does not need PREROLL ... > Setting pipeline to PLAYING ... > New clock: GstSystemClock > ============================== > > Eric Zhang ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
And perhaps move the queues one step back:
gst-launch rtspsrc location="rtsp://localhost/test.mp4" protocols=1 name=d ! queue ! decodebin ! ffmpegcolorspace ! xvimagesink d. ! queue ! decodebin ! audioconvert ! alsasink Greets Jens Jens Persson wrote: > Ok, but it might give you some more clues. Perhaps like this: > > gst-launch rtspsrc location="rtsp://localhost/test.mp4" protocols=1 > name=d ! decodebin ! queue ! ffmpegcolorspace ! xvimagesink d. ! > decodebin ! queue ! audioconvert ! alsasink > > I've never used rtsp before. :D > > Greets Jens > > Eric Zhang wrote: >> Hi, Jens: >> >> 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. >> >> I tried the command you mentioned, the result is - nothing >> happened. The output is: >> >> ============================== >> eric@eric-desktop:~$ gst-launch rtspsrc >> location="rtsp://localhost/test.mp4" protocols=1 ! decodebin name=d ! >> queue ! ffmpegcolorspace ! xvimagesink d. ! queue ! audioconvert ! >> alsasink >> Setting pipeline to PAUSED ... >> Pipeline is live and does not need PREROLL ... >> Setting pipeline to PLAYING ... >> New clock: GstSystemClock >> ============================== >> >> Eric Zhang > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Eric Zhang-6
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi, Aurelien:
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. Next I am going to upgrade the gstreamer, including all plugin packages, then try again. Thanks for all helps. Eric Zhang 2008/9/9 Aurelien Grimaud <[hidden email]>
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |