[MPlayer-users] XvMC question

Steven M. Schultz sms at 2BSD.COM
Mon Nov 24 02:17:15 CET 2003


Hi!

	Are there extra steps that must be taken to enable and use the
	XvMC extension?

	I installed a Nvidia 5200 based card this afternoon and everything's
	working fine (including Xv overlays much greater than the 1024 that
	the Matrox G4xx cards I had were able to support) except XvMC

	The XvMC libraries are found and linked in without problems:

catbert.153-> ldd /usr/local/bin/mplayer
        libmad.so.0 => /usr/lib/libmad.so.0 (0x40031000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x40048000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x40071000)
        libdv.so.2 => /usr/local/lib/libdv.so.2 (0x40076000)
        libfaad.so.0 => /usr/local/lib/libfaad.so.0 (0x400a1000)
        liblzo.so.1 => /usr/lib/liblzo.so.1 (0x400d9000)
        libmp3lame.so.0 => /usr/local/lib/libmp3lame.so.0 (0x400f5000)
        libxvidcore.so.3 => /usr/local/lib/libxvidcore.so.3 (0x401a1000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x40289000)
        libz.so.1 => /lib/libz.so.1 (0x402b7000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x402c7000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x402e7000)
        libdl.so.2 => /lib/libdl.so.2 (0x40388000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x4038b000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x403dc000)
        libcdda_interface.so.0 => /usr/lib/libcdda_interface.so.0 (0x40432000)
        libcdda_paranoia.so.0 => /usr/lib/libcdda_paranoia.so.0 (0x40445000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4044d000)
        libungif.so.4 => /usr/lib/libungif.so.4 (0x40462000)
        libGL.so.1 => /usr/lib/tls/libGL.so.1 (0x4046a000)
        libXvMCNVIDIA_dynamic.so.1 => /usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 (0x404d5000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x404fc000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4050b000)
        libSDL-1.2.so.0 => /usr/local/lib/libSDL-1.2.so.0 (0x40607000)
        libartsc.so.0 => /opt/kde3/lib/libartsc.so.0 (0x4066c000)
        libesd.so.0 => /usr/lib/libesd.so.0 (0x40672000)
        libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x4067c000)
        libm.so.6 => /lib/i686/libm.so.6 (0x406a1000)
        liblirc_client.so.0 => /usr/lib/liblirc_client.so.0 (0x406c5000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406ca000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4078a000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40792000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libresmgr.so.0.1 => /lib/libresmgr.so.0.1 (0x408c5000)
        libGLcore.so.1 => /usr/lib/tls/libGLcore.so.1 (0x408ca000)

	But when I run 'mplayer file.mp4' is ends with a 'FATAL: Could not
	initialize video output" error.

	"mplayer -v -v oll.mp4" says this (I know the unedited version would
	be prefered but I don't think the 84000 lines of .mov parsing is 
	needed :-)).

MPlayer dev-CVS-031123-09:57-3.3.1 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2133 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/sms/.mplayer/config
Reading /home/sms/.mplayer/codecs.conf: Can't open '/home/sms/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-v' 'oll.mp4'
get_path('font/font.desc') -> '/home/sms/.mplayer/font/font.desc'
font: can't open file: /home/sms/.mplayer/font/font.desc
font: Reading section: [info]
font: Reading section: [files]
RAW: /usr/local/share/mplayer/font//iso-8859-1-a.raw  3216 x 22, 256 colors
RAW: /usr/local/share/mplayer/font//iso-8859-1-b.raw  3216 x 22, 256 colors
font: Reading section: [characters]
font: Reading section: [files]
RAW: /usr/local/share/mplayer/font//osd-mplayer-a.raw  416 x 25, 256 colors
RAW: /usr/local/share/mplayer/font//osd-mplayer-b.raw  416 x 25, 256 colors
font: Reading section: [characters]
font: resampling alpha by factor 0.750 (192) DONE!
font: resampling alpha by factor 0.750 (192) DONE!
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/sms/.mplayer/input.conf'
Can't open input config file /home/sms/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Permission denied
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('oll.mp4.conf') -> '/home/sms/.mplayer/oll.mp4.conf'

[[[init getch2]]]

Playing oll.mp4.
[file] File size is 250897660 bytes
STREAM: [file] oll.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
s->pos=0  newpos=0  new_bufpos=0  buflen=0  
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x850ad58  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x850ad58  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x850ad58  
Checking for REAL
DEMUXER: freeing demuxer at 0x850ad58  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x850ad58  
DEMUXER: freeing demuxer at 0x850b628  
Searching demuxer type for filename oll.mp4 ext: .mp4
Trying demuxer 7 based on filename extension
Checking for MOV
MOV: File-Type unknown Major-Brand: mp42
MOV: File-Type Minor-Version: 0
MOV: File-Type Compatible-Brands #0: mp42
MOV: File-Type Compatible-Brands #1: isom
MOV: Movie header found!
MOV: Movie header: start: 20 end: 0
s->pos=800  newpos=5A800  new_bufpos=5A98E  buflen=0  
MOV: Movie DATA found!
MOV: Movie data: start: 5a996 end: 0
QuickTime/MOV file format detected.
mov_read_header!
s->pos=5B000  newpos=0  new_bufpos=20  buflen=0  
lschunks dhvm  100
MOV: Movie header (100 bytes): tscale=90000  dur=75984000
lschunks sdoi  34
MOV: unknown chunk: iods 34
lschunks kart  84746
--------------
MOV: Track #0:
lschunks dhkt  84
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=75146319 lay=0 vol=0
lschunks aidm  84646
MOV:  Media stream!
lschunks dhdm  24
MOV:   Media header!
lschunks rldh  25
MOV:   Handler header: /vide () 
MOV: unknown handler class: 0x0 ()
lschunks fnim  84573
MOV:   Media info!
lschunks dhmv  12
MOV:    Video header!
lschunks fnid  28
MOV: unknown chunk: dinf 28
lschunks lbts  84509
MOV:    Sample info!
lschunks dsts  173
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4v  (149 bytes)
lschunks stts  16
MOV:     Sample duration table! (1 blocks)
lschunks zsts  80104
MOV:     Sample size table! (entries=20023 ss=0) (ver:0,flags:0)
lschunks csts  32
MOV:     Sample->Chunk mapping table!  (2 blocks) (ver:0,flags:0)
lschunks octs  3348
MOV:     Chunk offset table! (835 chunks)
lschunks ssts  788
MOV:     Syncing samples (keyframes) table! (195 entries) (ver:0,flags:0)
MOV track #0: 835 chunks, 20023 samples
pts=75146319  scale=90000  time=834.959
Sample     0: pts=       0  off=0x0005B480  size=3069
Sample     1: pts=    3753  off=0x0005C07D  size=3098
	...
Sample  5053: pts=40520704  off=0x0EF46453  size=160
Unknown track type found (type: 0)
--------------
lschunks kart  425
MOV: Track #4:
lschunks dhkt  84
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=7 dur=75983940 lay=0 vol=0
lschunks aidm  297
MOV:  Media stream!
lschunks dhdm  24
MOV:   Media header!
lschunks rldh  25
MOV:   Handler header: /odsm () 
MOV: unknown handler class: 0x0 ()
lschunks fnim  224
MOV:   Media info!
lschunks dhmn  4
MOV:    Generic header!
lschunks fnid  28
MOV: unknown chunk: dinf 28
lschunks lbts  168
MOV:    Sample info!
lschunks dsts  68
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4s  (44 bytes)
lschunks stts  16
MOV:     Sample duration table! (1 blocks)
lschunks zsts  12
MOV:     Sample size table! (entries=1 ss=33) (ver:0,flags:0)
lschunks csts  20
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
lschunks octs  12
MOV:     Chunk offset table! (1 chunks)
lschunks fert  20
MOV: unknown chunk: tref 20
MOV track #4: 1 chunks, 0 samples
pts=844266  scale=1000  time=844.266
Sample     0: pts=       0  off=0x0005DAEB  size=33
Generic track - not completly understood! (id: 4)
--------------
lschunks kart  405
MOV: Track #5:
lschunks dhkt  84
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=8 dur=75983940 lay=0 vol=0
lschunks aidm  305
MOV:  Media stream!
lschunks dhdm  24
MOV:   Media header!
lschunks rldh  25
MOV:   Handler header: /sdsm () 
MOV: unknown handler class: 0x0 ()
lschunks fnim  232
MOV:   Media info!
lschunks dhmn  4
MOV:    Generic header!
lschunks fnid  28
MOV: unknown chunk: dinf 28
lschunks lbts  176
MOV:    Sample info!
lschunks dsts  76
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4s  (52 bytes)
lschunks stts  16
MOV:     Sample duration table! (1 blocks)
lschunks zsts  12
MOV:     Sample size table! (entries=1 ss=24) (ver:0,flags:0)
lschunks csts  20
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
lschunks octs  12
MOV:     Chunk offset table! (1 chunks)
MOV track #5: 1 chunks, 0 samples
pts=844266  scale=1000  time=844.266
Sample     0: pts=       0  off=0x0005DB0C  size=24
Generic track - not completly understood! (id: 5)
--------------
MOV: longest streams: A: #2 (39575 samples)  V: #0 (20023 samples)
MOV: Track #4: Extracting 1 data chunks to files
s->pos=5B000  newpos=5D800  new_bufpos=5DAEB  buflen=0  
MOV: Track #5: Extracting 1 data chunks to files
[V] filefmt:7  fourcc:0x7634706D  size:608x464  fps:23.98  ftime:=0.0417
get_path('sub/') -> '/home/sms/.mplayer/sub/'
get_path('default.sub') -> '/home/sms/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 12288 + 65536 = 77824 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 48000Hz  channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Unknown wm type...
[x11] Current fstype setting doesn't honour any X atoms
Disabling DPMS
DPMSDisable stat: 1
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:   8/8  (8192 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
Starting playback...

decaudio: minlen=65536 maxlen=65536 declen=65536 (max=77824)
decaudio: decoding 65536 bytes, max: 77824 (12288)
FAAD: Decoded zero samples!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
FAAD: Successfully decoded frame (4096 Bytes)!
decaudio: declen=65536 out=65536 (max 65536)
s->pos=5E000  newpos=5B000  new_bufpos=5B480  buflen=0  
[ffmpeg] aspect_ratio: 1.310345
VDec: vo config request - 608 x 464 (preferred csp: Planar YV12)
Trying filter chain: vo
vo_debug: query(Planar YV12) returned 0x0 (i=0) 
vo_debug: query(Planar I420) returned 0x0 (i=1) 
vo_debug: query(Planar IYUV) returned 0x0 (i=2) 
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
scale: query(BGR 32-bit) -> 0
scale: query(RGB 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(BGR 8-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(BGR 4-bit per byte) -> 0
scale: query(RGB 4-bit per byte) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 1-bit) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Packed YUY2) -> 0
scale: query(Packed UYVY) -> 0
vo_debug: query(Planar YV12) returned 0x0 (i=0) 
scale: query(BGR 32-bit) -> 0
scale: query(RGB 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(BGR 8-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(BGR 4-bit per byte) -> 0
scale: query(RGB 4-bit per byte) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 1-bit) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Packed YUY2) -> 0
scale: query(Packed UYVY) -> 0
vo_debug: query(Planar I420) returned 0x0 (i=1) 
scale: query(BGR 32-bit) -> 0
scale: query(RGB 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(BGR 8-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(BGR 4-bit per byte) -> 0
scale: query(RGB 4-bit per byte) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 1-bit) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Packed YUY2) -> 0
scale: query(Packed UYVY) -> 0
vo_debug: query(Planar IYUV) returned 0x0 (i=2) 
The selected video_out device is incompatible with this codec.
*** [vo] Exporting mp_image_t, 608x464x12bpp YUV planar, 423168 bytes
(imgfmt: 32315659, planes: 0,0,0 strides: 0,0,0, chroma: 304x232, shift: h:1,v:1)

FATAL: Could not initialize video filters (-vf) or video output (-vo).


*** uninit(0xE4B)
Uninit audio filters...
[libaf] Removing filter dummy 
uninit audio: faad
FAAD: Closing decoder!
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x850b628  
DEMUXER: freeing sh_video at 0x85109d0  
DEMUXER: freeing sh_audio at 0x8519360  
Successfully enabled DPMS

[[[uninit getch2]]]
Config poped level=2
Config poped level=1

*** uninit(0x80)
vo: uninit ...

Exiting... (End of file)
max framesize was 3099 bytes



More information about the MPlayer-users mailing list