2

I'm using mplayer to play videos. To have the option to play videos with mplayer from nautilus, I installed gnome-mplayer. I do not need the ui and it start with 0% sound while mplayer start with normal sound. I searched and they seem to be using the same config file, but why does gmplayer start with no sound? I tried a few changes, to the config file, then I tought of creating an alias gmplayer -volume 100, no luck while mplayer -volume 100 works. The volume keys (0 and 9) works with both mplayer and gmplayer. How can I get mplayer to play videos by default from nautilus or configure gmplayer to have sound by default?

kbenoit
  • 2,370

1 Answers1

5

Found an answer:

Some of the (initial) settings of gmplayer are done in the skins definitions. These are found in /usr/share/mplayer/skins/, and usually default points to the folder clearplayer. You may change that in the context menu of gmplayer, section skin browser. The following refers to skin clearplayer.

Open the skin configuration file:

sudo nano /usr/share/mplayer/skins/default/skin (use your preferred editor).

Now find the line reading something like

hpotmeter = vol, 18, 14, NULL, 100, 0, 331, 64, 45, 14, evSetVolume

The important information is the event to trigger (evSetVolume). The values set are

vol: The name of the button image

18, 14: The size of the button image

NUll, 100: Information about special potentiometer phases

0: The default (startup) value

331, 64, 45, 14: The geometry of the box for the slider.

So, to set the default (initial) value of the volume say to 100%, just modify the default from 0 to 100. The documentation says you might even set it to - (hyphen) to respect the last value, but that did not work for me.

If there is an entry potmeter = ... evSetVolume, remove that, as it is deprecated (it will give you an error).

For more information on gmplayer skins, see http://www.mplayerhq.hu/DOCS/HTML/en/skin.html.

ridgy
  • 2,516