[MPlayer-users] xvmc - using hardware Motion Compensate decoder

Jouni.Lohikoski@iki.fi jlohikos at cc.hut.fi
Mon May 2 16:30:07 CEST 2005

On Sat, Apr 30, 2005 at 10:16:17PM -0700, RC wrote:
> On Sat, 30 Apr 2005 16:05:40 +0300
> "Jouni.Lohikoski at iki.fi" <jlohikos at cc.hut.fi> wrote:
> > Is there a solution to make this work better, without having to use
> > and choose command line options manually every time when video file is
> > chosen?
> Nope.

Actually there is also a bug in 1.0pre6-3.4.2, because it _crashes_
if I try to use -vc ffmpeg12mc -vo xv
or as I have "vc=ffmpeg12mc," in $HOME/.mplayer/config
and I forgot to give -vo xvmc manually. It tries to use default -vo xv
and then happens this:

-------------- clip ---------------------------------------------
$ mplayer test.mpg
MPlayer 1.0pre6-3.4.2 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Duron Spitfire (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Failed to open /dev/rtc: Device or resource busy (it should be readable by the user.)
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing test.mpg.
Cache fill: 15.31% (1284100 bytes)    MPEG-PS file format detected.
VIDEO:  MPEG1  320x240  (aspect 1)  23.976 fps  600.0 kbps (75.0 kbyte/s)
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 8000->128000 (64.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
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))
Checking audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 32000 hz, little endian signed int
AF_pre: 32000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: soundcard set to hw:0
alsa: 32000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 32000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
Starting playback...
vd_ffmpeg: XVMC accelerated MPEG2
trying pixfmt=0
VDec: vo config request - 320 x 240 (preferred csp: MPEG1/2 Motion Compensation and IDCT)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
trying pixfmt=1
Only buffers allocated by vo_xvmc allowed
mplayer: vd_ffmpeg.c:970: mc_get_buffer: Assertion `0' failed.

MPlayer interrupted by signal 6 in module: decode_video
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
alsa-uninit: pcm closed

-------------------clip clap -------------------------------------

With -vo xvmc it works without problems, except it is a problem when
trying to use GUI'd one, gmplayer, no MPEG1/2 file will work. So with
gmplayer XVMC seems to be useless feature. Having
$HOME/.mplayer/gmplayer doesn't help, so I guess it is not supported
like $HOME/.mplayer/mencoder is.

Any plans to some day have mplayer to use Getopt::Long and have some
sense to the option jungle mess? 

Or port everything to GStreamer plugins and give up the huge complex 
monolith design scheme? < http://gstreamer.freedesktop.org/ >

// jouni

More information about the MPlayer-users mailing list