<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thank you again for your help!<div><br></div><div>OK so I try to follow the example given in the "Detailed Description" part of the Libswresample documentation: <a href="https://www.ffmpeg.org/doxygen/2.3/group__lswr.html">https://www.ffmpeg.org/doxygen/2.3/group__lswr.html</a><br></div><div>And I updated my code: <a href="https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099a">https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099a</a></div><div><br></div><div>As a reminder, in my example, I try to resample and extract audio samples from an audio file (44100 Hz, 2 channels) to have them in the following format: 48000 Hz, 2 channels.</div><div><br></div><div>But unfortunately, I still don't manage to make it work: the sound is a bit faster than its regular speed, and still with quite a lot of crackling.</div><div><br></div><div>What wrong in my code?</div><div><br></div><div>Thanks for your help.</div><div><br></div></div></div></div></div>