how to crate pipe if usb sound card support mp3 decoder when using gst-launch?
Sebastian Dröge
sebastian at centricular.com
Wed Nov 27 00:29:35 PST 2013
On Mi, 2013-11-27 at 10:32 +0800, Diaz Soho wrote:
> Hi all,
>
> If I use a USB sound card that has support mp3 decoder,
> then how to crate pipe when I use gst-launch to play the mp3 audio file?
> Since as my understanding,
> gst-launch will output raw audio format for sound card,
> when the effort of audio decode can be done by sound card,
> can gst-launch be used for playing mp3 audio file?
Please don't do cross-posting to multiple mailing lists if not really
required.
To answer your questions, yes that's possible. Does your ALSA driver for
that USB soundcard support MP3? Are you using PulseAudio or ALSA
directly?
In general just using playbin without providing any audio sink should
automatically let the MP3 be decoded on the soundcard if you use a
recent GStreamer version. And a simple
filesrc location=file.mp3 ! mpegaudioparse ! alsasink
or
filesrc location=file.mp3 ! mpegaudioparse ! pulsesink
for example should work too.
--
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131127/7d3e99ad/attachment.pgp>
More information about the gstreamer-devel
mailing list