Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
590 stars 37 forks source link

Initiating Skip To Silence Resizes MPV Window. #164

Open AziRizvi opened 1 month ago

AziRizvi commented 1 month ago

When I open MPV by either launching a file directly, or just opening MPV and opening a file from the history and I use the keybind for skipping to silence, the MPV window gets resized.

Video of the Issue:

https://github.com/user-attachments/assets/59536acb-588b-4022-8585-16f0dea5afe1

Other relevant info:

Current MPV Version: v0.38.0-743-gad7976c3 SmartSkip Version: 1.2 Platform: Windows 10 22H2

I'm also facing the same issue on MPV Version: v0.38.0-717-g92f052c1 I'm NOT facing this issue on MPV Version: v0.37.0-6-g5220725c

Here's what my MPV.conf looks like:

##########################################################################################

input-conf = "~~/input_uosc.conf"
#include = "~~/profiles.conf"
include = "~~/script-opts.conf"
use-filedir-conf = yes
#log-file = "~~desktop/mpv-lazy.log"

title = ${?pause==yes:⏸ }MPV${?filename: - ${filename}}${!filename:}${?duration/full: - [${duration/full}]}${!duration/full:}${?pause==yes:${?path: | ${path}}${!path:}}

#hwdec = nvdec-copy 
#hwdec-codecs = h264,h265,hevc,vp8,vp9,av1,prores
#vo = gpu

window-maximized = yes
geometry=1920x1080
keep-open = yes
osd-font-size = 40
keepaspect-window = no
volume = 60
volume-max = 300
alang = jpn,jp,japanese,ja,jap,english,eng,en                                                               
audio-channels = stereo
sub-auto = fuzzy
hr-seek-framedrop = no
input-builtin-bindings = no
save-position-on-quit = yes
watch-later-options = start,vid,aid,sid
demuxer-max-bytes = 1024MiB
demuxer-max-back-bytes = 512MiB
icc-cache-dir = "~~/_cache/icc"
gpu-shader-cache-dir = "~~/_cache/shader"
watch-later-dir = "~~/_cache/watch_later"

osd-fractions = yes
osd-playing-msg = "${filename}"
osd-duration = 2000
osd-playing-msg-duration = 3000
ao = wasapi
audio-file-auto = fuzzy
osc = no
slang = eng,en,english,subrip,external

sub-use-margins = yes
sub-ass-force-margins = yes
screenshot-format = png
screenshot-jpeg-quality = 100
screenshot-png-compression = 4
screenshot-webp-lossless = yes
screenshot-webp-quality = 100
screenshot-webp-compression = 0
screenshot-jxl-distance = 0
screenshot-tag-colorspace = no
screenshot-high-bit-depth = no
screenshot-template = "~~desktop/MPV-%P-N%n"

input-builtin-bindings = no
audio-pitch-correction = yes
sub-fix-timing = yes
blend-subtitles = yes
sub-file-paths-append = subtitles
sub-file-paths-append = subtitle
sub-file-paths-append = subs
sub-file-paths-append = sub
sub-file-paths-append = srt
af = lavfi=[alimiter=10:1:1:5:8000],scaletempo2=max-speed=8
cscale = ewa_lanczos
dscale = ewa_lanczossharp 
scale = ewa_lanczossoft
demuxer-mkv-subtitle-preroll=yes
sub-border-size = 3
sub-font='Trebuchet MS'
sub-shadow-offset = 2
sub-shadow-color = 0.0/0.0/0.0
sub-ass-override=strip
sub-ass-style-overrides=Kerning=yes
watch-later-options-remove=pause
watch-later-options-remove=vf,af
demuxer-cache-dir="~~/_cache/demuxer_cache"
video-margin-ratio-bottom=0.049

##########################################################################################

# VIDEO FX:

sharpen=0.4
video-output-levels=full
hue=-2
brightness=1
contrast=-2
saturation=3
gamma=1

##########################################################################################