Page 1 of 1

gnome-mplayer commandline options

Posted: Sun Apr 17, 2022 8:52 am
by amethyst

I struggled a bit to get this right so just sharing. I want to start my videos in fullscreen mode and at a certain volume level. So I edited the defaultmediaplayer script (gnome-mplayer is my default player) as follows. Example:

Code: Select all

gnome-mplayer --fullscreen --volume=12 "$@"

Re: gnome-mplayer commandline options

Posted: Sat Apr 23, 2022 9:31 pm
by April

Where was the "the defaultmediaplayer script " please?


Re: gnome-mplayer commandline options

Posted: Sat Apr 23, 2022 11:12 pm
by mikewalsh

@April :-

"defaultmediaplayer" lives where all the other Puppy "default application" scripts live.....in /usr/local/bin. These are what Menu->Setup->Default Applications Chooser writes the categories to; each individual category output writes to a separate script.

(It may be called PuppyApps Default Applications Chooser in Xenialpup64; I forget whether it uses the modernised version or the older one...)

Mike. ;)


Re: gnome-mplayer commandline options

Posted: Sun Jun 26, 2022 6:50 am
by amethyst

So bloody difficult (maybe not even possible) to set some options with this player. What I want to do is to set a fixed window size for all videos BUT the player must still play every video in correct proportion (in other words: if I set the fixed window width to 1024, the player must automatically adjust the height of any video). I can easily do this with mplayer (not sure why it's so difficult with gnome-mplayer as it is basically just a GUI for mplayer) and mpv. I also want to set the geometry of the window. Anyone been able to get these things right with gnome-mplayer?
BTW - This works when you manually resize the window and drop in different files (so it is possible and works) but can't get it to work automatically with commandline.
Edit: Have been able to set the window size in the player's preferences (extra options for mplayer) and also the starting volume. Can't get the geometry to work.


Re: gnome-mplayer commandline options

Posted: Mon Jun 27, 2022 4:53 am
by amethyst

Can't get the geometry to work.

BUMP...It does not save the previous window position and size correctly. Anyone with a solution? :?
PS: There is a setting in preferences to save the previous windows screen position, that works partially (the screen position is saved correctly but the window size in height is buggered up, that's not what I want.


Re: gnome-mplayer commandline options

Posted: Mon Jun 27, 2022 7:56 am
by MochiMoppel
amethyst wrote: Mon Jun 27, 2022 4:53 am

PS: There is a setting in preferences to save the previous windows screen position, that works partially (the screen position is saved correctly but the window size in height is buggered up, that's not what I want.

Deselect the next option "Resize window when new video is loaded".


Re: gnome-mplayer commandline options

Posted: Mon Jun 27, 2022 8:27 am
by amethyst
MochiMoppel wrote: Mon Jun 27, 2022 7:56 am
amethyst wrote: Mon Jun 27, 2022 4:53 am

PS: There is a setting in preferences to save the previous windows screen position, that works partially (the screen position is saved correctly but the window size in height is buggered up, that's not what I want.

Deselect the next option "Resize window when new video is loaded".

Doesn't work for me. Height of window still shifts when another video is started.


Re: gnome-mplayer commandline options

Posted: Mon Jun 27, 2022 12:57 pm
by MochiMoppel
amethyst wrote: Mon Jun 27, 2022 8:27 am

Doesn't work for me. Height of window still shifts when another video is started.

Doesn't work for me either anymore (appeared to work for a while). Even when using the same video, at each start the height would increase by a fixed amount. What does work though is setting the desired dimension on the command line
gnome-mplayer -w 600 -h 400 /path/to/file would play any file in a window with a 600x400 dimension, adjusting the video size accordingly.


Re: gnome-mplayer commandline options

Posted: Mon Jun 27, 2022 1:34 pm
by amethyst
MochiMoppel wrote: Mon Jun 27, 2022 12:57 pm
amethyst wrote: Mon Jun 27, 2022 8:27 am

Doesn't work for me. Height of window still shifts when another video is started.

Doesn't work for me either anymore (appeared to work for a while). Even when using the same video, at each start the height would increase by a fixed amount. What does work though is setting the desired dimension on the command line
gnome-mplayer -w 600 -h 400 /path/to/file would play any file in a window with a 600x400 dimension, adjusting the video size accordingly.

That's not a problem, I use -xy 1024 (you only need to specify the width, the video adjusts accordingly) but then you sit with the geometry (screen position) problem. This is what I have all along, my video size is correct but then I need to drag it to the position I want. As soon as you tick the save window settings in preferences, the height problems occur. Not really a big issue for me because I only drag the window once at startup and then load additional videos by dropping it into the video window but still annoying nevertheless. I don't have this problem with mpv and plain mplayer because those players accept the -geometry option too.


Re: gnome-mplayer commandline options

Posted: Mon Jun 27, 2022 6:03 pm
by williams2

JWM does not play nicely with some (or all) apps that run in fullscreen.
This is a problem with JWM, not the app.

I can run mpv using --geometry, like this:

Code: Select all

mpv --geometry=640x480+200+300 video.mp4

I think this has already been mentioned in this thread, but I've mentioned it again in case it wasn't.
I think it was said that mpv works with --geometry and mplayer does not.


Re: gnome-mplayer commandline options

Posted: Sun Jul 03, 2022 11:28 pm
by April

Seeing a thread on gnome-mplayer I have a problem in that I have screwed up the original programming . Now I want to remove mplayer and smplayer and when gone ,reinstall a fresh copy .

I can't find a way to do this yet?