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 <[email protected]> wrote: > 2017-02-04 17:57 GMT+01:00 Lina Sharifi <[email protected]>: > > > FFMPEG > > 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 > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
