[MPlayer-users] Forcibly index VBR MP3

Jan Engelhardt jengelh at medozas.de
Sun Dec 19 04:34:23 CET 2010


Hi,


mplayer has known issues with VBR MP3; it usually takes the bitrate of 
the first frame or so and extrapolates the length of the audio file 
based upon that.

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   0.3 (00.2) of 8222.0 ( 2:17:02.0)  3.0% 

(mpg123 also gets it wrong, by the way.)

Calling `mkvmerge -o tmp.mka vbr.mp3` and playing that instead makes 
mplayer show the correct times. mkvmerge builds some index, so is there 
a way I can instruct mplayer to do something similar? -idx/-forceidx 
have no bearing on audio in mplayer it seems, however.



More information about the MPlayer-users mailing list