[FFmpeg-user] request for review: feature request of "disallow unallowed bitrates"

Roger Pack rogerdpack2 at gmail.com
Fri Jul 27 20:15:53 CEST 2012


>> So I was thinking of filing a trac with a request to at least "warn"
>> when it ends up picking some bitrate other than that specified.
>> Any feedback before I do so?
>
> How should FFmpeg know that (the installed version of) lame
> will not encode the requested bit-rate?

Knowing nothing of liblame...
libmp3lame $ ack 320

libmp3lame/util.c
301:FindNearestBitrate(int bRate, /* legal rates from 8 to 320 */
347:        { 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160,
192, 224, 256, 320 };
356:    /* We assume specified bitrate will be 320kbps */

Possibly? (I presume libmp3lame automatically uses the nearest bitrate?)
-r


More information about the ffmpeg-user mailing list