[LAU] sample rate converter?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Friday, September 27, 2013 - 2:10 pm

This is a multi-part message in MIME format.
--------------080501050601040708030402
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On Fri, Sep 27, 2013 at 09:37:00AM -0400, Grekim Jennings wrote:

>/ I need to convert 24-bit 48000 .wav to 44100 .wav.
/>/ What's your go-to converter for this?
/>/ Quality would be my first consideration,
/>/ 2nd would be ease of install or build,
/>/ 3rd would be I have a preference for command line.
/>/ This would be for off-line use.
/
I use zresample wich comes as an example app with the zita-resampler
library. Apart from resampling it can also change the sample format,
and add dither if the output is 16-bit. It handles any number of
channels.

>/ zresample --help
/
zresample 1.4.0
(C) 2007-2012 Fons Adriaensen >
Usage: zresample .
Options:
Display this text: --help
Output file type: --caf, --wav, --amb
Output sample rate: --rate
Output sample format: --16bit, --24bit, --float
Dither type (16 bit): --rec, --tri, --lips
Add zero padding : --pad
The default output file format is wav, 24-bit, no dithering.
Integer output formats are clipped, float output is not.

Ciao,

--
FA

Thanks Fons. Do you have a recommendation for how much headroom to leave
before the conversion, and if you do clip during the conversion is there
any sort of warning? I used to leave around 1.5 dB. The way I used to
go about this was to apply all limiting to the 24-bit 48000 kHz track,
then SR convert, then normalize (to ~ -0.3 dB) or set a final level, and
finally dither/quantize.

--------------080501050601040708030402
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On Fri, Sep 27, 2013 at 09:37:00AM -0400, Grekim Jennings wrote:

> I need to convert 24-bit 48000 .wav to 44100 .wav.

I use zresample wich comes as an example app with the zita-resampler
library. Apart from resampling it can also change the sample format,
and add dither if the output is 16-bit. It handles any number of
channels.

> zresample --help

zresample 1.4.0
(C) 2007-2012 Fons Adriaensen <fons at linuxaudio.org>
Usage: zresample <options> <input file> <output file>.
Options:
Display this text: --help
Output file type: --caf, --wav, --amb
Output sample rate: --rate <sample rate>
Output sample format: --16bit, --24bit, --float
Dither type (16 bit): --rec, --tri, --lips
Add zero padding : --pad
The default output file format is wav, 24-bit, no dithering.
Integer output formats are clipped, float output is not.

Ciao,

--
FA

Thanks Fons. Do you have a recommendation for how much headroom to leave
before the conversion, and if you do clip during the conversion is there
any sort of warning? I used to leave around 1.5 dB. The way I used to
go about this was to apply all limiting to the 24-bit 48000 kHz track,
then SR convert, then normalize (to ~ -0.3 dB) or set a final level, and
finally dither/quantize.

--------------080501050601040708030402--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] sample rate converter?, Grekim Jennings, (Fri Sep 27, 2:10 pm)
Re: [LAU] sample rate converter?, Fons Adriaensen, (Fri Sep 27, 9:15 pm)
Re: [LAU] sample rate converter?, Felix Homann, (Fri Sep 27, 4:57 pm)