ffmpeg Too many bits per frame requested

℡╲_俬逩灬. 提交于 2019-11-27 14:52:09

The "Too many bits per frame requested" error is coming from the native FFmpeg AAC encoder (-c:a aac). You can use one or more of the following solutions:

Update your ffmpeg

Development is very active and the native FFmpeg AAC encoder has seen many improvements; it will now automatically clamp to the max number of bits per frame instead of failing with this error. See the FFmpeg Download page for links to already compiled binaries which are the easiest method to get a recent ffmpeg.

If you're stuck with an old, outdated, ancient ffmpeg:

  • Increase the audio sampling rate such as by adding -ar 44100.

  • Decrease your bitrate. Default is probably -b:a 128k. Try lower values until it works.

  • Use -c:a copy to stream copy (re-mux) the audio, and, because MP4 doesn't support pcm_mulaw, use different output container format such as Matroska (.mkv).

  • Use a different AAC encoder such as libfdk_aac if your ffmpeg supports it.

You don't need to do any of these options if you upgrade ffmpeg.

I'd hope ffmpeg is more clever than this, but you might try specifying the video stream for your -s and -aspect options: -s:v and -aspect:v.

Alternately, since you're not doing anything special with the audio, you could copy it explicitly with -c:a copy.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!