diff options
author | Renken <renken@shione.net> | 2022-09-09 16:28:53 +0200 |
---|---|---|
committer | Renken <renken@shione.net> | 2022-09-09 16:32:34 +0200 |
commit | 5bec1455789e75e344c54dab605921feea04ec3f (patch) | |
tree | 4bdddc6e5754eff9623a625bdd792bce0ab5b246 /nichijou/home/config/mpv | |
parent | cf558203ddbbf8593393f63b0ccebd9b76075301 (diff) | |
download | shione-5bec1455789e75e344c54dab605921feea04ec3f.tar.gz shione-5bec1455789e75e344c54dab605921feea04ec3f.zip |
home: configure mpv
Diffstat (limited to 'nichijou/home/config/mpv')
-rw-r--r-- | nichijou/home/config/mpv/mpv.conf | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/nichijou/home/config/mpv/mpv.conf b/nichijou/home/config/mpv/mpv.conf new file mode 100644 index 0000000..e3bb7ad --- /dev/null +++ b/nichijou/home/config/mpv/mpv.conf @@ -0,0 +1,120 @@ +# audio +#ao=... (in case you use e.g. jack) +audio-channels=auto +audio-display=no +volume-max=150.0 +alang=ja,jp,jpn,en,eng + +# generic video/gpu +vo=gpu +gpu-api=opengl +opengl-pbo +#opengl-glfinish=yes +#opengl-swapinterval=0 +#fbo-format=rgba16f +dither-depth=auto +hwdec=auto +#linear-scaling=yes +sigmoid-upscaling=yes +correct-downscaling=yes +#video-sync=display-resample +#scale=spline36 +#cscale=mitchell +#dscale=mitchell +scale=spline36 +dscale=mitchell +cscale=mitchell + +# deband (enabled for shitty video sources below) +deband=yes +#deband-iterations=4 +#deband-threshold=48 +#deband-range=16 +#deband-grain=0 + +# static grain +#glsl-shader=~~/shaders/noise_static_luma.hook +#glsl-shader=~~/shaders/noise_static_chroma.hook + +# luma upscale +#scale=ewa_lanczos +#glsl-shader=~~/shaders/FSRCNNX_x2_8-0-4-1.glsl + +# luma downscale +#dscale=gaussian +#glsl-shader=~~/shaders/SSimDownscaler.glsl + +# chroma scale +#cscale=ewa_lanczossoft +#glsl-shader=~~/shaders/KrigBilateral.glsl + +# interpolation +#interpolation +#tscale=box +#tscale-window=sphinx +#tscale-radius=1.01 +#tscale-clamp=0.0 + +# subtitles +blend-subtitles=yes +demuxer-mkv-subtitle-preroll=yes +sub-ass-vsfilter-blur-compat=no +sub-fix-timing=no +sub-auto=fuzzy +slang=enm,en,eng + +# user interface +save-position-on-quit +force-window=yes +image-display-duration=3 +keep-open=yes +no-hidpi-window-scale +pause +script-opts=osc-timems=yes +window-scale=1.0 + +# screenshot +screenshot-directory=~/p/ss/ +screenshot-template="%f_snapshot_%wH.%wM.%wS_[%ty.%tm.%td_%tH.%tM.%tS]" +screenshot-format=png +#screenshot-high-bit-depth=yes +screenshot-png-compression=3 +screenshot-png-filter=0 +screenshot-tag-colorspace=yes + +# don't bork on slow-responding disks +cache=yes +cache-secs=10 + +# stolen from https://pastebin.com/dxWhweXZ +[WebDL1] +profile-desc=cond:string.match((p.filename and p.filename or "NULL"), "%[1080p%]%[AAC%]%[JapDub%]%[GerSub%]%[Web%-DL%]")~=nil +deband=yes + +[WebDL2] +profile-desc=cond:string.match((p.filename and p.filename or "NULL"), "%[1080p%]%[E%-AC3%]%[JapDub%]%[GerSub%]%[Web%-DL%]")~=nil +deband=yes + +[WebDL3] +profile-desc=cond:string.match((p.filename and p.filename or "NULL"), "%[1080p%]%[AAC%]%[JapDub%]%[EngSub%]%[Web%-DL%]")~=nil +deband=yes + +[WebDL4] +profile-desc=cond:string.match((p.filename and p.filename or "NULL"), "%[1080p%]%[E%-AC3%]%[JapDub%]%[EngSub%]%[Web%-DL%]")~=nil +deband=yes + +[HorribleSubs] +profile-desc=cond:string.match((p.filename and p.filename or "NULL"), "HorribleSubs")~=nil +deband=yes + +[EraiRaws] +profile-desc=cond:string.match((p.filename and p.filename or "NULL"), "Erai%-raws")~=nil +deband=yes + +[Legacy1] +profile-desc=cond:string.match((p.filename and p.filename or "NULL"), "1080p.WebRip")~=nil +deband=yes + +[Legacy2] +profile-desc=cond:string.match((p.filename and p.filename or "NULL"), "1080p.Web%-DL")~=nil +deband=yes |