[MPlayer-dev-eng] Make ffmpeg MPEG1/2 decoder the default?

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Feb 18 18:12:29 CET 2008


Hello,
On Mon, Feb 18, 2008 at 10:18:38AM +0100, Diego Biurrun wrote:
> On Sat, Feb 16, 2008 at 03:38:36PM +0100, Reimar Döffinger wrote:
> > libmpeg2 may be still slightly faster (though probably not on the newer CPUs),
> > but it is quite crash-happy and otherwise buggy (see also 34582.mxf in
> > incoming).
> > Thus I am for making FFmpeg decoder the default, any objections?
> 
> I'm not too convinced of this since libmpeg2 was still faster the last
> time I tried and now we have a pending patch with further speedup.  I
> propose running benchmarks on many different CPUs instead.  Let's find
> out which one really is the fastest.  Maybe we can motivate somebody to
> try making FFmpeg speedier...

My benchmarks say it completely depends on the CPU, though the speed on
the old Athlon would be more relevant in practice (though I doubt that many
are still in use).

AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ in 64 bit mode:
==========================================================================
==========================================================================
mplayer dvd:// -nosound -benchmark -cache 81920 -cache-min 99 -frames 2000 -vo x11
==========================================================================
libmpeg2:
BENCHMARKs: VC:  10.118s VO:  13.899s A:   0.000s Sys:   1.206s = 25.222s
user    0m14.921s
BENCHMARKs: VC:   9.102s VO:  13.506s A:   0.000s Sys:   1.079s = 23.687s
user    0m13.605s
BENCHMARKs: VC:  10.703s VO:  14.156s A:   0.000s Sys:   1.283s = 26.142s
user    0m15.777s

ffmpeg12:
BENCHMARKs: VC:   9.223s VO:   9.958s A:   0.000s Sys:   0.819s = 20.000s
user    0m10.165s
BENCHMARKs: VC:  13.447s VO:  10.156s A:   0.000s Sys:   1.168s = 24.771s
user    0m14.749s
BENCHMARKs: VC:  14.440s VO:  10.213s A:   0.000s Sys:   1.306s = 25.958s
user    0m15.613s


mplayer THX_Science_FLT_1920.gxf -nosound -benchmark -vo x11 -frames 300
========================================================================
libmpeg2:
BENCHMARKs: VC:   4.277s VO:   3.924s A:   0.000s Sys:   0.293s = 8.493s
user    0m5.616s
BENCHMARKs: VC:   4.288s VO:   3.924s A:   0.000s Sys:   0.297s = 8.509s
user    0m5.528s
BENCHMARKs: VC:   4.253s VO:   3.919s A:   0.000s Sys:   0.293s = 8.465s
user    0m5.580s

ffmpeg12:
BENCHMARKs: VC:   5.704s VO:   2.925s A:   0.000s Sys:   0.294s = 8.923s
user    0m6.112s
BENCHMARKs: VC:   5.621s VO:   2.901s A:   0.000s Sys:   0.301s = 8.823s
user    0m5.932s
BENCHMARKs: VC:   5.631s VO:   2.927s A:   0.000s Sys:   0.290s = 8.848s
user    0m5.824s


AMD Athlon(tm) Processor (800 MHz)
========================================================================
========================================================================
mplayer dvd:// -nosound -benchmark -frames 2000 -vo xv (results with -vo x11 are very similar)
========================================================================
libmpeg2:
BENCHMARKs: VC:  22.858s VO:  13.771s A:   0.000s Sys:   6.412s = 43.042s
user    0m28.346s
BENCHMARKs: VC:  22.894s VO:  13.873s A:   0.000s Sys:   4.232s = 40.998s
user    0m28.410s
BENCHMARKs: VC:  22.867s VO:  13.843s A:   0.000s Sys:   4.341s = 41.051s
user    0m28.474s

ffmpeg12:
BENCHMARKs: VC:  24.798s VO:   9.237s A:   0.000s Sys:   4.326s = 38.361s
user    0m26.182s
BENCHMARKs: VC:  25.016s VO:   9.262s A:   0.000s Sys:   4.286s = 38.565s
user    0m26.450s
BENCHMARKs: VC:  24.857s VO:   9.320s A:   0.000s Sys:   4.408s = 38.586s
user    0m26.146s




More information about the MPlayer-dev-eng mailing list