[FFmpeg-user] AC3 decoder now decoding to AV_SAMPLE_FMT_S32P? WTF?

Thomas Worth dev at rarevision.com
Fri Jun 28 15:35:30 CEST 2013


Correction, that should have said the decoded AVFrame is in
AV_SAMPLE_FMT_FLTP, not AV_SAMPLE_FMT_S32P. Regardless of this,
shouldn't avcodec_encode_audio2 detect the sample format and encode
appropriately based on the encode context? It ain't.

On Fri, Jun 28, 2013 at 5:21 AM, Thomas Worth <dev at rarevision.com> wrote:
> I updated to a newer version of avcodec from git, and now all of my
> audio decoding code is broken. I think I've narrowed the problem down
> to the sample format. The avcodec version I was using decoded AC3
> frames to sample_format 1, or AV_SAMPLE_FMT_U8. However, now it
> decodes to AV_SAMPLE_FMT_S32P. PCM formats still decode to
> sample_format 1, so the audio still sounds right. However, AC3 audio
> just sounds like static noise.
>
> Do I have to multiple passes now because the channels are stored in planes?


More information about the ffmpeg-user mailing list