[Libav-user] lib3lame always encode mp3 with av_sample_fmt_fltp?
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sat May 18 01:46:52 EEST 2019
Am Fr., 17. Mai 2019 um 15:53 Uhr schrieb 雷京颢 <leijinghaog at gmail.com>:
> What I trying to do : convert PCM data to mp3 data(should be
> AV_SAMPLE_FMT_S16P--16bit signed)
> What I actually get: AV_SAMPLE_FMT_FLTP
If you convert pcm into mp3, you definitely don't get AV_SAMPLE_FMT_FLTP
(but mp3). The lame encoder in FFmpeg supports s32p, fltp and s16p as input.
If you decode mp3 (with FFmpeg) with mp3float, you get AV_SAMPLE_FMT_FLTP.
If you decode mp3 with mp3, you get AV_SAMPLE_FMT_S16P
Carl Eugen
More information about the Libav-user
mailing list