gnome-mplayer commandline options

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
amethyst
Posts: 2414
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 504 times

gnome-mplayer commandline options

Post 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 "$@"
User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: gnome-mplayer commandline options

Post by April »

Where was the "the defaultmediaplayer script " please?

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
mikewalsh
Moderator
Posts: 6154
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 792 times
Been thanked: 1979 times

Re: gnome-mplayer commandline options

Post 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. ;)

User avatar
amethyst
Posts: 2414
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 504 times

Re: gnome-mplayer commandline options

Post 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.

User avatar
amethyst
Posts: 2414
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 504 times

Re: gnome-mplayer commandline options

Post 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.

User avatar
MochiMoppel
Posts: 1232
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

Re: gnome-mplayer commandline options

Post 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".

User avatar
amethyst
Posts: 2414
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 504 times

Re: gnome-mplayer commandline options

Post 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.

User avatar
MochiMoppel
Posts: 1232
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

Re: gnome-mplayer commandline options

Post 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.

User avatar
amethyst
Posts: 2414
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 504 times

Re: gnome-mplayer commandline options

Post 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.

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: gnome-mplayer commandline options

Post 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.

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: gnome-mplayer commandline options

Post 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?

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

Post Reply

Return to “Users”