[Libav-user] PCM interleaved audio

Paul B Mahol onemda at gmail.com
Thu Nov 25 10:03:19 EET 2021


On Thu, Nov 25, 2021 at 3:38 AM william keeling <WilliamKeeling at hotmail.com>
wrote:

> Does anyone have an example of encoding PCM interleaved audio stream?
>
> I can  encode the stream if I manual un-interleave the PCM samples and
> put them in R/L planes.  I am using
> “avcodec_find_encoder(AV_CODEC_ID_PCM_S32LE_PLANAR)” for my manually
> un-interleaved stream and “avcodec_find_encoder(AV_CODEC_ID_PCM_S32LE)” to
> the native interleaved stream.  I am not sure what else I need to do to
> define the stream as 2 channel interleaved stream.
>


For converting between interleaved vs noninterleaved it can be done
manually or via libraries like libswresample of libavfilter.



> Thanks
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20211125/4002d0c7/attachment.htm>


More information about the Libav-user mailing list