[linux-audio-user] gstreamer, rhythmbox, and mp3

Florian Schmidt mista.tapas at gmx.net
Thu Feb 8 09:28:41 EST 2007


On Thursday 08 February 2007, Victor Roetman wrote:
> Florian Schmidt wrote:
> > gst-launch-0.10 playbin uri=file:///path/to/some/media/file
>
> So how can I then route this directly to a wav file so I can see what
> it's doing?

You can't afaik. The playbin is as automatic as possible. It just offers 
playback of most media types gstreamer can handle. If you want finer grained 
control you will have to assemble the pipeline yourself.

gst-inspect-0.10 playbin

tells me though that it has an audio-sink property which is set to NULL which 
means it uses whatever the default specifies. I suppose you can override 
that. Maybe not from gst-launch, but easily enough from within C code (the 
audio-sink property takes an audiosink object, not a string)..

If you just run 

gst-inspect-0.10

you get a list of plugins which includes a filesink. 

> Also, how can I know exactly which plugin it's using when playing the file?

I'm in no way a gstreamer expert though, so maybe it is possible to get that 
info out of the playbin..

But the gst-launch-0.10 command can launch more complex pipelines, too

AH the guys in #gstreamer were nice enough to help me out with a pipeline that 
writes into an audio file:

15:09 < MikeS> tapas: but maybe you actually want something more like 
               "gst-launch file:///path/to/some/media/file ! decodebin ! 
               audioconvert ! audioresample ! 
               "audio/x-raw-int,width=16,depth=16,channels=2,rate=44100" ! 
               filesink location=out.raw

Which writes the audio stream of the media file (be it a movie or a soundfile) 
to the out.raw file..

>
> I still think it's clipping and I want to find out where in the pipeline
> this is happening.
>
> > It even automagically uses jack if it's running :) (this is on ubuntu
> > feisty though)
>
> Wow!  That's almost enough for me to move my system forward.  Or maybe
> try the feisty gstreamer source packages on edgy.

Flo

-- 
Palimm Palimm!
http://tapas.affenbande.org



More information about the Linux-audio-user mailing list