[MPlayer-users] Hich cpu uceage

Peter Christy christy at attglobal.net
Thu Sep 22 12:33:52 CEST 2011


Problem: Excessive CPU useage whilst playing Hi-Def videos.

Computer: Intel E6750 core duo, P35 chipset.
Gfx     : NVidia GT216 [GeForce GT 220] (rev a2)
Driver  : NVIDIA-Linux-x86_64-275.28

System: Slackware64-13.37
GCC:    4.5.2
MPlayer: SVN r34111 compiled with ./configure \
  --prefix=/usr \
  --confdir=/etc/mplayer \
  --enable-gui \
  --enable-menu \
  --enable-runtime-cpudetection

vainfo: libva: libva version 0.32.0-sds2
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 
0.7.3
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG4Simple            : VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD

When playing .mts files recorded on my Panasonic camera, motion is not smooth.
Top reports CPU useage between 85-100%. Trying to scroll through video causes 
a lock up.

Running from a terminal gives:

MPlayer SVN-r34111-4.5.2 (C) 2000-2011 MPlayer Team

Playing /data/Pictures/2011/Brixham_April/Weds_20th/00000.MTS.
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) SUB Teletext(pid=4608)  PROGRAM N. 1
FPS seems to be: 25.000000
Load subtitles in /data/Pictures/2011/Brixham_April/Weds_20th/
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[h264 @ 0xeb2a60]time_scale/num_units_in_tick invalid or unsupported (0/0)
[h264 @ 0xeb2a60]sps_id out of range
[h264 @ 0xeb2a60]sps_id out of range
[h264 @ 0xeb2a60]sps_id out of range

<snip>........

Unsupported PixelFormat 61
Unsupported PixelFormat 53
[h264 @ 0xeb2a60]non-existing SPS 32 referenced in buffering period
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 Planar YV12  [fs]
A:   1.2 V:   1.3 A-V: -0.139 ct:  0.000  26/ 26 ??% ??% ??,?% 0 0 
[h264 @ 0xeb2a60]non-existing SPS 31 referenced in buffering period
[h264 @ 0xeb2a60]non-existing SPS 32 referenced in buffering period
[h264 @ 0xeb2a60]non-existing SPS 15 referenced in buffering period
[h264 @ 0xeb2a60]non-existing SPS 19 referenced in buffering period
[h264 @ 0xeb2a60]reference picture missing during reorder
[h264 @ 0xeb2a60]Missing reference picture


The line VO: [vdpau] implies that vdpau is recognised, but why all the errors,
and why is the cpu useage so high?

The same file plays on my netbook (Acer Aspire One 721, AMD Neo K145, Ati Gfx)
using an old version of mplayer from splitted-desktops without problems! But 
on that system, mplayer reports:

==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VA API accelerated video codec
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================

Note the extra line referring to an accelerated codec that is missing from the 
problem implementation!

This seems to indicate that the internal ffmpeg has been compiled without vdpau 
/ vaapi.

What am I doing wrong? What have I missed?




-- 
Pete
christy at atglobal.net



More information about the MPlayer-users mailing list