[MPlayer-users] performance regression in xvid encoding between 1.0-pre6 and 1.0-pre7

Marcin Slusarz mslusarz at alan.umcs.lublin.pl
Mon Jul 25 19:22:22 CEST 2005


hi
after upgrading mplayer to 1.0-pre7 i noticed that encoding with mencoder is
really slow. as i usually record and encode straight from the tv card and cpu
load is at 96-99%, 60% regression is "noticable" ;) here are results from testings:

mencoder -oac copy -ovc copy tv://6 -o test.raw -endpos 100
(VIDEO:  [YV12]  768x576  24bpp  25.000 fps  132657.3 kbps (16193.5 kbyte/s))

-------------------------
mplayer 1.0_pre6

time mencoder -oac pcm -ovc xvid -xvidencopts bitrate=1800 -vf scale=400:300 test.raw -o test.avi
real    1m58.444s
user    1m28.403s
sys     0m4.049s

time mencoder -oac pcm -ovc lavc -lavcopts vcodec=wmv2 -vf scale=400:300 test.raw -o test.avi
real    0m45.701s
user    0m14.478s
sys     0m3.895s

time mencoder -oac pcm -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=400:300 test.raw -o test.avi
real    0m45.087s
user    0m13.537s
sys     0m3.883s


-------------------------
mplayer 1.0_pre7

time mencoder -oac pcm -ovc xvid -xvidencopts bitrate=1800 -vf scale=400:300 test.raw -o test.avi
real    2m52.504s
user    2m22.517s
sys     0m4.345s


time mencoder -oac pcm -ovc lavc -lavcopts vcodec=wmv2 -vf scale=400:300 test.raw -o test.avi
real    0m45.499s
user    0m14.360s
sys     0m3.989s

time mencoder -oac pcm -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=400:300 test.raw -o test.avi
real    0m45.095s
user    0m13.559s
sys     0m3.885s

-------------------------
mplayer 20050725

time mencoder -oac pcm -ovc xvid -xvidencopts bitrate=1800 -vf scale=400:300 test.raw -o test.avi
real    2m50.964s
user    2m22.330s
sys     0m4.170s

time mencoder -oac pcm -ovc lavc -lavcopts vcodec=wmv2 -vf scale=400:300 test.raw -o test.avi
real    0m43.586s
user    0m14.508s
sys     0m3.765s

time mencoder -oac pcm -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=400:300 test.raw -o test.avi
real    0m45.231s
user    0m13.507s
sys     0m3.792s



someone at http://mplayerhq.hu/pipermail/mplayer-users/2005-May/053449.html written about vhq option but that does not help much:
time mencoder -oac pcm -ovc xvid -xvidencopts bitrate=1800:vhq=0 -vf scale=400:300 test.raw -o test.avi
real    2m30.298s
user    2m5.073s
sys     0m4.050s


distribution: Gentoo amd64 (some packages from ~amd64, mplayer is one of those)
cpu: AMD Athlon(tm) 64 Processor 3200+ (2GHz)
xvid: 1.0.2

gcc -v:
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/specs
Configured with: /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3 --host=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.3 20041125 (Gentoo 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)

ld -v: GNU ld version 2.15.92.0.2 20040927
as --version: GNU assembler 2.15.92.0.2 20040927
uname -a: Linux joi 2.6.12-gentoo-static #1 Mon Jun 20 00:01:10 CEST 2005 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux

if more informations is needed i'll send them. just tell me which ;)

Marcin




More information about the MPlayer-users mailing list