[MPlayer-dev-eng] [PATCH] remove mp3lib

Diego Biurrun diego at biurrun.de
Fri Sep 23 16:22:56 CEST 2011


On Fri, Sep 23, 2011 at 04:46:05PM +0300, Ivan Kalvachev wrote:
> On 9/23/11, Thomas Orgis <thomas-forum at orgis.org> wrote:
> > Am Fri, 23 Sep 2011 03:45:49 +0300
> > schrieb Ivan Kalvachev <ikalvachev at gmail.com>:
> >
> >> Even if we assume the extra 6 seconds are because of the ugly float
> >> conversion and clipping i've done in af_format, even then mp3lib is
> >> still around 16% faster than the float only case.
> >
> > Would you care to give the ac mpg123 a spin, too? Regardless about the
> > performance of ffmpeg's mp3 (and mp2, and mp1) decoding, the comparison
> > to the official mpg123 code should work out on removing the internal
> > fork.
> >
> > Because of improved SSE code, mpg123 should be faster on platforms
> > supporting that. The game is not that clear for MMX and 3DNow*, where
> > subtle effects of the libmpg123 binding could rule.
> >
> > Make sure to use mpg123 version 1.13.x, please (there was some
> > optimization regarding the data transfer from MPlayer).
> 
> Here they are:
> athlon:$ for i in 1 2 3 ; do time mpg123 -w /dev/null stream.dump ; done
> High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
>         version 1.13.3; written and copyright by Michael Hipp and others
> real 0m48.938s 		user 0m47.331s		sys 0m1.591s
> real 0m48.790s		user 0m47.013s		sys 0m1.764s
> real 0m48.736s		user 0m46.996s		sys 0m1.726s
> 
> athlon:$ ./mplayer -loop 3 -ao pcm:fast:file=/dev/null -benchmark
> -quiet -ac mpg123 stream.dump
> MPlayer SVN-r34123-4.5.3 (C) 2000-2011 MPlayer Team
> Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
> AO: [pcm] 48000Hz 2ch s16le (2 bytes per sample)
> BENCHMARKs: VC:   0.000s VO:   0.000s A:  55.760s Sys:   0.862s =   56.621s
> BENCHMARKs: VC:   0.000s VO:   0.000s A:  53.390s Sys:   0.515s =   53.906s
> BENCHMARKs: VC:   0.000s VO:   0.000s A:  52.770s Sys:   0.536s =   53.306s

The interesting comparison to see would be mplayer itself, once with
internal mp3lib vs. external libmpg123, not mpg123 the command line
program.

Diego


More information about the MPlayer-dev-eng mailing list