|Version 1 (modified by robs, 4 years ago) (diff)|
From December 2012, FFmpeg supports high-quality audio resampling using the SoX Resampler library ('libsoxr').
To build FFmpeg with libsoxr, it must first be installed. On unix-like systems, it may be available as an installable package from your OS provider; otherwise, libsoxr should be installed from source code downloaded from http://sourceforge.net/projects/soxr -- either a versioned tar-file, or a git 'clone'. Once downloaded (and unpacked, in the case of a tar file), it should be built and installed according to the instructions in the INSTALL file (included in the source distribution).
With libsoxr installed, ./configure --enable-libsoxr configures the FFmpeg to use libsoxr.
To invoke ffmpeg with the SoX Resampler, the option '-af aresample=resampler=soxr' should be given; e.g.
ffmpeg -i my-48000.wav -af aresample=resampler=soxr -ar 44100 my-44100.wav
In case of need to change the default resampling bit precision or preserved bandwidth, see the ffmpeg manual page 'ffmpeg-resampler'.