MPlayer skin errors

Been seeing this for a while, several Debian based distros, I’m always using Mate.

Asking here because I’ve installed Ubuntu-Mate at 18.04 x64.

My issue:

[quote]
Launch MPlayer via vitual console,
or click mPlayer icon in Mate,
or right click a compatible media file and select mPlayer,

All methods produce same results, repeats 100%.

Within a second or so, first error message and clearing that, a second error message.

First error message:
“Error in skin config file at line 6: PNG read error in /usr/share/mplayer/skins/default/main”
The only button in this dialog is ‘Ok’. Click Ok.

Second error message:
“Config file processing error with skin ‘default’”.
The only button in this dialog is ‘Ok’. Click Ok.
no further messages, no MPlayer windows.[/quote]

Here is a virtual console session I just ran before trying any edits (in other words, default as installed).

[code]
mmmmna@3GHz-MCP61SM2MA:~$ gmplayer
MPlayer 1.2.1 (Debian), built with gcc-5.3.1 © 2000-2016 MPlayer Team
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.
Error in skin config file at line 6: PNG read error in /usr/share/mplayer/skins/default/main
Config file processing error with skin ‘default’

Exiting… (Fatal error)
mmmmna@3GHz-MCP61SM2MA:~$
mmmmna@3GHz-MCP61SM2MA:~$
mmmmna@3GHz-MCP61SM2MA:~$
mmmmna@3GHz-MCP61SM2MA:~$ gmplayer --help
Usage: mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)
-vo select video output driver (’-vo help’ for a list)
-ao select audio output driver (’-ao help’ for a list)
vcd:// play (S)VCD (Super Video CD) track (raw device, no mount)
dvd:// play DVD title from device instead of plain file
-alang/-slang select DVD audio/subtitle language (by 2-char country code)
-ss seek to given (seconds or hh:mm:ss) position
-nosound do not play sound
-fs fullscreen playback (or -vm, -zoom, details in the man page)
-x -y set display resolution (for use with -vm or -zoom)
-sub specify subtitle file to use (also see -subfps, -subdelay)
-playlist specify playlist file
-vid x -aid y select video (x) and audio (y) stream to play
-fps x -srate y change video (x fps) and audio (y Hz) rate
-pp enable postprocessing filter (details in the man page)
-framedrop enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)
<- or -> seek backward/forward 10 seconds
down or up seek backward/forward 1 minute
pgdown or pgup seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or ESC stop playing and quit program[/code]

Seems silly that the included, default skin file cannot be loaded. Was it included in a broken state? I would be open to correcting this matter via using a different skin, since there are 4 skins included, but the cli --help response didn’t indicate how to select a particular skin.
Libre Office Draw can open the exact file /usr/share/mplayer/skins/default/main.png.
The config file ~/.mplayer/config is essentially empty.
man gmplayer shifts me to man mplayer.
man mplayer, when grepped, includes the word skin, but seems to ask for a directory as a variable while the error message declares a file in the directory has the error.

I’ve edited my ~/.mplayer/config file to read as follows:

mmmmna@3GHz-MCP61SM2MA:~/Music$ cat ~/.mplayer/config 
# Write your default config options here!

-skin /usr/local/share/mplayer/skins/Blue/

Launching from a virtual console causes this:

mmmmna@3GHz-MCP61SM2MA:~/Music$ gmplayer Gaudi-Bass\ Sweat\ and\ Tears-Babylon\ Flamenco-World\ Music.flac
Option -skin needs a parameter at line 3
mmmmna@3GHz-MCP61SM2MA:~/Music$

I tried a few more things in ~/.mplayer/config, but not getting beyond needing that line 3 parameter.

Can anyone post what actually cures this?

Hi @mmmmna,

try a direct download of a package (choose the one for Bionic):

https://packages.ubuntu.com/search?keywords=mplayer-skins

I hope it helps. :smiley:

Downloaded the indicated mplayer skin package.
Attempted to install the exact package which I downloaded.

mmmmna@3GHz-MCP61SM2MA:~$ sudo apt install ./mplayer-skins_3.2_all.deb [sudo] password for mmmmna: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'mplayer-skins' instead of './mplayer-skins_3.2_all.deb' mplayer-skins is already the newest version (3.2). mplayer-skins set to manually installed. The following packages were automatically installed and are no longer required: linux-headers-4.13.0-37 linux-headers-4.13.0-37-generic linux-headers-4.13.0-38 linux-headers-4.13.0-38-generic linux-headers-4.13.0-39 linux-headers-4.13.0-39-generic linux-image-4.13.0-37-generic linux-image-4.13.0-38-generic linux-image-4.13.0-39-generic linux-image-extra-4.13.0-37-generic linux-image-extra-4.13.0-38-generic linux-image-extra-4.13.0-39-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. mmmmna@3GHz-MCP61SM2MA:~$
Surprised, I assumed that it was already installed but I forgot the outcome of trying the new skin package, so just now, I tried launching mplayer from virtual console.

mmmmna@3GHz-MCP61SM2MA:~$ mplayer Option -skin needs a parameter at line 3 mmmmna@3GHz-MCP61SM2MA:~$
Again, I’m thinking the Debian package has a defect, as I have seen the error in other distributions.

It's very likely and thus would be needed to be reported upstream (file a bug at Debian).

Have you tried looking at the content of the default skin to check what PNG file it can't open on line 6?

EDIT: if I run mplayer from a terminal, I don't have this issue. I don't have gmplayer installed and I can't find a package with that name. Where is it from?
EDIT: seems to be from player-gui. The actual skin file is "skin" and it references "main" on line 6.
EDIT: the problem seems to be well-know and has been there for years. Check this to download an updated mplayer-skins package (even if it's for Xenial, it works fine on Bionic: I've just installed and it fixes the issue) or this if you want to download the latest version of the skin and install it manually.

You can also comment on the bug report on Launchpad as while a fix has been released for Xenial, it seems to be broken again since then and might be related to changes in MPlayer.

The supposed fix created an error different from the initial error, and identical to the new error I already posted.

I’ll let the launchpad thread pursue the issue at its own pace.

The supposed fix created an error different from the initial error, and identical to the new error I already posted.

It fixes it for me. Did you get the right deb package (3.2.1) and installed it properly? What new error are you talking about? The one about -skin option? If so, have you tried to delete the config file that you created to try to fix the original issue?

Also, have you tried to manually install the skin from its latest version (second link I've posted)?

I presume this is going to come across as rough, but it is factual.

My recent phrase “The supposed fix” is how I’m telling this thread what I saw after I performed exactly what was posted. The error changed slightly AFTER performing the posted fix. It remains broken AFTER performing the proposed fix.

All in all, I’m saying that this hadn’t been fixed as of that post, and as of now, I’m going to ignore further discussion here, only because the error occurred in MANY Debian derivatives, not just Ubuntu-Mate. The repository package installs broken software in many Debian distros.

I have reported the issue in 2 locations (here and in the Launchpad thread); I have no further interest in discussing this broken package in this thread: until I can install totally functional software from the official repository, I’m backing out.

This has to get fixed for everyone, not just a fix for my installation.