[FFmpeg-devel] [PATCH] VBR header for "libmp3lame"

Peter Belkner pbelkner at snafu.de
Fri Apr 15 20:07:27 CEST 2011


Hi,

in case the switch "-aq" is provided to the "libmp3lame" codec a VBR MP3 
is generated as e.g. in

    ffmpeg -i a.wav -aq 2 b.mp3

This corresponds to

    lame -V2 a.wav b.m3

Unfortunately no VBR header is written often leading to a completely 
wrong estimate of the duration during playback (cf. e.g. 
http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-October/011573.html).

The patch allows for writing the VBR header as generated by "libmp3lame.a".
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: submission.diff
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110415/0532ab3f/attachment.ksh>


More information about the ffmpeg-devel mailing list