[Libav-user] mp3 encoder audio quality

Lina Sharifi sharifi91 at gmail.com
Mon Mar 13 20:09:43 EET 2017

Thanks again Carl,
My issue was in flushing the encoder. I am encoding raw data chunk by
chunk, basically after each chunk (several calls to the encode API) I was
flushing the encoder till I dont receive any output and was saving
everything,That caused silence between chunks (choppy audio). I tried to
count the number of delayed outputs in encoder loop and just flush by that
count , and it helped in removing unwanted silences.

On Sat, Feb 4, 2017 at 2:35 PM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2017-02-04 17:57 GMT+01:00 Lina Sharifi <sharifi91 at gmail.com>:
> > result:https://drive.google.com/file/d/0B9DbYNPuSyiRYTFzRmliNWxLcnM/
> view?usp=sharing
> The file is broken afaict.
> My initial guess was that you should make sure that the
> sample_fmt you specify when initializing the encoder
> is what you feed the encoder with but seeing this file I
> guess something is wrong when you output the frames...
> Carl Eugen
> _______________________________________________
> 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/20170313/c6132c3d/attachment.html>

More information about the Libav-user mailing list