AW: [MPlayer-users] Mplayer compile --with-xvmc fails

Ethan Arnold ethan at arnold.net
Sun Jan 1 03:25:26 CET 2006


Ok, found the problem myself: There seems to be a typo in the current CVS
version of libavcodec/allcodecs.c. It also causes the patch to complain.

Search for "xxmc" and change it to "xvmc" (best before patching).

Unfortunately I'm still not happy, as mplayer still won't play:

# mplayer -vo xvmc -vc ffmpeg12mc filename.mpeg
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  15000.0 kbps (1875.0
kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Error opening/initializing the selected video_out (-vo) device.

Which is the same thing I've been having all week. Sigh. Here is my lsmod:
Module                  Size  Used by
via_agp                 7392  1
via                    46176  0
drm                    68056  1 via
agpgart                29576  2 via_agp,drm
fbcon                  37920  79
font                    7776  1 fbcon
bitblit                 4928  1 fbcon
viafb                 129764  1
ehci_hcd               42792  0
via_rhine              19396  0

Here my lspci:
00:00.0 Host bridge: VIA Technologies, Inc. CN400/PM880 Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. CN400/PM880 Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. CN400/PM880 Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. CN400/PM880 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. CN400/PM880 Host Bridge
00:00.7 Host bridge: VIA Technologies, Inc. CN400/PM880 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
Controller (rev 80)
00:0f.0 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge
[KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev
78)
01:00.0 VGA compatible controller: VIA Technologies, Inc. S3 Unichrome Pro
VGA Adapter (rev 02)

Regards,
Ethan

-- 
Robo-Store Ltd.
Martin-Wohmann-Str. 19
65719 Hofheim
Tel: +49 (0)6192-2031-938
Fax: +49 (0)6192-2031-939
-----Ursprüngliche Nachricht-----
Von: mplayer-users-bounces at mplayerhq.hu
[mailto:mplayer-users-bounces at mplayerhq.hu] Im Auftrag von Ethan Arnold
Gesendet: Sonntag, 1. Januar 2006 02:31
An: mplayer-users at mplayerhq.hu
Betreff: [MPlayer-users] Mplayer compile --with-xvmc fails

This is what I did:

cd /usr/src
cvs -z3 -d:pserver:anonymous at cvs.xvid.org:/xvid login
cvs -z3 -d:pserver:anonymous at cvs.xvid.org:/xvid co xvidcore
cd xvidcore/build/generic
./bootstrap.sh
./configure
make && make install
cd /usr/src
cvs -d:pserver:anonymous at mplayerhq.hu:/cvsroot/mplayer login
cvs -z3 -d:pserver:anonymous at mplayerhq.hu:/cvsroot/mplayer co -P main
cvs -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg login
cvs -z3 -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg co -P ffmpeg
Copied the libavcodec, libavformat and libavutil subdirectories into the
main directory just created from the MPlayer checkout.
download
http://www.openchrome.org/snapshots/mplayer/mplayer-uni-20050926.diff to
/usr/src/mplayer
cd mplayer/main
patch -Np0 < ../mplayer-uni-20050926.diff
./configure --enable-xvmc --with-xvidlibdir=/usr/local/lib/
--with-xvidincdir=../../xvidcore/src/
make

And this is what I got (only the last page of course):

cc -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -march=i686
-mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.
-I/usr/include/freetype2  -I/usr/include/SDL -D_REENTRANT
-I/usr/X11R6/include -I../../xvidcore/src/  -I./libavutil -I./libavcodec  -o
mplayer mplayer.o mp_msg.o asxparser.o codec-cfg.o cpudetect.o edl.o
find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o playtree.o
playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o  unrarlib.o mixer.o
parser-mpcmd.o subopt-helper.o  libvo/libvo.a libao2/libao2.a
vidix/libvidix.a  libmpcodecs/libmpcodecs.a   libaf/libaf.a
libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a
osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavformat/libavformat.a
libavcodec/libavcodec.a libavutil/libavutil.a   -lmad     -lmp3lame
-L/usr/local/lib/ -lxvidcore  -lpng -lz -lz -ljpeg -lasound -ldl -lpthread
-lGL -ldl -lXxf86dga -lXv -lXvMC -lXvMCW -lXxf86vm -lXinerama
-L/usr/X11R6/lib -lXext -lX11 -lnsl -lpthread -lnsl -lfreetype -lz -lncurses
-lnsl  -lgif  -lsmbclient  -lfontconfig   libfaad2/libfaad2.a
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a
-lGL -ldl -lXxf86dga -lXv -lXvMC -lXvMCW -lXxf86vm -lXinerama
-L/usr/X11R6/lib -lXext -lX11 -lnsl -lpthread -lnsl -lSDL -lpthread    -lvga
-ldirectfb    -L/usr/kde/3.4/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl
-lgthread-2.0 -lglib-2.0       -Wl,-z,noexecstack     -lpthread -ldl    -lm
libavcodec/libavcodec.a(allcodecs.o)(.text+0x35a): In function
`avcodec_register_all':
: undefined reference to `mpeg_xxmc_decoder'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1




More information about the MPlayer-users mailing list