You are not logged in.

#1 2021-07-17 11:01:06

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 141

how to make mpv's OSC smaller?

So, I looked around and found the mpv.conf file and copied it into my .config folder ...

but I don't know what to change in the mpv.conf file to make the OSC (the screen that controls the videos) smaller. Right now the OSC is huge when I open any video and practically blocks off the entire lower half of the screen and it's really annoying.

Does anyone know what or which part of the mpv.conf I need to change to make mpv's OSC smaller?

#
# Example mpv configuration file
#
# Warning:
#
# The commented example options usually do _not_ set the default values. Call
# mpv with --list-options to see the default values for most options. There is
# no builtin or example mpv.conf with all the defaults.
#
#
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
# system-wide settings, all of which are overridden by the command line.
#
# Configuration file settings and the command line options use the same
# underlying mechanisms. Most options can be put into the configuration file
# by dropping the preceding '--'. See the man page for a complete list of
# options.
#
# Lines starting with '#' are comments and are ignored.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.

##################
# video settings #
##################

# Start in fullscreen mode by default.
#fs=yes

# force starting with centered window
#geometry=50%:50%

# don't allow a new window to have a size larger than 90% of the screen size
#autofit-larger=90%x90%

# Do not close the window on exit.
#keep-open=yes

# Do not wait with showing the video window until it has loaded. (This will
# resize the window once video is loaded. Also always shows a window with
# audio.)
#force-window=immediate

# Disable the On Screen Controller (OSC).
#osc=no

# Keep the player window on top of all other windows.
#ontop=yes

# Specify high quality video rendering preset (for --vo=gpu only)
# Can cause performance problems with some drivers and GPUs.
#profile=gpu-hq

# Force video to lock on the display's refresh rate, and change video and audio
# speed to some degree to ensure synchronous playback - can cause problems
# with some drivers and desktop environments.
#video-sync=display-resample

# Enable hardware decoding if available. Often, this does not work with all
# video outputs, but should work well with default settings on most systems.
# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
# may or may not help.
#hwdec=auto

##################
# audio settings #
##################

# Specify default audio device. You can list devices with: --audio-device=help
# The option takes the device string (the stuff between the '...').
#audio-device=alsa/default

# Do not filter audio to keep pitch when changing playback speed.
#audio-pitch-correction=no

# Output 5.1 audio natively, and upmix/downmix audio with a different format.
#audio-channels=5.1
# Disable any automatic remix, _if_ the audio output accepts the audio format.
# of the currently played file. See caveats mentioned in the manpage.
# (The default is "auto-safe", see manpage.)
#audio-channels=auto

##################
# other settings #
##################

# Pretend to be a web browser. Might fix playback with some streaming sites,
# but also will break with shoutcast streams.
#user-agent="Mozilla/5.0"

# cache settings
#
# Use 150MB input cache by default. The cache is enabled for network streams only.
#cache-default=153600
#
# Use 150MB input cache for everything, even local files.
#cache=153600
#
# Disable the behavior that the player will pause if the cache goes below a
# certain fill size.
#cache-pause=no
#
# Read ahead about 5 seconds of audio and video packets.
#demuxer-readahead-secs=5.0
#
# Raise readahead from demuxer-readahead-secs to this value if a cache is active.
#cache-secs=50.0

# Display English subtitles if available.
#slang=en

# Play Finnish audio if available, fall back to English otherwise.
#alang=fi,en

# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
# If the file seems to be valid UTF-8, prefer UTF-8.
# (You can add '+' in front of the codepage to force it.)
#sub-codepage=cp1256

# You can also include other configuration files.
#include=/path/to/the/file/you/want/to/include

############
# Profiles #
############

# The options declared as part of profiles override global default settings,
# but only take effect when the profile is active.

# The following profile can be enabled on the command line with: --profile=eye-cancer

#[eye-cancer]
#sharpen=5

Offline

#2 2021-07-17 12:48:41

twoion
ほやほや
Registered: 2015-08-10
Posts: 3,250

Re: how to make mpv's OSC smaller?

Which version of mpv? In recent versions of mpv, the OSC is being handled by an extra "script" and not the core of mpv. To configure that OSC's scaling, refer to https://mpv.io/manual/master/#configuration. If the manual doesn't work for your version of mpv, consider installing the "mpv" package from the BunsenLabs buster-backports repository which is at version 0.30.0 currently.

The following options should get you set if you have a version which fits the current manual. You can adjust the scaling factors to your liking.

script-opts=osc-scalewindowed=0.75,osc-scalefullscreen=0.75

Note that in recent versions of mpv, you can also pick a more compact bottom-bar layout using the osc-layout setting (see the manual).

Alternatively, the OSC can read its config from an extra config file ~/.config/mpv/script-opts/osc.conf into which you can just write the options without the "osc-" prefix.

For reference, here is my file ~/.config/mpv/script-opts/osc.conf (note that I make the OSC bigger, not smaller:

layout=box
seekbarstyle=bar
deadzonesize=0
minmousemove=3
vidscale=no
scalewindowed=2.0
scalefullscreen=2.0

Nassdachs

Offline

#3 2021-07-17 17:02:51

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 141

Re: how to make mpv's OSC smaller?

I pasted "
script-opts=osc-scalewindowed=0.75,osc-scalefullscreen=0.75
"

into mpv.conf, changed 0.75 to 0.2 and after saving the file, noticed no difference.

Then I tried the second method, created a folder named scrpt-ops and copied and pasted your lines of command and saved as osc.conf

I once again changed the numbers and noticed no change in size.

I just intalled the newest version of bunsenlabs lithium a few weeks ago ,,, I think I have the newest version of mpv?

edit: I ran the mpv --osc command and got the following:

mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
built on UNKNOWN

Last edited by sexynsmartjenny (2021-07-17 17:08:46)

Offline

#4 2021-07-17 17:15:17

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 141

Re: how to make mpv's OSC smaller?

I just updated to the newest version of mpv

jenny@jenny:~$ mpv --osc
mpv 0.33.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
 built on Mon Nov 30 12:11:23 UTC 2020
FFmpeg library versions:
   libavutil       56.51.100
   libavcodec      58.91.100
   libavformat     58.45.100
   libswscale      5.7.100
   libavfilter     7.85.100
   libswresample   3.7.100
FFmpeg version: n4.3.1

Usage:   mpv [options] [url|path/]filename

Basic options:
 --start=<time>    seek to given (percent, seconds, or hh:mm:ss) position
 --no-audio        do not play sound
 --no-video        do not play video
 --fs              fullscreen playback
 --sub-file=<file> specify subtitle file to use
 --playlist=<file> specify playlist file

 --list-options    list all mpv options
 --h=<string>      print options which contain the given string in their name

And still neither of the two methods work sad

after I edit my osc.conf file, I dont see any change to mpv

Last edited by sexynsmartjenny (2021-07-17 17:27:40)

Offline

#5 2021-07-17 17:37:57

twoion
ほやほや
Registered: 2015-08-10
Posts: 3,250

Re: how to make mpv's OSC smaller?

Do the options work if you just start mpv from the command line?

mpv --script-opts=osc-scalewindowed=0.75,osc-scalefullscreen=0.75 /path/to/a/video/file

? If yes the problem is just the location of the config file. fwiw I'm using ~/.mpv and not ~/.mpv/config.


Nassdachs

Offline

#6 2021-07-22 11:56:14

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 141

Re: how to make mpv's OSC smaller?

twoion wrote:

Do the options work if you just start mpv from the command line?

mpv --script-opts=osc-scalewindowed=0.75,osc-scalefullscreen=0.75 /path/to/a/video/file

? If yes the problem is just the location of the config file. fwiw I'm using ~/.mpv and not ~/.mpv/config.


yep, this method worked! smile I need to go to work now. I will try to change the location of the config file on weekends. Thanks! smile

Offline

#7 2021-07-23 12:02:15

ohnonot
...again
Registered: 2015-09-29
Posts: 5,534

Re: how to make mpv's OSC smaller?

Mine is in ~/.config/mpv/mpv.conf and what twoion suggested works. Version is 0.33.1.


Give to COVAX! Here or here. (explanation)

Offline

#8 2021-07-24 14:22:53

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 141

Re: how to make mpv's OSC smaller?

Hi everyone. Thank you for all the help! I was finally able to accomplish what I wanted, and for future reference and anyone else with the same issue, this is what I did.

I deleted the mpv.conf file in .config folder. Then I created a .mpv folder in my home folder and extracted the mpv.conf.gz into that folder.

Then, I pasted the following code into my mpv.conf file:

osc=yes
script-opts=osc-scalewindowed=0.75, osc-scalefullscreen=0.75

Then save the file and ...

And voila! It worked!

I'm using mplayer version 0.33.0 just FYI

Last edited by sexynsmartjenny (2021-07-24 14:23:19)

Offline

#9 2021-07-28 06:08:34

ohnonot
...again
Registered: 2015-09-29
Posts: 5,534

Re: how to make mpv's OSC smaller?

Great it works!

sexynsmartjenny wrote:

I created a .mpv folder in my home folder

Just a minor niggle:

This location is deprecated, according to some (freedesktop, XDG?) specifications, most Linux software prefers to read its configuration from dedicated folders under ~/.config (or whatever the environment variable $XDG_CONFIG_HOME is set to), see my previous post.

In fact, the current mpv man page does not even mention ~/.mpv as a possible location. That it works is probably some remnant backward compatibility feature, and might get removed at any point?


Give to COVAX! Here or here. (explanation)

Offline

#10 Today 00:08:35

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 141

Re: how to make mpv's OSC smaller?

The only thing that's not working right now is the "seekbarstyle=diamond"

Now matter what I write the mpv.config file, it's not working. It keeps giving me bar in stead of anything else.

And yes, I do have it in .config now.

Offline

Board footer

Powered by FluxBB