[Libav-user] AAC encoder not returning final samples

Panicos Karkallis panicosk at gmail.com
Fri Aug 21 18:44:09 CEST 2015

I do flush the encoder by passing a null frame. it returns 2 packets that
get appended at the beginning of my file and increase the padding instead
of giving the end samples.


On 17:34, Fri, 21 Aug 2015 Henry, David <David.Henry at echostar.com> wrote:

> > I am new to ffmpeg/avlib and what I am trying to do is just decode and
> encode back again an aac file. I don't try to make any changes to the file
> although the avlib encoder is producing a file with more initial padding
> than expected and it is cropping the final frames of the audio clip.
> > I exported the avframes created by the decoder and all the file
> information is there. It is at the encoding step that I am doing something
> wrong.
> It sounds like you are not flushing the libfdk-aac encoder at the end.
> The encoder holds on to audio samples internally while you are encoding and
> you need to flush those last samples
> When you are finished encoding.
> - David
> _______________________________________________
> 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/20150821/e3d85609/attachment.html>

More information about the Libav-user mailing list