[LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Louigi Verona
Hey everyone! I need advice on resampling. To give you context, I am working at SoundCloud, and one of the current projects is to refactor the transcoding pipeline. And proper resampling tools is a question that keeps coming up. One of the pipelines takes the uploaded file and transcodes it into

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread David Runge
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

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Paul Davis
On Thu, May 23, 2019 at 2:59 AM Louigi Verona wrote: > Hey everyone! > > I need advice on resampling. > > To give you context, I am working at SoundCloud, and one of the current > projects is to refactor the transcoding pipeline. And proper resampling > tools is a question that keeps coming up. >

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Louigi Verona
"In terms of quality for resampling, this is the canonical information source: http://src.infinitewave.ca/"; Yep, was looking at that. But would appreciate any additional insight, since I am not entirely sure how to read that. For instance, if I compare SoX to FFmpeg, yes, SoX looks way better in

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Paul Davis
The good news is that ffmpeg appears to include the soxr algorithm anyway. On Thu, May 23, 2019 at 7:58 AM Louigi Verona wrote: > "In terms of quality for resampling, this is the canonical information > source: http://src.infinitewave.ca/"; > > Yep, was looking at that. But would appreciate any

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Louigi Verona
Is this so? Or should it be specifically compiled with the SoX library? Louigi Verona https://louigiverona.com/ On Thu, May 23, 2019 at 4:39 PM Paul Davis wrote: > The good news is that ffmpeg appears to include the soxr algorithm anyway. > > On Thu, May 23, 2019 at 7:58 AM Louigi Verona > wr

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Paul Davis
On Thu, May 23, 2019 at 8:41 AM Louigi Verona wrote: > Is this so? Or should it be specifically compiled with the SoX library? > > Louigi Verona > https://louigiverona.com/ > > > On Thu, May 23, 2019 at 4:39 PM Paul Davis > wrote: > >> The good news is that ffmpeg appears to include the soxr alg

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Louigi Verona
Yep, I've seen this link. But this basically means it has to be compiled with SoX, and then this algorithm has to be specifically invoked, right. But by default it uses its own, I guess. So it still leaves us with a choice - which algo to use? David makes a good point from a maintenance POV, I won

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Bengt Gördén
On 2019-05-23 15:00, Louigi Verona wrote: But this basically means it has to be compiled with SoX Sort of. It needs to be built with soxr (The SoX Resampler library) https://sourceforge.net/projects/soxr/files/ Cheers, -- /bengan ___ Linux-audio-de

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Len Ovens
On Thu, 23 May 2019, Louigi Verona wrote: One of the pipelines takes the uploaded file and transcodes it into an mp3. The general idea is to convert the original file to wav, resample it to 44100, and then finally convert it to mp3 using LAME. There are several questions here. 1. Which tool to

Re: [LAD] Resampling: SOX vs FFmpeg

2019-05-23 Thread Thorsten Wilms
On Thu, 23 May 2019 10:58:54 +0200 Louigi Verona wrote: > 2. Does it make sense to resample to 44100 or to 48000? AFAIR many soundcards and onboard solutions work with 48000 internally and have to resample any 44100 source. -- Thorsten Wilms ___ Linu