Skip to content

Commit

Permalink
fix: more mpv changes (#161)
Browse files Browse the repository at this point in the history
Ravencentric authored Sep 23, 2023
1 parent ba0ab68 commit 2c3699d
Showing 1 changed file with 21 additions and 37 deletions.
58 changes: 21 additions & 37 deletions docs/tutorials/mpv.md
Original file line number Diff line number Diff line change
@@ -146,16 +146,18 @@ We recommend taking your time to create your own config. If you want to get up a
profile=high-quality
vo=gpu-next
gpu-api=vulkan
scale-antiring=0.5
deband=no

# This must be set to match your monitor's bit depth
dither-depth = 8

## Behavior (personal preference)
keep-open=yes
save-position-on-quit

## Screenshots
screenshot-format=png
screenshot-high-bit-depth=no
screenshot-png-compression=9
screenshot-directory="~/Pictures/mpv"
screenshot-template="%F-%p"

@@ -184,6 +186,7 @@ Option
[`vo`](https://mpv.io/manual/stable/#video-output-drivers) | The output driver to be used by mpv. *`gpu-next` is recommended for most modern hardware*
[`gpu-api`](https://mpv.io/manual/stable/#options-gpu-api) | The graphics API to be used by mpv. *`vulkan` is recommended for most modern hardware*
[`deband`](https://mpv.io/manual/master/#options-deband) | `profile=high-quality` implicitly enables deband. We are disabling it because a good encode will already be debanded. Instead using [auto-profiles](#auto-profiles) is recommended to automatically enable it where it's actually needed
[`dither-depth`](https://mpv.io/manual/master/#options-dither-depth) | This must be set to match your monitor's bit depth, otherwise it can introduce banding
[`keep-open`](https://mpv.io/manual/stable/#options-keep-open) | Whether to close or leave the player open after the file finishes playing. *Use `no` if you want the player to close*
[`save-position-on-quit`](https://mpv.io/manual/stable/#resuming-playback) | Save the current playback position on quit. When the file is reopened, mpv will resume from where it left off. *Remove this option if you do not want the player to save your position*
[`screenshot-format`](https://mpv.io/manual/stable/#options-screenshot-format) | File format used for screenshots. *`png` is recommended for lossless quality*
@@ -225,7 +228,6 @@ To enable debanding in mpv, apply the following changes to your config:
# Set deband to "no" as we only need to enable it for specific cases
deband=no
deband-iterations=4
deband-threshold=48
deband-grain=48
```

@@ -269,56 +271,38 @@ G change-list glsl-shaders toggle "~~/shaders/nnedi3-nns256-win8x4.hook"
```

+++ Mid-Range PCs
If you have mid-range hardware, you can use [nnedi3-nns128-win8x4](https://github.com/bjin/mpv-prescalers/blob/master/nnedi3-nns128-win8x4.hook).

Download the shader file and place it in your `shaders` folder.

To use the shader, add the following to your `mpv.conf`:

```properties
glsl-shaders="~~/shaders/nnedi3-nns128-win8x4.hook"
```

To activate it with a key, add the following to your `input.conf`, replacing `G` with the bind of your choice, if necessary (case-sensitive):

```properties
G change-list glsl-shaders toggle "~~/shaders/nnedi3-nns128-win8x4.hook"
```

+++ Low-End PCs
If you have a low-end but dedicated GPU, you can stick to mpv's built-in high quality scalers.
If you have a mid-range pc, you can stick to mpv's built-in `high-quality` profile.

In your `mpv.conf`, add the following:

```properties
## Video
profile=high-quality
vo=gpu-next
gpu-api=vulkan
scale-antiring=0.5
deband=no

# This must be set to match your monitor's bit depth
dither-depth = 8
```

This is included in the [Basic Config](#basic-config) above.
!!!warning
Do not forget to change `dither-depth` to match your monitor's bit depth, otherwise it can introduce banding
!!!

+++ Potato PCs
If you have an integrated GPU, you can stick to mpv's default built-in scalers.
No need to modify `mpv.conf`.
This is included in the [Basic Config](#basic-config) above.

Just remove `profile=high-quality`, and mpv will use default values.
+++ Low-End PCs
If you have a low end, you can use to mpv's built-in `fast` profile.
This profile prioritizes performance over quality.

The default values are:
Put this at the top of your config file:

```properties
scale=lanczos
cscale=lanczos
dscale=hermite
dither-depth=auto
correct-downscaling=yes
linear-downscaling=yes
sigmoid-upscaling=yes
hdr-compute-peak=yes
```
profile=fast

If these values are still too much for you, then you can use `profile=fast` which sacrifices quality for performance.
```

+++

0 comments on commit 2c3699d

Please sign in to comment.