[MPlayer-users] minimal CPU requirement to play high bitrate 1080p video in software?

Marc MERLIN marc_mplayer at merlins.org
Tue Aug 7 17:59:55 CEST 2012


I thought it would be an FAQ, but some searching didn't turn anything up.

My HTPC has an intel GM35 which does not support libva/vaapi from what I was
told.

The CPU is a dual core duo 3Ghz (E8400) and playing 7MB/s 1080p 20MB/s
encoded H264 mkv just isn't fast enough.

I noticed that decoding is only done on one of the two CPUs. Is there a way
to switch to a codec that can use both CPUs?
If not, here's mplayer -v output if that helps. If there are other compile
options I could use, or a different codec or video output I could force, let
me know.
(for instance, is 'xv' still my best output option?)

> MPlayer SVN-r34707-4.6.1 (C) 2000-2012 MPlayer Team
> CPU vendor name: GenuineIntel  max cpuid level: 10
> CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz (Family: 6, Model: 23, Stepping: 6)
> extended cpuid-level: 8
> extended cache-info: 402686016
> Detected cache-line size is 64 bytes
> Testing OS support for SSE... yes.
> Tests of OS support for SSE passed.
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
> Compiled with runtime CPU detection.
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> get_path('fonts') -> '/home/mythtv/.mplayer/fonts'
> Configuration: --prefix=/usr --confdir=/etc/mplayer --enable-xvmc --enable-menu --enable-radio --enable-radio-capture --disable-arts --language=all --target=i586-linux --enable-runtime-cpudetection --enable-debug --enable-mga --enable-3dfx --enable-tdfxfb --disable-gui
> libavformat version 54.0.0 (internal)
> Configuration: --enable-gpl --enable-postproc
> LAVF_check: Matroska/WebM file format
> libavformat file format detected.
> LAVF: 2 audio and 1 video streams found
> LAVF: build 3538944
> VIDEO:  [H264]  1920x1080  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
> [V] filefmt:44  fourcc:0x34363248  size:1920x1080  fps:23.976  ftime:=0.0417
> vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
> vo: X11 running at 1920x1080 with depth 24 and 32 bpp (":0" => local display)
> [x11] Detected wm supports layers.
> [x11] Detected wm supports NetWM.
> [x11] Detected wm supports ABOVE state.
> [x11] Detected wm supports BELOW state.
> [x11] Detected wm supports FULLSCREEN state.
> [x11] Detected wm supports STAYS_ON_TOP state.
> [x11] Current fstype setting honours LAYER FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
> [xv common] Drawing no colorkey.
> [xv common] Maximum source image dimensions: 2048x2048
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> libavcodec version 54.0.0 (internal)
> Configuration: --enable-gpl --enable-postproc
> INFO: libavcodec init OK!
> Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
> (...)
> VDec: using Planar 420P 10-bit little-endian as output csp (no 3)
> Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
> VO Config (1920x1080->1920x1080,flags=5,'MPlayer',0x52303234)
> [swscaler @ 0x8a850c0]using unscaled yuv420p10le -> yuv420p special converter
> REQ: flags=0x437  req=0x0  
> VO: [xv] 1920x1080 => 1920x1080 Planar YV12  [fs] [zoom]
> VO: Description: X11/Xv
> VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
> Xvideo image format: 0x32595559 (YUY2) packed
> Xvideo image format: 0x32315659 (YV12) planar
> Xvideo image format: 0x30323449 (I420) planar
> Xvideo image format: 0x59565955 (UYVY) packed
> Xvideo image format: 0x434d5658 (XVMC) planar
> [x11] original window layer is 4.
> [x11] Layered style stay on top (layer 10).
> using Xvideo port 81 for hw scaling
> Video attribute 'saturation' is not supported by selected vo & vd.
> *** [scale] Exporting mp_image_t, 1920x1080x24bpp YUV planar, 6220800 bytes
> *** [vo] Allocating mp_image_t, 1920x1080x12bpp YUV planar, 3110400 bytes




I tried the save video on my laptop with a newer CPU, and it almost plays ok (still 
slightly slow in places, but I don't get the mplayer "your system is too slow" warning):
> MPlayer SVN-r34531 (C) 2000-2010 MPlayer Team
> CPU vendor name: GenuineIntel  max cpuid level: 13
> CPU: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz (Family: 6, Model: 58, Stepping: 9)
> extended cpuid-level: 8
> extended cache-info: 16801856
> Detected cache-line size is 64 bytes
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
> Compiled with runtime CPU detection.
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> get_path('fonts') -> '/home/merlin/.mplayer/fonts'
> Configuration: --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --enable-xmga --enable-mga --enable-joystick --disable-tremor-internal --enable-libopencore_amrnb --enable-libopencore_amrwb --disable-openal --disable-decoder=amrnb --language=all --enable-menu --disable-libdvdcss-internal --enable-radio --enable-radio-capture --extra-libs=-ldl -lvorbisenc -lvorbis --enable-xvmc --with-xvmclib=XvMCW --enable-tdfxfb --enable-s3fb --enable-runtime-cpudetection --disable-gui
> libavformat version 53.29.100 (internal)
> Configuration: --enable-gpl --enable-postproc
> LAVF_check: Matroska/WebM file format
> libavformat file format detected.
> ======= VIDEO Format ======
>   biSize 86
>   biWidth 1920
>   biHeight 1080
>   biPlanes 0
>   biBitCount 0
>   biCompression 875967048='H264'
>   biSizeImage 0
> LAVF: 2 audio and 1 video streams found
> LAVF: build 3480932
> VIDEO:  [H264]  1920x1080  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
> [V] filefmt:44  fourcc:0x34363248  size:1920x1080  fps:23.976  ftime:=0.0417
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> libavcodec version 53.54.100 (internal)
> Configuration: --enable-gpl --enable-postproc
> [h264 @ 0xef4480]err{or,}_recognition separate: 2; 1
> [h264 @ 0xef4480]err{or,}_recognition combined: 2; 30001
> INFO: libavcodec init OK!
> Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
> ==========================================================================
> [ffmpeg] aspect_ratio: 0.000000
> VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar 420P 10-bit little-endian)
> VO: [xv] 1920x1080 => 1920x1080 Planar YV12  [zoom]
> VO: Description: X11/Xv
> VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
> Xvideo image format: 0x32595559 (YUY2) packed
> Xvideo image format: 0x32315659 (YV12) planar
> Xvideo image format: 0x30323449 (I420) planar
> Xvideo image format: 0x59565955 (UYVY) packed
> Xvideo image format: 0x434d5658 (XVMC) planar
> using Xvideo port 91 for hw scaling
> *** [scale] Exporting mp_image_t, 1920x1080x24bpp YUV planar, 6220800 bytes
> *** [vo] Allocating mp_image_t, 1920x1080x12bpp YUV planar, 3110400 bytes

Thaks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  


More information about the MPlayer-users mailing list