[Libav-user] Extracting samples from audio file

salsaman salsaman at gmail.com
Thu Aug 10 02:57:00 EEST 2017


Hi Philippe,
I would suggest you look into libswresample, particularly swr_convert().

regards,
Gabriel.


http://lives-video.com
https://www.openhub.net/accounts/salsaman

On Wed, Aug 9, 2017 at 4:33 PM, Philippe Gorley <
philippe.gorley at savoirfairelinux.com> wrote:

> Hi,
>
> I need to read an audio file into an array of samples and then
> deinterleave/resample it. Right now, I'm decoding the file using the
> avcodec_send_packet/avcodec_receive_frame API. But how do I get the
> samples from an AVFrame into an int16_t?
>
> Cheers,
>
> --
> Philippe Gorley
> Free Software Consultant | Montréal, Qc
> Savoir-faire Linux
>
> Confidentiality Message: This communication (including any files
> transmitted with it) is intended solely for the person or entity to
> whom it is addressed, and may contain confidential or privileged
> information.
> The disclosure, distribution or copying of this message is strictly
> forbidden. Should you have received this communication in error,
> kindly contact the sender promptly, destroy any copies and delete
> this message from your computer system.
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170809/6b431848/attachment.html>


More information about the Libav-user mailing list