diff options
-rw-r--r-- | nichijou/home/config/mpv/mpv.conf | 120 | ||||
-rw-r--r-- | nichijou/home/mpv.scm | 14 |
2 files changed, 134 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 diff --git a/nichijou/home/mpv.scm b/nichijou/home/mpv.scm new file mode 100644 index 0000000..9df9d9b --- /dev/null +++ b/nichijou/home/mpv.scm @@ -0,0 +1,14 @@ +(define-module (nichijou home mpv) + #:use-module (gnu home services) + #:use-module (gnu packages video) + #:use-module (gnu services) + #:use-module (guix gexp)) + +(define-public packages + (list mpv mpv-mpris)) + +;; TODO: Implement mpv home service? +(define-public services + (list (simple-service 'nichijou-mpv-config home-files-service-type + `((".config/mpv/mpv.conf" ,(local-file + "config/mpv/mpv.conf")))))) |