[Libav-user] How to get raw audio frames from an audio file

Matthieu Regnauld mregnauld at gmail.com
Wed Oct 24 00:35:35 EEST 2018


Thank you again for your help!

OK so I try to follow the example given in the "Detailed Description" part
of the Libswresample documentation:
https://www.ffmpeg.org/doxygen/2.3/group__lswr.html
And I updated my code:
https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099a

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.

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.

What wrong in my code?

Thanks for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20181023/1137a935/attachment.html>


More information about the Libav-user mailing list