[LAD] Resampling: SOX vs FFmpeg

David Runge dave at sleepmap.de
Thu May 23 11:59:56 CEST 2019

On 2019-05-23 10:58:54 (+0200), Louigi Verona wrote:
> There are several questions here.
> 1. Which tool to use for transcoding. Should it be SoX, or FFmpeg, or
> something else? A lot of the info out there seems to favor SoX, but a lot
> of that info is pretty old.
I'm currently maintaining sox for Arch Linux and I would suggest to use
ffmpeg instead. It's by far the more active and maintained upstream.

Sox is pretty much dead by now (hasn't seen a release since 2015). The
latest (two year old) fixes for pretty extreme CVEs [1] haven't even
found their way into a latest stable release [2] anymore and getting no
answer on such a request doesn't exactly nurture my belief in the
project. However, the patches have been applied on master.

Looking at the current list of CVEs, I see, that it has gained yet
another four CVEs this year alone, that I have to add to the list of
This is literally nothing you would want to put into an automated
pipeline (but it's also your developer's/ your call ;-) ).

> 2. Does it make sense to resample to 44100 or to 48000? If it were opus,
> the answer if simple: 48000, because that's what the opus spec actually
> recommends. There is no such recommendation for mp3 files. Also, upsampling
> is not an innocent procedure and the converter has to be of high quality as
> well.
Not an expert, but I wouldn't recommend upsampling.


[1] https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=sox
[2] https://sourceforge.net/p/sox/mailman/message/36432794/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.linuxaudio.org/archives/linux-audio-dev/attachments/20190523/cdb41cec/attachment.sig>

More information about the Linux-audio-dev mailing list