Once in a while I fire ‘yum update’ to download and install new updates for software running on my CentOS box. Besides the default CentOS repository I also use the ATrpms repository. The ATrpms repository supplies many packages, including ffmpeg and lame.
After updating to the latest lame release supplied by ATrpms (lame-3.98.2-19.1.el5.i386.rpm) I ran into problems using ffmpeg. When using ffmpeg together with the libmp3lame to encode audio, the following error message shows:
[libmp3lame @ 0xe84840]lame: output buffer too small (buffer index: 7905, free bytes: 735) |
To fix this problem you should downgrade to version 3.97-16.0 like this:
# wget http://dl.atrpms.net/all/lame-3.97-16.0.el5.i386.rpm # wget http://dl.atrpms.net/all/libmp3lame0-3.97-16.0.el5.i386.rpm # rpm -hUv --oldpackage libmp3lame0-3.97-16.0.el5.i386.rpm lame-3.97-16.0.el5.i386.rpm Preparing... ########################################### [100%] 1:libmp3lame0 ########################################### [ 50%] 2:lame ########################################### [100%] |
To prevent updating libmp3lame0 and lame again when running ‘yum update’, be sure to edit /etc/yum.conf and exclude these packages. Add the following line:
exclude=lame* libmp3lame* |
Have fun and happy encoding!