[gst-devel] Help! a very simple question..
Kalle Vahlman
kalle.vahlman at gmail.com
Wed Feb 27 08:15:34 CET 2008
2008/2/27, Yue Li <liyue99 at gmail.com>:
> Hi,
Hi!
> I just tried to decode a mpeg file like below:
>
> gst-launch filesrc location=mpeg2.mpg ! mpegdemux name=demux video_00!
> { queue ! mpeg2dec ! xvideosink }
1. You don't need to specify the pad name (video_00)
2. xvideosink doesn't exist, it's xvimagesink.
3. the {} notation isn't necessary
4. when decoding just the video, the queue isn't neccessary (and seems
like it fails to link with mpeg2dec)
So try this instead:
gst-launch -v filesrc location=mpeg2.mpg ! mpegdemux ! mpeg2dec ! xvimagesink
With audio:
gst-launch -v filesrc location=mpeg2.mpg ! mpegdemux name=demux !
mpeg2dec ! queue ! xvimagesink demux. ! mad ! queue ! audioconvert !
alsasink
(for some reason the queues do not work if they are before the decoder
elements, I wonder why...?)
Hope this helps.
--
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
More information about the gstreamer-devel
mailing list