######################################################

For a more detailed documentation click HERE. I only offer a tl;dr version.

If you want to take a look at my mpv.conf, you can view it HERE.

Last tested build: 2017-12-25 (v0.28.0)


Stuff you need for some options:

Copy the .hook or .glsl files into the „Shaders“ folder inside the mpv folder (create it, if it doesn’t exist)

Copy the .lua files into the „Scripts“ folder inside the mpv folder (create it, if it doesn’t exist).


General:
#The default profile you use for your stuff. Always use this one
profile=gpu-hq

#The called API. Vulkan is highly recommended. 
#Use "opengl" if you have compatibility problems
gpu-api=vulkan

#The backend with the API. Leave it "auto"
#Or use "winvk" with "gpu-api=vulkan" or "win" / "angle" with "gpu-api=opengl"
gpu-context=auto

#Choose the compiler for translating glsl code for Vulkan. Leave it "auto"
#Or use "shaderc" with a nVidia/AMD/Intel GPU or "nvidia" with a nVidia GPU
spirv-compiler=auto

#Decoding API for 8bit h264 (or whatever your CPU supports) content
#Only should be used when you get many frame drops
hwdec=dxva2-copy

Tweaks:
#Cursor hide in ms
cursor-autohide=1000

#Don't close the player after finishing the video
keep-open=yes

Priority:
#Audio language
alang=ja,jp,jpn,de,deu,ger,en,eng

#Subtitle language
slang=de,deu,ger,en,eng

Subs:
#Forces showing subtitles while seeking through the video
demuxer-mkv-subtitle-preroll

#Backward compatibility for vsfilter fansubs
sub-ass-vsfilter-blur-compat=yes

#Fixing the timing for overlaps/gaps when the difference is smaller than 210ms
sub-fix-timing=yes

Volume:
#Default volume when starting the player
volume=100

#Max volume of the player
volume-max=200

Screenshot:
#Output format
screenshot-format=png

#Same output bitdepth as the video
#Set it "=no" if you want to save disc space
screenshot-high-bit-depth=yes

#Compression of the picture (0-10)
#Higher value means better compression
#Set it "1" if you want to take screenshots while playback
screenshot-png-compression=10

#Output directory
screenshot-directory="C:\Users\eXmendiC\Desktop"

You make screenshots with the “s” hotkey.


Dither:
#Activate dither (value depends on your screen bitdepth)
#Can lead to ugly outputs, just leave it "auto"
dither-depth=8

Deband & Dynamic Grain:

For an explanation what debanding is, click HERE.
For an explanation what grain is, click HERE.

#Activate deband
#Set it "no" if you rather handle it with profiles
deband=yes

#Deband steps (More = Better quality, but higher GPU cost)
deband-iterations=1

#Deband strength (More = Less banding, but more detail loss)
deband-threshold=60

#Deband range (More = Less banding, but higher GPU cost)
deband-range=16

#Dynamic Grain (More = More dynamic grain)
deband-grain=0

You activate debanding with the “h” hotkey.

You can also set it up automatically for some sources (for example with “HorribleSubs”):

[horriblesubs]
profile-desc=cond:string.match(p.filename, "HorribleSubs")~=nil
deband=yes

[horriblesubs-revert]
profile-desc=cond:string.match(p.filename, "HorribleSubs")==nil
deband=no

(Static) Grain:

For an explanation what static grain is, click HERE.

#Only Luma
glsl-shader=
"C:\Users\YOUR_USERNAME\Documents\MPV\Shader\noise_static_luma.hook"

#Only Chroma
glsl-shader=
"C:\Users\YOUR_USERNAME\Documents\MPV\Shader\noise_static_chroma.hook"

#Luma & Chroma
glsl-shaders=
"C:\Users\YOUR_USERNAME\Documents\MPV\Shader\noise_static_luma.hook,C:\Users\YOUR_USERNAME\Documents\MPV\Shader\noise_static_chroma.hook"

If you use shaders like “nnedi3” or “ravu”, make sure you run this shader before them!


Resizer:

For an explanation what a resizer is, click HERE.

A better resizer means higher GPU cost.

#Shaders which override "scale"/"dscale"/"cscale" to a certain point (depending on the shader you use) - Read down below for more information
#[Italic in the table]
glsl-shader= ...

#Luma upscale
scale= ...

#Luma downscale
dscale= ...

#Chroma-scale
cscale= ...

With the “i” hotkey you can see how many delayed and dropped frames you have.

PRESETS Upscale Downscale Chroma-scale Interpolation
Overkill FSRCNNX “Look at (1*) SSimDownscaler “Look at (2*) KrigBilateral “Look at (3*) oversample
Very High ravu “Look at (1*) ewa_lanczos ravu “Look at (1*) oversample
High ewa_lanczos ewa_lanczos ewa_lanczos linear
Medium spline16 spline16 blackman “Look at (4*) catmull_rom
Low catmull_rom catmull_rom catmull_rom mitchell
Very Low bilinear bilinear bilinear interpolation=no

[Red = Recommended]
[Blue = Recommended, if you use nnedi3/ravu as a shader. Look at “(1)”]

An example for a regular filter (non-italic in the table):

scale=ewa_lanczos

Look at (1*), (2*) or (3*) for an example for a non-regular filter (italic in the table).

Luma (scale/dscale) = Brightness (black & white) information
Chroma (cscale) = Colour information
Luma is more visible for the human eye, so put more GPU here.

 

(1*) nnedi3 and ravu are only upscaling the video with a power of 2. For example, if your clip is 1280×720 and your screen 1920×1080, the video gets upscaled to 2560×1440. That means “someone” still needs to downscale it. In that case, the “dscale” you set up.

nnedi3:
Higher “nns” means more neurons (better quality).
Don’t use “win8x6”, always use “win8x4”.
An example how you use it:

glsl-shader="C:\Users\YOUR_USERNAME\Documents\MPV\Shader\FSRCNNX_x2_r1_16-0-2-2.glsl"

ravu:
Higher “r” means higher radius (better quality).
An example how you use it:

glsl-shader="C:\Users\YOUR_USERNAME\Documents\MPV\Shader\ravu-r4.hook"

(without addition)= only luma
-chroma-center = only center chroma
-chroma-left = only left chroma
-yuv = luma and chroma

(2*)
An example how you use it:
This one will replace “dscale”

glsl-shader="C:\Users\YOUR_USERNAME\Documents\MPV\Shader\SSimDownscaler.glsl"
dscale=mitchell

(3*)
An example how you use it:
This one will replace “cscale”

glsl-shader="C:\Users\YOUR_USERNAME\Documents\MPV\Shader\KrigBilateral.glsl"

(4*)
An example how you use it:

cscale=sinc
cscale-window=blackman
cscale-radius=3

Anti-Ringing:

For an explanation what anti-ringing is, click HERE.

#Luma upscale deringing (Higher = Less rining, but more detail loss)
scale-antiring=0.7

#Luma downscale deringing (Higher = Less rining, but more detail loss)
dscale-antiring=0.7

#Chroma upscale deringing (Higher = Less rining, but more detail loss)
cscale-antiring=0.7

Interpolation:

For an explanation what interpolation is, click HERE.

#Subtitle blending in scenechanges (smoother effect)
blend-subtitles=yes

#Set same fps as max. Hz of your monitor 
video-sync=display-resample

#Activate interpolation
interpolation=yes

#Interpolation method [look at the table above]
tscale=...

If you have playback issues, deactivate interpolation.


Deinterlace:

For an explanation what deinterlace is, click HERE.

#Autodetect if deinterlace is needed
deinterlace=auto

You activate deinterlace with the “g” hotkey (“d” if you don’t use my input.conf).
Only use it with interlaced sources (like MPEG2/h264 .ts files)

Advertisements