[gst-devel] How to use mad to play mp3?

Thijs Vermeir thijsvermeir at gmail.com
Sat Sep 15 09:47:54 CEST 2007


On 9/15/07, xiaofeng xu <kilyxu at gmail.com> wrote:
> Hi,
> How to use mad to play mp3?
> I can use this:
>  gst-launch-0.10 filesrc location=baihu.mp3 ! mad ! audioconvert !
> audioresample ! alsasink
> but I don't know how to write it in C?
> Who can give me an example?

Please look at the hello world example[1], it should be really easy to
replace the ogg/vorbis elements with the  mad element.


[1] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html#section-helloworld

More information about the gstreamer-devel mailing list