diff options
Diffstat (limited to '.config/mpv/config')
| -rw-r--r-- | .config/mpv/config | 83 |
1 files changed, 56 insertions, 27 deletions
diff --git a/.config/mpv/config b/.config/mpv/config index 65fadaf..3c29e9b 100644 --- a/.config/mpv/config +++ b/.config/mpv/config @@ -3,17 +3,16 @@ input-ipc-server=/run/user/1000/mpv script-opts=ytdl_hook-ytdl_path=/usr/bin/yt-dlp,ytdl_hook-all_formats=yes +autocreate-playlist=same cache=yes -demuxer-max-back-bytes=100M -demuxer-max-bytes=100M -demuxer-readahead-secs=20 # # Video # vo=gpu-next -hwdec=auto # -copy -# gpu-context=wayland +# hwdec=auto-copy +hwdec=auto +gpu-context=waylandvk gpu-api=vulkan # framedrop=decoder+vo video-sync=display-resample @@ -21,13 +20,13 @@ video-sync=display-resample window-maximized=no # prevent wayland problems with buffer resize # colour shit +tone-mapping=auto +# tone-mapping=bt.2446a # icc-profile=~~/B140QAN02_0.icm # tone-mapping=mobius # inverse-tone-mapping # target-peak=500 -deband=yes - # # Audio # @@ -53,7 +52,7 @@ sub-shadow-color=0.0/0.0/0.0/0.25 sub-shadow-offset=0 sub-fix-timing=yes -sub-ass-vsfilter-blur-compat=no +# sub-ass-vsfilter-blur-compat=no # sub-ass-force-style=Kerning=yes # Some settings fixing VOB/PGS subtitles @@ -61,9 +60,12 @@ sub-ass-vsfilter-blur-compat=no sub-gauss=0.6 sub-gray=yes -#Forces showing subtitles while seeking through the video +# Forces showing subtitles while seeking through the video demuxer-mkv-subtitle-preroll=yes +# Allows to put subtitles into letterbox +stretch-image-subs-to-screen=yes + # # OSD # @@ -80,17 +82,25 @@ load-stats-overlay=yes load-osd-console=yes keepaspect-window=yes autofit-larger=x50% -osd-scale-by-window=no +# osd-scale-by-window=no +# hidpi-window-scale=yes +deband=no # -# Misc. +# Screenshots # screenshot-directory=~/pictures/screenshots/mpv screenshot-template='%tY%tm%td-%tH%tM%tS-%F-%p' -# screenshot-format=png -# screenshot-jpeg-quality=100 -ytdl-format=bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4,best -#ytdl-raw-options=prefer-free-formats=true +screenshot-format=png +screenshot-png-compression=9 + +# +# Named filter chains +# (don't forget to invert with "!" to disable by default) +# +vf-add=@deband:!gradfun +vf-add=@no-3d:!stereo3d:ab2l:ml +af-add=@skip-silence:!silenceremove=0:0:0:-1:0.001:-45dB:0:rms # # PROFILES @@ -102,7 +112,8 @@ vo=dmabuf-wayland profile-desc="Optimized for streaming video" glsl-shaders-clr title="${media-title}" -ytdl-format=bestvideo[height<=?1080]+bestaudio/best[height<=?1080] +# ytdl-format=bv[height<=?1080]+ba / b[height<=?1080] +ytdl-format=(bv[vcodec~='^av01']/bv)[height<=?1080]+ba / b[height<=?1080] demuxer-seekable-cache=yes cache-pause=no hls-bitrate=max @@ -122,9 +133,9 @@ profile=gpu-hq [scale] profile-desc="Use fancy scaling algorithms" +profile-cond=height <= 1440 glsl-shaders-clr scale=ewa_lanczossharp -cscale=ewa_lanczossharp dscale=ewa_lanczossharp correct-downscaling=yes sigmoid-upscaling=yes @@ -144,14 +155,6 @@ load-scripts=no osc=yes osd-bar=yes -[3d] -profile-desc="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' - [webcam] profile-desc="Optimized for showing real-time webcam feed" profile-cond=(not not string.match(get('path'), '/dev/video*')) @@ -191,19 +194,45 @@ ad-lavc-downmix=no #af-add='lavfi=[pan=5.1| FL < 0.8*FL | FR < 0.8*FR | LFE < LFE | FC < FC | BL < BL | BR < BR,dynaudnorm=g=41:f=700:r=0.9]' af-add='lavfi=[pan=5.1| FL = 0.5*FL | FR = 0.5*FR | LFE = LFE | FC = FC | BL = 0.3*BL | BR = 0.3*BR]' +[fastforward] +profile-restore=copy-equal +profile=fast +scale=bilinear +dscale=bilinear +cscale=bilinear +vd-lavc-skiploopfilter=all +vd-lavc-skipframe=all + +[bigcache] +demuxer-readahead-secs=20 +demuxer-max-bytes=512M +demuxer-max-back-bytes=512M + # image viewer settings [mvi] profile-desc="mpv image viewer" +profile-restore=copy-equal profile=gpu-hq +profile=scale sub-auto=no audio-file-auto=no term-status-msg= -title="${?media-title:${media-title}}${!media-title:No file} - mvi" +title="${?media-title:${media-title}}${!media-title:No file}" video-aspect-override=no loop-file=inf image-display-duration=inf -input-conf=~/.config/mvi/input.conf +input-conf=~~/mvi/input.conf +input-commands-add=load-script '~~/mvi/scripts/ruler.lua' +input-commands-add=load-script '~~/mvi/scripts/detect-image.lua' +input-commands-add=load-script '~~/mvi/scripts/freeze-window.lua' +input-commands-add=load-script '~~/mvi/scripts/image-positioning.lua' +input-commands-add=load-script '~~/mvi/scripts/minimap.lua' +input-commands-add=load-script '~~/mvi/scripts/ruler.lua' +script-opts-add=uosc-volume=none +script-opts-add=uosc-controls=never +script-opts-add=uosc-progress=never +script-opts-add=uosc-timeline_size=0 [extension.jpg] profile=mvi |