Re: [Libav-user] Extracting samples from audio file

2017-08-17 Thread Tuukka Pasanen
Hello, I have written example how to extract PCM from data with FFMpeg. It's not a bible how to make it but and example.. https://github.com/illuusio/ffmpeg-example Tuukka Philippe Gorley kirjoitti 16.08.2017 klo 00:06: On 2017-08-15 04:40 PM, Paul B Mahol wrote: On 8/15/17, Philippe Gorle

Re: [Libav-user] Extracting samples from audio file

2017-08-15 Thread Philippe Gorley
On 2017-08-15 04:40 PM, Paul B Mahol wrote: On 8/15/17, Philippe Gorley wrote: On 2017-08-10 01:17 PM, salsaman wrote: Correct, you would first create the swr_context then use it to convert the data. ___ Libav-user mailing list Libav-user@ffmpeg.org

Re: [Libav-user] Extracting samples from audio file

2017-08-15 Thread Paul B Mahol
On 8/15/17, Philippe Gorley wrote: > On 2017-08-10 01:17 PM, salsaman wrote: >> Correct, you would first create the swr_context then use it to convert >> the data. >> >> ___ >> Libav-user mailing list >> Libav-user@ffmpeg.org >> http://ffmpeg.org/mailman

Re: [Libav-user] Extracting samples from audio file

2017-08-15 Thread Philippe Gorley
On 2017-08-10 01:17 PM, salsaman wrote: Correct, you would first create the swr_context then use it to convert the data. ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user I'm still struggling with gett

Re: [Libav-user] Extracting samples from audio file

2017-08-10 Thread salsaman
On Thu, Aug 10, 2017 at 1:30 PM, Philippe Gorley < philippe.gor...@savoirfairelinux.com> wrote: > On 2017-08-09 07:57 PM, salsaman wrote: > >> Hi Philippe, >> I would suggest you look into libswresample, particularly swr_convert(). >> > > Didn't know about swr_convert, thanks. > > The in parameter

Re: [Libav-user] Extracting samples from audio file

2017-08-10 Thread Philippe Gorley
On 2017-08-09 07:57 PM, salsaman wrote: Hi Philippe, I would suggest you look into libswresample, particularly swr_convert(). Didn't know about swr_convert, thanks. The in parameter comes from a decoded frame (AVFrame->data)? regards, Gabriel. http://lives-video.com https://www.openhub.net

Re: [Libav-user] Extracting samples from audio file

2017-08-09 Thread salsaman
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.gor...@savoirfairelinux.com> wrote: > Hi, > > I need to read an au

[Libav-user] Extracting samples from audio file

2017-08-09 Thread Philippe Gorley
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 Consu