[gst-devel] How to use mad to play mp3?
karmendra jain
karmendra.jain at gmail.com
Mon Oct 1 14:37:43 CEST 2007
make a pipeline with the below 3 elemets ..
use the sample ogg player given to change the elements
************************** change these*/********************
pipeline = gst_pipeline_new ("audio-player");
source = gst_element_factory_make ("filesrc", "file-source");
decoder = gst_element_factory_make ("mad", "mp3-decoder");
conv = gst_element_factory_make ("audioconvert", "converter");
resampler - gst_element_factory_make("audioresmple", "sampler");
sink = gst_element_factory_make ("alsasink", "alsa-output");
***************************************
thats all
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?
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
More information about the gstreamer-devel
mailing list