[Intel-gfx] XvMC VLD with mplayer

Charles Bovy charles.bovy at gmail.com
Thu Jun 25 16:54:34 CEST 2009


2009/6/25 Zou, Nanhai <nanhai.zou at intel.com>
>
> Hi,
>
> I think if that patch you found is against mplayer, it should work.
> You could check mplayer output to see if vld mode is really enabled. And vld mode will save much more CPU than MC mode, you may check it with top command.


The following output is from mplayer with VLD patch. Indeed CPU drops
from 14% to 2%.

MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9360.0 kbps (1170.0 kbyte/s)
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
==========================================================================
Forced video codec: ffmpeg12mc
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC accelerated codec.
Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-VLD-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 720 x 576 (preferred colorspace: MPEG1/2
Motion Compensation and VLD)
VDec: using MPEG1/2 Motion Compensation and VLD as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xvmc] 720x576 => 1024x576 MPEG1/2 Motion Compensation and VLD
vo_xvmc: Port 66 grabed
vo_xvmc: Found matching surface with id=32315659 on 66 port at 0 adapter
[intel_xvmc] info: decoder type is i965 MPEG2 VLD decoder
vo_xvmc: Allocated Direct Context
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=0 unsigned_intra=1
vo_xvmc: looking for OSD support
vo_xvmc: No OSD support for this mode

The difference between non-patched and patched is more or less the
"VDec: using MPEG1/2 Motion Compensation and VLD as output csp (no 0)"
line.

> Currently we only support MPEG2.

Can you elaborate a bit on future plans for VLD support?

Thanks!

Regards,

Charles



More information about the Intel-gfx mailing list