[Libav-user] mp3 encoder audio quality

Lina Sharifi sharifi91 at gmail.com
Sat Feb 4 18:57:41 EET 2017

Hi all,
I am trying to build an mp3 encoder( ffmpeg integrated with lame) in C++.
For some reason I am not receiving good quality output. Here are the output

FFMPEG result:https://drive.google.com/file/d/0B9DbYNPuSyiRYTFzRmliNWxLcnM/
Reference Sample: https://drive.google.com/file/d/

I am using avcodec_encode_audio2 API as shown in the enoding-decoding
Also wanted to add, I see some delays in the encoder as when I am doing ret
= avcodec_encode_audio2(m_pCodecCtxOut, &Encodedpkt, pInputFrame,
&got_output); I dont get any output but after flushing with NULL I get some
output for 2-3 loops.

Any suggestion or idea is appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170204/b60cb026/attachment.html>

More information about the Libav-user mailing list