<div dir="ltr">Thanks, that was the answer that helped me. I have a S16 raw data, I am able to successfully convert it to S32P or FLTP (by swr_convert) and feed it to the mp3 encoder. Should I expect to have different audio quality between float and int version? Is there any other differences between the two implementations?</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 4, 2017 at 2:38 PM, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:ceffmpeg@gmail.com" target="_blank">ceffmpeg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">2017-02-04 17:58 GMT+01:00 Lina Sharifi <<a href="mailto:sharifi91@gmail.com">sharifi91@gmail.com</a>>:<br>
<br>
> I am using ffmpeg integrated with libmp3lame for encoding<br>
> (AV_CODEC_ID_MP3), Is there an option for to enable<br>
> fixed point (integer) encoder? Probably a codec flag?<br>
<br>
</span>There is one encoder that takes different sample_fmts.<br>
You have to choose one when initializing the encoder,<br>
make sure that the encoder really accepts it and feed<br>
the correct data.<br>
(s16p, s32p and floatp are supported)<br>
<br>
Not necessarily related: We do not guarantee that future<br>
versions of FFmpeg take the same sample_fmts than<br>
current FFmpeg, they have changed in the past (without<br>
version bump)!<br>
(That's why your code has to check the fmt.)<br>
<br>
Carl Eugen<br>
______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
</blockquote></div><br></div>