Resampling audio from 88200 to 96000 samples per second

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Nov 23 11:15:04 PST 2012


On Fri, 2012-11-23 at 11:02 -0800, Nick wrote:

> I've tried the following:
> 
> % gst-launch-0.10 filesrc location=Song.flac ! decodebin2 ! audioconvert !
> audioresample ! alsasink, device=hw:0,0 -v
> 
> It produces sound but still at 48000 Hz rather than the desired 96000 Hz.
> 
> One thing that puzzles me is how the pipeline knows that the output should
> be 96000 samples/sec.  I tried many things:

Sorry, what I actually meant was:

Try:  ... ! decodebin2 ! audioconvert ! audioresample !
audio/x-raw-int,rate=96000 ! alsasink ...

Cheers 
 -Tim



More information about the gstreamer-devel mailing list