[Libav-user] Extracting samples from audio file

Philippe Gorley philippe.gorley at savoirfairelinux.com
Wed Aug 9 22:33:48 EEST 2017


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.


More information about the Libav-user mailing list