Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active June 7, 2020 11:18
Show Gist options
  • Save lextra2/02c8820a6849dcca62cf5dcbf43494d4 to your computer and use it in GitHub Desktop.
Save lextra2/02c8820a6849dcca62cf5dcbf43494d4 to your computer and use it in GitHub Desktop.
MPV 2020
profile=gpu-hq
glsl-shaders="~~/FSRCNNX_x2_8-0-4-1.glsl"
# Interpolation
video-sync=display-resample
interpolation=yes
# Misc
screenshot-format=png
keep-open=yes
#loop=yes
# Audio
volume=50
volume-max=100
# Window
autofit=90%x90%
geometry=100%:0%
snap-window
no-window-dragging
osd-font=Inter
# Subtitles
sub-font=Inter
sub-font-size=45
sub-blur=1
sub-color="#CCC076"
[protocol.http]
profile=low-latency
glsl-shaders=""
no-osc
[protocol.https]
profile=low-latency
glsl-shaders=""
no-osc
(Requires d3dcompiler_43.dll to be in the same location)
To check for all available profiles:
mpv --profile=help
To check for presets of profile:
mpv --show-profile=<name>
e.g.
mpv --show-profile=gpu-hq
profile=gpu-hq:
scale=spline36
cscale=spline36
dscale=mitchell
dither-depth=auto
correct-downscaling=yes
linear-downscaling=yes
sigmoid-upscaling=yes
deband=yes
deband-iterations=1
deband-threshold=64
deband-range=16
deband-grain=48
#vf=gradfun=2:8
#vf=pp7=qp=2 #deblock
#vf=sab #deblock
#vf=vaguedenoiser=threshold=4
#vf=deflate
#vf=nlmeans
#vf=smartblur=ls=-1.0
#vf=smartblur=lr=0.5:ls=1.0:cr=0.1:cs=1.0
#vf=lavfi=[smartblur=lr=2:ls=2]
af=dynaudnorm=f=200:g=7
#af=lavfi=[dynaudnorm=f=200:g=7]
WHEEL_UP add volume 5
WHEEL_DOWN add volume -5
LEFT seek -5 exact
RIGHT seek 5 exact
CTRL+LEFT frame-back-step ; show-text "${estimated-frame-number}/${estimated-frame-count}"
CTRL+RIGHT frame-step ; show-text "${estimated-frame-number}/${estimated-frame-count}"
SHIFT+LEFT playlist-prev ; show-text "${playlist-pos-1}/${playlist-count}"
SHIFT+RIGHT playlist-next ; show-text "${playlist-pos-1}/${playlist-count}"
UP add chapter 1
DOWN add chapter -1
MOUSE_BTN1 quit
#1 add sharpen -0.1
#2 add sharpen 0.1
+ add video-zoom 0.400
F4 cycle-values scale spline36 sinc
F5 cycle-values vf "scale=iw*2:ih*2:flags=sinc" ""
F6 cycle-values glsl-shaders "~~/adaptive-sharpen.glsl" ""
# Scaling Filters
scale=sinc
cscale=sinc
dscale=sinc
#dscale-antiring=1.0
# Scaling Corrections
dither-depth=auto
correct-downscaling=yes
linear-downscaling=yes
sigmoid-upscaling=yes
# Downsampling
#vf=scale=iw*2:ih*2:flags=sinc
# Debanding
deband=yes
deband-iterations=2
deband-threshold=64
deband-range=16
deband-grain=128
# Interpolation
vf=fps=48000/1001
video-sync=display-resample
interpolation=yes
#tscale=oversample
#tscale=bcspline
#tscale-param1=0.00
#tscale-param2=0.00
#tscale=box
#tscale-window=sphinx
#tscale-radius=1.00
#tscale-clamp=0.00
# Misc
screenshot-format=png
keep-open=yes
#loop=yes
# Audio
volume=50
volume-max=100
#af=dynaudnorm=f=200:g=7
#replaygain=track
# Window
autofit=90%x90%
geometry=100%:0%
snap-window
no-window-dragging
#osd-font=Inter
# Subtitles
sub-font=Inter
sub-font-size=45
sub-blur=1
sub-color="#CCC076"
#sub-file-paths=".srt"
# Caching
#cache=yes
#demuxer-seekable-cache=yes
#demuxer-max-bytes=2GiB
#demuxer-max-back-bytes=1GiB
#force-seekable=yes
[protocol.http]
no-osc
[protocol.https]
no-osc
ytdl-format=bestvideo[height<=?1440]+bestaudio
#record-file="C:\Users\Admin\Desktop\Stream.ts"
#gpu-shader-cache-dir=""
#glsl-shaders=""
#hwdec=auto
#gpu-api=vulkan
#gpu-shader-cache-dir="~~/GPU.SHADER.CACHE"
#log-file="~~/log.txt"
#msg-level=all
#glsl-shaders="~~/FSRCNNX_x2_8-0-4-1.glsl"
#glsl-shaders="~~/KrigBilateral.glsl"
#glsl-shaders="~~/SSimSuperRes.glsl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment