[FFmpeg-user] [mp2] how to encode high-pitch audio to mp2 file?

Moritz Barsnick barsnick at gmx.net
Thu Sep 25 15:02:59 CEST 2014

> I analyzed mp2 made by ffmpeg. I found that sine wave whose frequency large
> than 14500HZ is eliminated.
> Is there any way to keep the high pitch audio in mp2 made by ffmpeg?

Have you tried building ffmpeg with libtwolame (./configure
--enable-libtwolame) and using it (-c:a libtwolame)? Especially playing
with the "psymodel" option. Perhaps its cut-off frequencies happen to
be higher.

If you want to be able to configure the low-pass frequency, I reckon
patches to either implementation are welcome.

(The LAME mp3 encoder allows setting the filter frequency from the
command line, though I believe it's not exposed in ffmpeg's libmp3lame
encoder options either.)


More information about the ffmpeg-user mailing list