<div dir="ltr"><div>Hey everyone!</div><div><br></div><div>I need advice on resampling.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>There are several questions here.</div><div><br></div><div>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.<br></div><div><br></div><div>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.<br></div><div><br></div><div><br></div><div>p.s.: the described pipeline is not the only one, the original file is transcoded into multiple formats, including formats with 48000 sample rate, but the one I am asking about focuses specifically on producing an mp3.<br></div><div><br></div><div><div dir="ltr" class="m_3550755158731182648gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Louigi Verona<br><a href="https://louigiverona.com/" target="_blank">https://louigiverona.com/</a></div></div></div></div></div></div></div></div></div></div></div></div></div>