mpv_thumbnail_script icon indicating copy to clipboard operation
mpv_thumbnail_script copied to clipboard

osc scale in smaller videos

Open github-account1111 opened this issue 5 years ago • 4 comments

OSC is tiny in smaller res videos; it's unusable. Is there a setting similar to osd-scale-by-window=no in the og osc?

github-account1111 avatar May 26 '20 20:05 github-account1111

Sounds like behaviour of mpv's OSC itself. See if the following in mpv.conf helps.

script-opts-append=osc-vidscale=no # Do not scale by window size
script-opts-append=osc-scalewindowed=0.5
script-opts-append=osc-scalefullscreen=0.5
script-opts-append=osc-scaleforcedwindow=0.5

Check https://mpv.io/manual/stable/#configurable-options. Adjust the 0.5 values to your liking. You can also write in one line

script-opts=osc-vidscale=no,osc-scalewindowed=0.5,osc-scalefullscreen=0.5,osc-scaleforcedwindow=0.5

together with whatever you already have for script-opts, but I kinda like to put config in their own sections.

automatata avatar Aug 22 '20 15:08 automatata

Not sure if this will help.. or if anyone else comes across this wants to know but I changed the scale of it by searching for this line in the script. w = thumbnailer_options.thumbnail_width and changing it to.. w = thumbnailer_options.thumbnail_width * 2 or put any multiplier you want. It's much more visible/useable without being too big.

Fadexz avatar Mar 04 '21 09:03 Fadexz

w = thumbnailer_options.thumbnail_width
and changing it to..
w = thumbnailer_options.thumbnail_width * 2

I just tried this and it doubles the resolution of the files saved.

I think you can achieve the same thing? by setting values higher or lower in: ~/.config/mpv/script-opts/mpv_thumbnail_script.conf thumbnail_width=400 thumbnail_height=400

JJenkx avatar Jun 10 '22 02:06 JJenkx


w = thumbnailer_options.thumbnail_width

and changing it to..

w = thumbnailer_options.thumbnail_width * 2

I just tried this and it doubles the resolution of the files saved.

I think you can achieve the same thing? by setting values higher or lower in:

~/.config/mpv/script-opts/mpv_thumbnail_script.conf

thumbnail_width=400

thumbnail_height=400

Yea, that was a long time ago, I realised there was a dedicated way for resizing it, but good to know that I guess in case you wanted to make it half the resolution but still increase the size.

Fadexz avatar Jun 10 '22 02:06 Fadexz