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

Moritz Barsnick barsnick at gmx.net
Thu Sep 25 15:20:37 CEST 2014


On Thu, Sep 25, 2014 at 15:02:59 +0200, Moritz Barsnick wrote:
> 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.

BTW, this actually works for me. I can see the 19 kHz tone with all
models from 0 to 4, created as such:

> ffmpeg-20140908-git-f044fc0-win64-static\bin\ffmpeg.exe -f lavfi -i "sine=frequency=19000:sample_rate=48000:duration=5" -c:a libtwolame -psymodel 4 test.twolame.p4.mp2

Using model "-1", I see no tone though, just like with ffmpeg's native
mp2 encoder.

Moritz "trying was quicker than writing"


More information about the ffmpeg-user mailing list