View Single Post
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#21
2faber: No I don't have IT2005 anymore. Would not it be better to upgrade?

Also tried to run some benchmarks. Used discovery video without scaling for tests.

time ./mplayer -benchmark -nosound -vo null /home/user/MyDocs/.videos/Discovery.avi
Code:
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 352 x 208 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.69:1 - prescaling to correct movie aspect.
VO: [null] 352x208 => 352x208 Planar YV12
V:  46.7 702/702 26%  0%  0.0% 0 0

BENCHMARKs: VC:  12.453s VO:   0.022s A:   0.000s Sys:   1.951s =   14.426s
BENCHMARK%: VC: 86.3241% VO:  0.1493% A:  0.0000% Sys: 13.5266% = 100.0000%

Exiting... (End of file)
real    0m 14.68s
user    0m 12.78s
sys     0m 0.74s
time ./mplayer -benchmark -nosound -vo sdl /home/user/MyDocs/.videos/Discovery.avi
Code:
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 352 x 208 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.69:1 - prescaling to correct movie aspect.
VO: [sdl] 352x208 => 352x208 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V:  46.7 702/702 29% 27%  0.0% 0 0

BENCHMARKs: VC:  14.008s VO:  12.798s A:   0.000s Sys:   2.179s =   28.986s
BENCHMARK%: VC: 48.3280% VO: 44.1539% A:  0.0000% Sys:  7.5180% = 100.0000%

Exiting... (End of file)
real    0m 29.48s
user    0m 24.87s
sys     0m 0.91s
time ./mplayer -benchmark -nosound -vo x11 /home/user/MyDocs/.videos/Discovery.avi
Code:
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 352 x 208 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.69:1 - prescaling to correct movie aspect.
VO: [x11] 352x208 => 352x208 Planar YV12
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> BGR 16-bit special converter
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V:  46.7 702/702 38%  4%  0.0% 0 0

BENCHMARKs: VC:  17.848s VO:   1.887s A:   0.000s Sys:   2.207s =   21.943s
BENCHMARK%: VC: 81.3403% VO:  8.6001% A:  0.0000% Sys: 10.0596% = 100.0000%

Exiting... (End of file)
real    0m 22.38s
user    0m 18.25s
sys     0m 0.92s
So looks like decoding video stream itself takes only 14.68 seconds (while video fragment length is 46 seconds long). When decoding + displaying video unscaled, x11 driver is faster than sdl: 22.38 vs. 29.48 seconds. It is interesting that SDL claims to support YUV surfaces (probably simulated in software, otherwise we would probably get higher 'sys' time and lower 'user' time) while when using X11, this YUV->RGB conversion is performed by mplayer code, so mplayer built-in color conversion seems to be faster.

Everything changes when showing scaled video, SDL time grows up to 49.67 seconds, X11 becomes a real slideshow and is unusable.

My tests also show that -mcpu=arm926ej-s is a bit faster than -march=armv5te, but not a big deal.

Last edited by Serge; 2006-07-13 at 06:46.