[MPlayer-users] GUI fails with skin PNG read error. (svn) (Ingo Br?ckl)

Giorgio Vazzana mywing81 at gmail.com
Wed Jan 25 15:37:54 CET 2012


2012/1/24 Ingo Brückl <ib at wupperonline.de>:
> Rinaldi J. Montessi wrote on Tue, 24 Jan 2012 07:02:54 -0600:
>
>> [skin] configuration file: /home/Rinaldi/.mplayer/skins/Blue/skin
>> [skin]  section: movieplayer
>> [skin]   window: main
>> [skin]    image: main -2,-2
>> [bitmap] read error #1: /home/Rinaldi/.mplayer/skins/Blue/main.png

Ingo,

I have the same problem too, leaving me unable to use the gui.
After I quick look to the sources, I applied the attached patch and
ran gmplayer -v -v:

holden at rye:~$ gmplayer -v -v
MPlayer SVN-r34601-4.4.3 (C) 2000-2012 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: AMD Sempron(tm) Processor 3300+ (Family: 15, Model: 44, Stepping: 2)
extended cpuid-level: 24
extended cache-info: 8421696
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/holden/.mplayer/codecs.conf'
Reading optional codecs config file /home/holden/.mplayer/codecs.conf:
No such file or directory
Reading optional codecs config file
/usr/local/etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/holden/.mplayer/fonts'
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] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Configuration: --enable-gui --disable-vidix --disable-mp3lib
CommandLine: '-v' '-v'
Using nanosleep() timing
get_path('input.conf') -> '/home/holden/.mplayer/input.conf'
Parsing input config file /home/holden/.mplayer/input.conf
Input config file /home/holden/.mplayer/input.conf parsed: 92 binds
GUI init.
GTK init.
[ws] display name: :0.0 => local display.
vo: X11 truecolor visual 0x21, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x24, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x25, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x26, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x27, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x28, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x29, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2a, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2b, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2c, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2d, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2e, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x2f, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x30, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x31, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x32, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x33, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x34, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x35, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x36, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x37, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x38, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x39, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x3a, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x3b, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x3c, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x3d, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x3e, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x3f, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x40, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x41, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x42, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x43, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x44, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x45, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x46, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x47, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x48, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x49, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x4a, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x23, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x72, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x73, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x74, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x75, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x76, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x77, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x78, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x79, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x7a, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x7b, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x7c, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x7d, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x7e, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x7f, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x80, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x81, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x82, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x83, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x84, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x85, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x86, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x87, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x88, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x89, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x8a, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x8b, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x8c, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x8d, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x8e, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x8f, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x90, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x91, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x92, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x93, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x94, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x95, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x96, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x97, depth 32, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x98, depth 32, R:FF0000 G:FF00 B:FF
[ws] Screen depth: 32
[ws]  size: 1280x1024
[ws]  origin: +0+0
[ws]  red mask: 0xff0000
[ws]  green mask: 0xff00
[ws]  blue mask: 0xff
[ws] XShm version is 1.1
[ws] XShape version is 1.1
get_path('skins') -> '/home/holden/.mplayer/skins'
[interface] skin directory #1: /home/holden/.mplayer/skins
[interface] skin directory #2: /usr/local/share/mplayer/skins
[skin] configuration file: /home/holden/.mplayer/skins/default/skin
[skin]  section: movieplayer
[skin]   window: main
[skin]    decoration: enable
[skin]    image: main 0,0
avcodec_decode_video2: ret=646, decode_ok=384
avctx->pix_fmt=2, img->Bpp=24
[bitmap] file: /home/holden/.mplayer/skins/default/main.png
[bitmap]  size: 380x115, color depth: 24
[bitmap]  image size: 131100
[bitmap] 32 bpp conversion size: 174800
[skin]     bitmap: 380x115
[bitmap] 1 bpp conversion size: 0
[skin]     mask: 0x0
[skin]    button image: button_prev 2,48
[skin]     message: evPrev (#6)
[skin]     size: 39x42
avcodec_decode_video2: ret=2221, decode_ok=384
avctx->pix_fmt=28, img->Bpp=0
[bitmap] read error #1: /home/holden/.mplayer/skins/default/button_prev.png
Error in skin config file on line 8: PNG read error in
/home/holden/.mplayer/skins/default/button_prev
[x11] NET style stay on top (layer 0). Using state _NET_WM_STATE_ABOVE.
Config file processing error with skin 'default'
[x11] NET style stay on top (layer 0). Using state _NET_WM_STATE_ABOVE.

*** uninit(0x84)
GUI done.

Exiting... (Fatal error)
max framesize was 0 bytes


As you can see the decoding for button_prev.png goes well, but it
returns avctx->pix_fmt=28 which is not included in the following
switch (looking at libavutil/pixfmt.h I can see that 28 corresponds
to: PIX_FMT_RGBA,      ///< packed RGBA 8:8:8:8, 32bpp, RGBARGBA...)
and so img->Bpp becomes 0. If you need the skin I'm using you can find
it here: http://mywing.altervista.org/mplayer/skins.tgz . I hope this
will help you fix the problem.

> This is a (general) PNG decoding error. Which versions of libpng and ffmpeg
> do you use?

ii  libpng12-0                           1.2.42-1ubuntu2.2
                  PNG library - runtime
ii  libpng12-dev                         1.2.42-1ubuntu2.2
                  PNG library - development

ffmpeg from git, fetched automatically from configure.

> BTW, do you compile by yourself, so that I can send you patches to further
> investigate where the problem occurs?

Yes.

Giorgio Vazzana
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gmplayer-png-error.diff
Type: text/x-patch
Size: 1012 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20120125/426b1837/attachment.bin>


More information about the MPlayer-users mailing list