[MPlayer-users] Re: gui?

Sven Hartge hartge at ds9.argh.org
Fri Dec 7 01:24:20 CET 2001


Zaq Rizer <zrizer at yahoo.com> schrieb:

> Ok, I know everyone is going to scream,  RTFM!! at me, but I _have_
> RTFM and I still can't get the gui to work. I compiled with the
> -enable-gui option and I have downloaded a skin. For example, neutron
> (skin) is in ~/.mplayer/Skin/neutron.  (with all skin files inside of
> neutron of course). But when mplayer starts it says no skin found in
> either of the two paths..

You have already been told the solution (ln -s neutron default), but I
want (for the archives) to introduce a tool, which often helps to
diagnose such problems:

strace

I guess, after starting gmplayer (or mplayer -gui), you got something
link this:

,----
| MPlayer CVS-011202-17:45(C) 2000-2001 Arpad Gereoffy (see DOCS!)
|
| CPU vendor name: AuthenticAMD  max cpuid level: 1
| CPU: Advanced Micro Devices Athlon TB Thunderbird
| extended cpuid-level: 6
| CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
| vo: X11 running at 1024x768 with depth 24 and 32 bits/pixel (":0.0" => local display)
| Reading /home/oweh/.mplayer/codecs.conf: 21 audio & 57 video codecs
| Font /home/oweh/.mplayer/font/font.desc loaded successfully! (495 chars)
| SKIN dir 1: '/home/oweh/.mplayer/Skin'
| SKIN dir 2: '/usr/share/mplayer/Skin'
| [app] skin configfile not found.
`----

(Ok, I admit, not very usefull error message, it should say something
about "default skin missing" or the like)

Now, using strace, I get a logfile, which lists all systemcalls, etc.:

$ strace -o gmplayer.strace gmplayer

This file looks like:

,----
| execve("/usr/bin/gmplayer", ["gmplayer"], [/* 36 vars */]) = 0
| uname({sys="Linux", node="skuld", ...}) = 0
| brk(0)                                  = 0x821dedc
| open("/usr/lib/libartsdsp.so.0", O_RDONLY) = 3
| read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\000"..., 1024) = 1024
| fstat64(3, {st_mode=S_IFREG|0644, st_size=10280, ...}) = 0
| old_mmap(NULL, 13404, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40016000
| mprotect(0x40019000, 1116, PROT_NONE)   = 0
| old_mmap(0x40019000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x40019000
| close(3)                                = 0
| open("/usr/lib/libartsc.so.0", O_RDONLY) = 3
| ... and so on ...
`----

I know grep for all occurences of "open":

,----
| open("/usr/lib/libartsdsp.so.0", O_RDONLY) = 3
| open("/usr/lib/libartsc.so.0", O_RDONLY) = 3
| open("/lib/libdl.so.2", O_RDONLY)       = 3
| open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
| open("/etc/ld.so.cache", O_RDONLY)      = 3
| open("/usr/lib/liblirc_client.so.0", O_RDONLY) = 3
| open("/usr/lib/libstdc++.so.3", O_RDONLY) = 3
| [...]
| [... lots of libs following ...]
| [...]
| open("/home/oweh/.mplayer/config", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = -1 EEXIST (File exists)
| open("/home/oweh/.mplayer/config", O_RDONLY|O_LARGEFILE) = 3
| open("/home/oweh/.Xauthority", O_RDONLY) = 4
| open("/home/oweh/.mplayer/codecs.conf", O_RDONLY|O_LARGEFILE) = 4
| open("/home/oweh/.mplayer/font/font.desc", O_RDONLY|O_LARGEFILE) = 4
| open("/home/oweh/.mplayer/font//arpi_osd_a.raw", O_RDONLY|O_LARGEFILE) = 5
| open("/home/oweh/.mplayer/font//arpi_osd_b.raw", O_RDONLY|O_LARGEFILE) = 5
| open("/home/oweh/.mplayer/font//arpi_progress_a.raw", O_RDONLY|O_LARGEFILE) = 5
| open("/home/oweh/.mplayer/font//arpi_progress_b.raw", O_RDONLY|O_LARGEFILE) = 5
| open("/home/oweh/.mplayer/font//arial-12-00_a.raw", O_RDONLY|O_LARGEFILE) = 5
| open("/home/oweh/.mplayer/font//arial-12-00_b.raw", O_RDONLY|O_LARGEFILE) = 5
| open("/usr/share/mplayer/Skin/default/skin", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
| open("/home/oweh/.mplayer/Skin/default/skin", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
`----

Note the last two lines! You can clearly see, what gmplayer is trying to
open and where its problem lies.

Yeah, this was easy, just put a skin (or a symlink) into Skin/default,
and gmplayer will be happy.

S!

-- 
BOFH excuse #363:

Out of cards on drive D:




More information about the MPlayer-users mailing list