GStreamer queue issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GStreamer queue issue

Jason Yang
Dear all,

I was trying to use GStreamer(0.10.26) to play a mpg file under the latest version of Ubuntu.

I used:
gst-launch filesrc location=test.mpg ! mpegdemux ! mpeg2dec ! ffmpegcolorspace ! ximagesink

The video can be perfectly played. Then I tried to use queue to make audio run as the manual of gst-launch told me:
gst-launch filesrc location=test.mpg ! mpegdemux name=demuxer demuxer. ! queue ! mpeg2dec ! ffmpegcolorspace ! ximagesink demuxer. ! queue ! mad ! audioconvert ! audioresample ! alsasink

Then GStreamer told me queue can't link with the decoder, prompting:
WARNING: erroneous pipeline: could not link queue0 to mpeg2dec0.

I wonder why this is not working as the manual said. I suppose it is a pretty normal way to play video with audio together. Or Could I have done something wrong to make GStreamer crazy? If I did, please let me know where I did wrong, so I can make it work.

Thank you very much for all the replies.
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer queue issue

신승배
Hi,

Try pipeline below, (added explicit demuxer pad)

gst-launch filesrc location=test.mpg ! mpegdemux name=demuxer demuxer.video_00 !
queue ! mpeg2dec ! ffmpegcolorspace ! ximagesink demuxer.audio_00 ! queue ! mad !
audioconvert ! audioresample ! alsasink


2010/3/22 Jason Yang <[hidden email]>

Dear all,

I was trying to use GStreamer(0.10.26) to play a mpg file under the latest
version of Ubuntu.

I used:
gst-launch filesrc location=test.mpg ! mpegdemux ! mpeg2dec !
ffmpegcolorspace ! ximagesink

The video can be perfectly played. Then I tried to use queue to make audio
run as the manual of gst-launch told me:
gst-launch filesrc location=test.mpg ! mpegdemux name=demuxer demuxer. !
queue ! mpeg2dec ! ffmpegcolorspace ! ximagesink demuxer. ! queue ! mad !
audioconvert ! audioresample ! alsasink

Then GStreamer told me queue can't link with the decoder, prompting:
WARNING: erroneous pipeline: could not link queue0 to mpeg2dec0.

I wonder why this is not working as the manual said. I suppose it is a
pretty normal way to play video with audio together. Or Could I have done
something wrong to make GStreamer crazy? If I did, please let me know where
I did wrong, so I can make it work.

Thank you very much for all the replies.
--
View this message in context: http://n4.nabble.com/GStreamer-queue-issue-tp1677638p1677638.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel