Yes, all that is installed (it was rather painless, but I of course had to purge everything before installing fglrx, fglrx-amdcccle, xvba-va-driver libva-glx1 libva-egl1 and vainfo packages). I seem to have found where the problem lies.
2011-03-26, Saturday :: MPlayer is now Multi Threaded
posted by Compn
Thanks to FFmpeg and its project in the Google Summer of Code program, we now have multi threaded support for playing back H.264 and other codecs.
To enable threading run
mplayer -lavdopts threads=N file.mkv where N is the number of threads you want to use.
You will need to have the latest SVN MPlayer for this. Please report any bugs you find to our Bugzilla.
(from http://www.mplayerhq.hu/design7/news.html)
When I run $ mplayer -lavdopts threads=4 -vo vaapi -va vaapi file.mp4, I get the same high CPU usage. Omitting -lavdopts switch puts it down at 8-9%.
Code:
/usr/bin/mplayer -noquiet -nofs -nomouseinput -lavdopts threads=4 -sub-fuzziness 1 -identify -slave -vo vaapi:gl -ao pulse -nokeepaspect -dr -double -input nodefault-bindings:conf=/dev/null -stop-xscreensaver -wid 50331707 -monitorpixelaspect 1 -*** -msglevel ***=6 -embeddedfonts -***-line-spacing 0 -***-font-scale 1 -***-force-style PlayResX=512,PlayResY=320,Name=Default,Fontname=Arial,Fontsize=24,PrimaryColour=&H00ffffff,BackColour=&H00000000,OutlineColour=&H00000000,Bold=0,Italic=0,Alignment=2,BorderStyle=1,Outline=1,Shadow=2,MarginL=20,MarginR=20,MarginV=8 -fontconfig -font Arial -subfont-autoscale 0 -subfont-osd-scale 24 -subfont-text-scale 24 -subcp CP1250 -aid 0 -subpos 100 -volume 100 -cache 65536 -osdlevel 0 -vf-add pp -autoq 3 -vf-add eq2,hue -vf-add spp -noslices -channels 2 -af scaletempo -softvol -softvol-max 110 -vo vaapi -va vaapi "/data/Downloads/Totally not an illegally downloaded file.mp4"
MPlayer SVN-r35107-4.6 (C) 2000-2012 MPlayer Team
Terminal type `unknown' is not defined.
Playing /data/Downloads/Totally not an illegally downloaded file.mp4.
Cache fill: 0.00% (0 bytes)
libavformat version 54.25.104 (internal)
libavformat file format detected.
Cache not responding! [performance issue]
ID_VIDEO_ID=0
[lavf] stream 0: video (h264), -vid 0
ID_AUDIO_ID=0
[lavf] stream 1: audio (ac3), -aid 0, -alang und
ID_AUDIO_ID=1
[lavf] stream 2: audio (aac), -aid 1, -alang und
VIDEO: [H264] 1280x544 24bpp 23.976 fps 2619.1 kbps (319.7 kbyte/s)
Clip info:
major_brand: isom
ID_CLIP_INFO_NAME0=major_brand
ID_CLIP_INFO_VALUE0=isom
minor_version: 1
ID_CLIP_INFO_NAME1=minor_version
ID_CLIP_INFO_VALUE1=1
compatible_brands: isomavc1
ID_CLIP_INFO_NAME2=compatible_brands
ID_CLIP_INFO_VALUE2=isomavc1
creation_time: 1940-08-15 17:43:07
ID_CLIP_INFO_NAME3=creation_time
ID_CLIP_INFO_VALUE3=1940-08-15 17:43:07
ID_CLIP_INFO_N=4
Load subtitles in /data/Downloads/
ID_FILENAME=/data/Downloads/Totally not an illegally downloaded file.mp4
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=2619056
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=544
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=2.3529
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=6
ID_START_TIME=0.00
ID_LENGTH=5706.69
ID_SEEKABLE=1
ID_CHAPTERS=0
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/i386-linux-gnu/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
Opening video filter: [*** auto=1]
Couldn't open video filter '***'.
***: cannot add video filter
Opening video filter: [spp]
libavcodec version 54.53.100 (internal)
Opening video filter: [hue]
Opening video filter: [eq2]
Opening video filter: [pp]
[***] Raster: FreeType 2.4.8
[***] Shaper:
[***] Initialized
[***] Updating font cache
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
[PP] Using external postprocessing filter, max q = 6.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffac3
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=1.
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Unsupported PixelFormat 81
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=0.
Unsupported PixelFormat 61
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Unsupported PixelFormat 81
[VD_FFMPEG] Trying pixfmt=2.
Unsupported PixelFormat 81
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=3.
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1280x544 => 1280x544 Planar YV12
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=2.3529
VO: [vaapi] 1280x544 => 1280x544 Planar YV12
So, now only to find out how to disable threading.
Bookmarks