From f2489385f752b85e786565b8fa751b1838904324 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Sat, 2 Sep 2023 00:50:13 +0500 Subject: [mpv] Updates --- files/.config/mpv/mpv.conf | 69 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 20 deletions(-) (limited to 'files/.config/mpv/mpv.conf') diff --git a/files/.config/mpv/mpv.conf b/files/.config/mpv/mpv.conf index ea97994..8bed5a8 100644 --- a/files/.config/mpv/mpv.conf +++ b/files/.config/mpv/mpv.conf @@ -1,35 +1,50 @@ -osc=no -osd-bar=no - -# Speed up playback by the factor -speed=1.33 +# +# GENERAL +# -# Create a video output window even if there is no video -force-window=immediate +keep-open=yes +autofit-larger=70%x70% # Don't create window larger than 70 % +autofit-smaller=30%x30% # Don't create window smaller than 30% +no-terminal # Disable any use of the terminal and stdin/stdout/stderr -# Always save the current playback position on quit -save-position-on-quit +save-position-on-quit # Always save the current playback position on quit +watch-later-options-remove=fullscreen +watch-later-options-remove=volume +watch-later-options-remove=mute ignore-path-in-watch-later-config -# Disable any use of the terminal and stdin/stdout/stderr -no-terminal - -# Enable any whitelisted hardware video decoding API -hwdec=auto-safe +screenshot-format=png +screenshot-high-bit-depth=yes +screenshot-png-compression=0 +screenshot-directory=~/Documents/mpv-screenshots +screenshot-template=mpv-shot-%F-%{media-title}-%p-%n +hwdec=auto-safe # Enable any whitelisted hardware video decoding API interpolation=yes video-sync=display-resample -# If the current file is an image, kept open forever -image-display-duration=inf # -screenshot-template=mpv-shot-%F-%{media-title}-%p-%n -screenshot-directory=~/mpv-screenshots +# OSD/OSC +# + +osc=no +osd-bar=no -# Cache size -demuxer-max-bytes=500M +# +# PLAYBACK +# + +speed=1.33 # Speed up playback by the factor +volume-max=100 +image-display-duration=inf # If the current file is an image, kept open forever + +demuxer-max-bytes=500M # Cache size demuxer-max-back-bytes=100M +# +# STREAMING +# + ytdl-format="bestvideo[height<=?1080]+bestaudio/best" ytdl-raw-options=sponsorblock-mark=all @@ -43,6 +58,20 @@ af=lavfi=[loudnorm] [audio] speed=1 +[streams] +profile-cond=path:match('/streams/') ~= nil +profile-restore=copy +cache=no + +[protocol.https] +force-window=immediate # Create a video output window even if there is no video + +[protocol.http] +force-window=immediate # Create a video output window even if there is no video + +[protocol.ytdl] +profile=protocol.https + # # EXTENSIONS # -- cgit v1.2.3