Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 0f6391f

Browse files
authored
Add files via upload
1 parent fd3133b commit 0f6391f

File tree

2 files changed

+118
-17
lines changed

2 files changed

+118
-17
lines changed

README.md

+29-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,39 @@
11
# better-mpv-config
2-
An improved MPV Media Player configuration file with:
3-
- useful defaults
4-
- profiles
5-
- no additional cruft...
62

7-
Requires official MPV Player: https://mpv.io/
3+
Version 1.0 is out! It's an improved MPV Media Player configuration file that:
4+
5+
- has useful defaults
6+
- offers profiles
7+
- hides the window title bar
8+
- auto-hides the cursor after 1 second
9+
- saves the seekbar position on exit
10+
- uses an extra large RAM cache
11+
- normalizes audio
12+
- sets Color Space, Dithering, Debanding, Subtitles
13+
- sets Motion Interpolation, Anti-Ringing and Upscaling & Processing
14+
- now uses shaders for improved visuals
15+
- improves profiles for https and http protocols
16+
- adds no additional cruft...
17+
18+
## Requirements
19+
20+
* official MPV Player: https://mpv.io/
21+
* PC with at least 4GB of RAM
22+
* PC with integrated (CPU) or discreet GPU (card)
823

924
![usage preview](https://raw.githubusercontent.com/hl2guide/better-mpv-config/master/preview%20image.png)
1025

26+
Includes selected lines from Mike Connelly's work on MPV.
27+
28+
* GitHub Repo: https://github.com/classicjazz/mpv-config
29+
* Article: https://freetime.mikeconnelly.com/archives/5371
30+
1131
## Configuration
1232

33+
Please Note: this config will need your own additional work if you happen to use a Mac PC (since Macs only support OpenGL).
34+
1335
### Windows Users
14-
Save to the file: `%APPDATA%/mpv/mpv.conf`
36+
Extract the ZIP in the releases section to the location: `%APPDATA%/mpv/`
1537

1638
### Linux Users
1739
* You can put all of the options in configuration files which will be read every time mpv is run.
@@ -25,7 +47,7 @@ Save to the file: `%APPDATA%/mpv/mpv.conf`
2547

2648
### Vital Notes
2749

28-
If you run into playback issues then remove the __first 5 lines__ and save changes to the file.
50+
If you run into playback issues then remove the __first 5 lines__ and save changes to the file 'mpv.conf'.
2951

3052
## Custom Profiles
3153
This config uses specific naming convensions for shorter easier typing.

mpv.conf

+89-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,96 @@
1+
12
# Uses GPU-accelerated video output by default.
23
vo=gpu
3-
# Can cause performance problems with some drivers and GPUs.
4+
# Can cause performance problems with some GPU drivers and GPUs.
45
profile=gpu-hq
56

6-
# ===== REMOVE THE ABOVE LINES AND RESAVE IF YOU ENCOUNTER PLAYBACK ISSUES =====
7+
# ===== REMOVE THE ABOVE FOUR LINES AND RESAVE IF YOU ENCOUNTER PLAYBACK ISSUES AFTER =====
78

89
# Source: https://github.com/hl2guide/better-mpv-config
910

11+
# External Sources:
12+
# * https://raw.githubusercontent.com/classicjazz/mpv-config/master/mpv.conf
13+
14+
# Enables best HW decoder; turn off for software decoding
15+
hwdec=auto
16+
17+
border=no # hides the window title bar
18+
msg-color=yes # color log messages on terminal
19+
term-osd-bar=yes # display a progress bar on the terminal
20+
cursor-autohide=1000 # autohide the curser after 1s
21+
22+
# Sets a custom font
23+
osd-font='Iosevka'
24+
# osd-font-size=55
25+
# osd-scale=0.5
26+
1027
# Saves the seekbar position on exit
1128
save-position-on-quit=yes
1229

1330
# Uses a large seekable RAM cache even for local input.
1431
cache=yes
1532
# cache-secs=300
1633
# Uses extra large RAM cache (needs cache=yes to make it useful).
17-
demuxer-max-bytes=800M
18-
demuxer-max-back-bytes=200M
19-
# Sets volume to 70%.
20-
volume=70
34+
demuxer-max-bytes=1800M
35+
demuxer-max-back-bytes=1200M
2136

37+
# ===== Audio =====
38+
39+
# Sets volume to 60%.
40+
volume=60
41+
42+
# Normalizes audio
2243
af-add='dynaudnorm=g=5:f=250:r=0.9:p=0.5'
2344

24-
# Custom Profiles
45+
# ===== Color Space =====
46+
target-trc=auto
47+
gamma-auto
48+
vf=format=colorlevels=full:colormatrix=auto
49+
video-output-levels=full
50+
51+
# ===== Dithering =====
52+
dither-depth=auto
53+
temporal-dither=yes
54+
dither=fruit
55+
56+
# ===== Debanding =====
57+
deband=yes # enabled by default
58+
deband-iterations=4 # deband steps
59+
deband-threshold=48 # deband strength
60+
deband-range=16 # deband range
61+
deband-grain=48 # dynamic grain: set to "0" if using the static grain shader
62+
63+
# ===== Subtitles =====
64+
blend-subtitles=yes
65+
66+
# ===== Motion Interpolation =====
67+
override-display-fps=60
68+
video-sync=display-resample
69+
interpolation=yes
70+
tscale=oversample # smoothmotion
71+
72+
# ===== Anti-Ringing =====
73+
scale-antiring=0.7 # luma upscale deringing
74+
dscale-antiring=0.7 # luma downscale deringing
75+
cscale-antiring=0.7 # chroma upscale deringing
76+
77+
# ===== Upscaling & Processing =====
78+
glsl-shaders-clr
79+
# luma upscaling
80+
# note: any FSRCNNX above FSRCNNX_x2_8-0-4-1 is not worth the additional computional overhead
81+
glsl-shaders="~/AppData\Roaming\mpv\shaders\FSRCNNX_x2_8-0-4-1.glsl"
82+
scale=ewa_lanczos
83+
# luma downscaling
84+
# note: ssimdownscaler is tuned for mitchell and downscaling=no
85+
glsl-shaders-append="~/AppData\Roaming\mpv\shaders\SSimDownscaler.glsl"
86+
dscale=mitchell
87+
linear-downscaling=no
88+
# chroma upscaling and downscaling
89+
glsl-shaders-append="~/AppData\Roaming\mpv\shaders\KrigBilateral.glsl"
90+
cscale=mitchell
91+
sigmoid-upscaling=yes
92+
93+
# ===== Custom Profiles =====
2594
# Uses specific naming convensions for shorter easier typing.
2695
# Naming Convensions:
2796
# V = Very Low, L = Low, M = Medium, H = High, U = Ultra, S = Supreme
@@ -65,7 +134,7 @@ ytdl-format=bestvideo[height<=?480][fps<=?60][vcodec!=?vp9]+bestaudio/best
65134
[V30]
66135
ytdl-format=bestvideo[height<=?480][fps<=?30][vcodec!=?vp9]+bestaudio/best
67136

68-
# File Type Profiles
137+
# ===== File Type Profiles =====
69138
# GIF Files
70139
[extension.gif]
71140
cache=no
@@ -76,5 +145,15 @@ loop-file=yes
76145
no-pause
77146
loop-file=yes
78147

79-
osd-scale=1
80-
osd-font-size=55
148+
# ===== Protocol Specific Configuration =====
149+
150+
[protocol.http]
151+
hls-bitrate=max # use max quality for HLS streams
152+
cache=yes
153+
no-cache-pause # don't pause when the cache runs low
154+
155+
[protocol.https]
156+
profile=protocol.http
157+
158+
[protocol.ytdl]
159+
profile=protocol.http

0 commit comments

Comments
 (0)