summary refs log tree commit diff
path: root/.config/mpv/config
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-12-03 13:35:27 +0100
committerRobert Günzler <r@gnzler.io>2020-12-07 19:28:05 +0100
commit323c45966e430c460c009f8c56e132ca92826292 (patch)
tree4bab9e6aa786c394c03b37195d480d1dbad92051 /.config/mpv/config
parent0b8a428e0c0391241d7a93c27e455209929c9893 (diff)
mpv: various tweaks
* fix autofit settings
* document profiles
Diffstat (limited to '.config/mpv/config')
-rw-r--r--.config/mpv/config23
1 files changed, 17 insertions, 6 deletions
diff --git a/.config/mpv/config b/.config/mpv/config
index 9d8af04..3491d76 100644
--- a/.config/mpv/config
+++ b/.config/mpv/config
@@ -3,7 +3,6 @@
 # no-input-default-bindings
 autoload-files=no
 input-ipc-server=/var/run/user/1000/mpv 
-autofit-larger=90%x90%
 profile=gpu-hq
 
 #
@@ -42,15 +41,16 @@ border=no
 keep-open=yes
 stop-screensaver=yes
 cursor-autohide-fs-only
-osd-font="Iosevka Sparkle"
+osd-font="Iosevka Aile"
 # osd-font=monospace
 osd-font-size=15
 osd-scale-by-window=yes
 osd-fractions=yes
-geometry=50%x50%
 hidpi-window-scale
 load-stats-overlay=yes
 load-osd-console=yes
+keepaspect-window=yes
+autofit-larger=x90%
 
 #
 # Misc.
@@ -60,7 +60,8 @@ screenshot-template='%tY%tm%td-%tH%tM%tS-%F-%p'
 # screenshot-format=png
 # screenshot-jpeg-quality=100
 # user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:42.0) Gecko/20100101 Firefox/42.0"
-# ytdl-format=bestvideo+bestaudio,best
+ytdl-format=bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4,best
+#ytdl-raw-options=prefer-free-formats=true
 
 #
 # PROFILES
@@ -106,6 +107,7 @@ profile=protocol.http
 profile=protocol.http
 
 [scale]
+profile-desc="Use fancy scaling algorithms"
 glsl-shaders-clr
 scale=ewa_lanczossharp
 cscale=ewa_lanczossharp
@@ -126,9 +128,11 @@ glsl-shaders=~~/shaders/FSRCNNX_x2_8-0-4-1.glsl
 [interpolate]
 profile-desc="Increase framecount by interpolating (with vapoursynth)"
 profile=gpu-hq
-vf=format=yuv420p,vapoursynth=~~/vapoursynth/interpolate.vpy:4:4
+vf=format=yuv420p,scale=w=-1:h=720,vapoursynth=~~/vapoursynth/interpolate.vpy:4:4
+video-sync=display-desync
 
 [svp]
+profile-desc="[irrelevant] Integrate with SVP"
 # Everything below here only applies to this profile until another profile is declared!
 input-ipc-server=/tmp/mpvsocket     # Receives input from SVP
 hr-seek-framedrop=no                # Fixes audio desync
@@ -140,9 +144,16 @@ autofit-larger=100%x100%
 video-sync=display-resample
 
 [reset]
+profile-desc="Reset everything to vanilla mpv"
+profile=default
 load-scripts=no
 osc=yes
 osd-bar=yes
 
 [3d]
-vf-add=stereo3d:ab2l:ml
+profile-desc="[irrelevant] Transform 3d video file to 2d"
+vf-add='stereo3d:ab2l:ml'
+
+[skip-silence]
+profile-desc="Skip over silent parts"
+af-add='silenceremove=0:0:0:-1:0.001:-45dB:0:rms'