diff options
Diffstat (limited to '.config/mpv/config')
| -rw-r--r-- | .config/mpv/config | 87 |
1 files changed, 51 insertions, 36 deletions
diff --git a/.config/mpv/config b/.config/mpv/config index 8d6ac1a..3bcf317 100644 --- a/.config/mpv/config +++ b/.config/mpv/config @@ -1,12 +1,7 @@ # MPV Configuration -# clean up input config (helps with iina, gnome-mpv etc.) -# no-input-default-bindings + autoload-files=no -input-ipc-server=/var/run/user/1000/mpv -profile=gpu-hq -icc-profile=~~/B140QAN02_0.icm -tone-mapping=clip -target-peak=500 +input-ipc-server=/run/user/1000/mpv # # Video @@ -15,7 +10,11 @@ target-peak=500 # video-sync=display-resample gpu-context=wayland window-maximized=yes # prevent wayland problems with buffer resize -hwdec=yes +hwdec=auto +# color stuff +# icc-profile=~~/B140QAN02_0.icm +# tone-mapping=mobius +# target-peak=500 # # Audio @@ -46,10 +45,11 @@ stop-screensaver=yes cursor-autohide-fs-only osd-font="Iosevka Aile" # osd-font=monospace -osd-font-size=15 -osd-scale-by-window=yes -osd-fractions=yes -hidpi-window-scale +# osd-font-size=15 +# osd-border-size=2 +# osd-scale-by-window=yes +# osd-fractions=yes +# hidpi-window-scale load-stats-overlay=yes load-osd-console=yes keepaspect-window=yes @@ -62,7 +62,6 @@ screenshot-directory=~/Pictures/screenshots/mpv 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[ext=mp4]+bestaudio[ext=m4a]/mp4,best #ytdl-raw-options=prefer-free-formats=true @@ -70,29 +69,6 @@ ytdl-format=bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4,best # PROFILES # -[anime] -profile-desc="Optimized for watching anime with ASS subtitles" -sub-auto=fuzzy -deband=yes -# sub-border-size=2 -# sub-font-size=45 -# sub-margin-y=50 -# sub-spacing=1 -ordered-chapters-files=/tmp/mpv_ordered_chapters - -[webcam] -profile-desc="Optimized for showing internal webcam feed" -osc=no -profile=low-latency -# video-sync=display-desync # needed or external audio will fail -pulse-latency-hacks=yes -# demuxer-lavf-o=input_format=mjpeg,video_size=848x480 -# framedrop=no -# no-demuxer-thread -opengl-glfinish=yes -opengl-swapinterval=0 -vf=hflip - [protocol.http] profile-desc="Optimized for streaming video" glsl-shaders-clr @@ -106,6 +82,32 @@ script=~/.config/mpv/scripts/mpv-plugin-streamcache/streamcache.lua [protocol.https] profile=protocol.http +[url.googledrive.balena] +# profile=protocol.http +profile-cond=not not string.match(get('path'), 'drive.google.com') +cookies-file=~/Downloads/cookies.balena_google_drive.txt +ytdl-raw-options=cookies=~/Downloads/cookies.balena_google_drive.txt + +[url.youtube] +profile=protocol.http +profile-cond=not not string.match(get('path'), 'youtube.com') +ytdl-raw-options=cookies=~/Downloads/cookies.balena_google_drive.txt + +[hq] +profile-desc="Optimized for watching high-resolution content" +profile-cond=height <= 1440 +profile=gpu-hq + +[anime] +profile-desc="Optimized for watching anime with ASS subtitles" +sub-auto=fuzzy +deband=yes +# sub-border-size=2 +# sub-font-size=45 +# sub-margin-y=50 +# sub-spacing=1 +ordered-chapters-files=/tmp/mpv_ordered_chapters + [cache] profile=protocol.http @@ -186,3 +188,16 @@ glsl-shaders=~~/shaders/default-shader-pack/shaders/Anime4K_3.0_Upscale_CNN_M_x2 glsl-shaders=~~/shaders/default-shader-pack/shaders/Anime4K_3.0_ThinLines_HQ.glsl glsl-shaders=~~/shaders/default-shader-pack/shaders/Anime4K_3.0_DarkLines_HQ.glsl glsl-shaders=~~/shaders/default-shader-pack/shaders/Anime4K_3.0_Denoise_Bilateral_Mode.glsl + +[webcam] +profile-desc="Optimized for showing internal webcam feed" +osc=no +profile=low-latency +# video-sync=display-desync # needed or external audio will fail +pulse-latency-hacks=yes +# demuxer-lavf-o=input_format=mjpeg,video_size=848x480 +# framedrop=no +# no-demuxer-thread +opengl-glfinish=yes +opengl-swapinterval=0 +vf=hflip |