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

Commit d7366c1

Browse files
authored
Add files via upload
1 parent 788928c commit d7366c1

17 files changed

+2757
-121
lines changed

HISTORY.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11

2+
_Version 1.1.00 (May 23, 2023)_
3+
- Added shaders
4+
- SSimDownscaler by [igv](https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10)
5+
- SSimSuperRes by [igv](https://gist.github.com/igv/2364ffa6e81540f29cb7ab4c9bc05b6b)
6+
- KrigBilateral by [igv](https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637)
7+
- Nvidia Adaptive-directional sharpening algorithm shader by [agyild](https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214)
8+
- Contrast Adaptive Sharpening (CAS) by [agyild](https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6)
9+
- FidelityFX Super Resolution (FSR) by [agyild](https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5)
10+
- Split config file into six files (organized and easier toggling)
11+
212
_Version 1.0.12 (May 2023)_:
313
- Made videos start fullscreen on the primary screen
414
- Made the video window stay open after video playback (allows for drag and drop of video files)

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# better-mpv-config
22

3-
- Version: 1.0.12
4-
- Last Updated (AEST): 2023-05-07 11:54:35PM
3+
- Version: 1.1.00
4+
- Last Updated (AEST): 2023-05-23 05:16:37PM
55
- Platform: Windows 11 (not tested on Apple or Linux at all)
66

77
## What's New
88

9-
_Version 1.0.12 (May 2023)_:
10-
- Made videos start fullscreen on the primary screen
11-
- Made the video window stay open after video playback (allows for drag and drop of video files)
12-
- Added profiles for some file extensions (animations and static images)
13-
- Removed legacy MPV v2 config file
14-
15-
_Version 1.0.10 (Feb 2023)_:
16-
- Rewrote `mpv_v3\mpv.conf` and `mpv_v3\input.conf` (adapted from the repo [Argon-/mpv-config](https://github.com/Argon-/mpv-config))
17-
- Vastly improved terminal, OSD, audio, subtitle, playback and playlist settings
9+
_Version 1.1.00 (May 23, 2023)_
10+
- Added shaders
11+
- SSimDownscaler by [igv](https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10)
12+
- SSimSuperRes by [igv](https://gist.github.com/igv/2364ffa6e81540f29cb7ab4c9bc05b6b)
13+
- KrigBilateral by [igv](https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637)
14+
- Nvidia Adaptive-directional sharpening algorithm shader by [agyild](https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214)
15+
- Contrast Adaptive Sharpening (CAS) by [agyild](https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6)
16+
- FidelityFX Super Resolution (FSR) by [agyild](https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5)
17+
- Split config file into six files (organized and easier toggling)
1818

1919
## Important Notes
2020

@@ -28,6 +28,8 @@ The defaults are:
2828

2929
See [HISTORY.md](HISTORY.md) for the history of older versions.
3030

31+
As of version 1.1.00 please check the other `.conf` files as well.
32+
3133
📝 I suggest that you have a read of my __mpv.conf__ and alter it to your liking. 📝
3234

3335
- I've personally switched to MPV v3 since the Windows app and `updater.bat` has problems for MPV v2
@@ -46,7 +48,9 @@ This is an improved MPV Media Player v3 configuration file that:
4648
- sets max volume (100%) and default volume (70%)
4749
- sets subtitle font to `Arial` and sets the color to off-yellow
4850
- sets the HLS bitrate to maximum
49-
- sets the default audio language and subtitle language to `en,eng`
51+
- sets the default video, audio, and subtitle language to `en,eng`
52+
- uses shaders to improve, upscale and downscale videos
53+
- CAS, FSR, KrigBilateral, SSimDownscaler and SSimSuperRes
5054
- has been tested on Windows 11 only (not tested on Apple or Linux)
5155
- adds no additional cruft...
5256

@@ -59,8 +63,12 @@ This is an improved MPV Media Player v3 configuration file that:
5963
## Credits
6064

6165
* Some files are based off of the repo [Argon-/mpv-config](https://github.com/Argon-/mpv-config) by [Argon- (Julian)](https://github.com/Argon-)
66+
* Inspired by [mpv-config](https://github.com/Zabooby/mpv-config) by [Zabooby](https://github.com/Zabooby)
67+
* Shaders by [igv](https://gist.github.com/igv) and [agyild](https://gist.github.com/agyild/)
6268

6369
## Configuration for MPV v3
6470

65-
1. place the `mpv.conf` file next to `mpv.exe`
66-
2. (Optional) for many changed keybindings, place the `input.conf` file next to `mpv.exe`
71+
0. Download the latest release
72+
1. Extract the `.conf` files and `shaders` folder next to `mpv.exe`
73+
2. Delete `input.conf` if desired (custom keybindings)
74+
3. Delete or comment out the include line for `mpv_shaders.conf` if your GPU cannot handle the shaders

mpv_v3/input.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# MPV v3 Input Configuration - version 1.0.10
2+
# MPV v3 Input Configuration - version 1.1.00
33

44
# Mouse
55

mpv_v3/mpv.conf

Lines changed: 38 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,14 @@
11

2-
# MPV v3 Config - version 1.0.12
3-
# Last Edited: 2023-05-07 11:54:41PM
2+
# MPV v3 Config - version 1.1.00
43

54
# REF: https://github.com/Argon-/mpv-config/blob/master/mpv.conf
6-
7-
# ===== Terminal =====
8-
9-
cursor-autohide=100 # autohides the cursor after x ms
10-
cursor-autohide-fs-only=yes # don't autohide the cursor in window mode, only fullscreen
11-
msg-color=yes # color log messages on terminal
12-
msg-module=yes # prepend module name to log messages
13-
term-osd-bar=yes # displays a progress bar on the terminal
14-
15-
# ===== OSD =====
16-
17-
osd-bar-align-y=-1 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
18-
osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
19-
osd-bar-w=99 # width of " " "
20-
osd-border-color='#DD322640' # ARGB format
21-
osd-border-size=2 # size for osd text and progress bar
22-
osd-color='#FFFFFFFF' # ARGB format
23-
osd-duration=1000 # hide the osd after x ms
24-
osd-font-size=32
25-
#osd-font='Arial' # sets a custom font (comment out line if font change is undesired)
26-
osd-status-msg='${time-pos} / ${duration}${?percent-pos: (${percent-pos}%)}${?frame-drop-count:${!frame-drop-count==0: Dropped: ${frame-drop-count}}}\n${?chapter:Chapter: ${chapter}}'
5+
# REF: https://github.com/Zabooby/mpv-config
6+
# REF: https://gist.github.com/igv
277

288
# ===== Seeking =====
299

3010
save-position-on-quit=yes # saves the seekbar position on exit
11+
force-seekable=yes # forces videos to be seekable
3112

3213
# ===== RAM =====
3314

@@ -36,100 +17,51 @@ cache=yes # uses a large seekable RAM cache even f
3617
demuxer-max-back-bytes=20M # sets fast seeking
3718
demuxer-max-bytes=20M # sets fast seeking
3819

20+
# ===== Video =====
21+
22+
vlang=en,eng # Sets the video language
23+
vo=gpu-next # Sets the video out to an experimental video renderer based on libplacebo
24+
3925
# ===== Audio =====
4026

4127
volume-max=100 # maximum volume in %, everything above 100 results in amplification
4228
volume=70 # default volume, 100 = unchanged
4329

44-
# ===== Subtitles =====
45-
46-
# Display English Subtitles if available
47-
#sub-ass-force-margins=yes
48-
#sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
49-
#sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
50-
#sub-border-color="#FF262626"
51-
#sub-border-size=3.0
52-
#sub-color="#FFFFFFFF"
53-
#sub-shadow-color="#33000000"
54-
#sub-shadow-offset=1
55-
#sub-spacing=0.5
56-
#sub-use-margins=yes
57-
alang=en,eng # default audio languages
58-
embeddedfonts=yes # use embedded fonts for SSA/ASS subs
59-
slang=en,eng # default subtitles languages
60-
sub-auto=all
61-
sub-color='#eaea27' # use yellow sub color (remove this line to make subtitles the default white colour)
62-
sub-file-paths-append='Subs/${filename/no-ext}' # search for external subs in these relative subdirectories
63-
sub-file-paths-append='Subs/${filename}'
64-
sub-file-paths-append='subs/${filename/no-ext}'
65-
sub-file-paths-append='subs/${filename}'
66-
sub-file-paths-append=ASS
67-
sub-file-paths-append=Ass
68-
sub-file-paths-append=SRT
69-
sub-file-paths-append=Srt
70-
sub-file-paths-append=Sub
71-
sub-file-paths-append=Subs
72-
sub-file-paths-append=Subtitles
73-
sub-file-paths-append=ass
74-
sub-file-paths-append=srt
75-
sub-file-paths-append=sub
76-
sub-file-paths-append=subs
77-
sub-file-paths-append=subtitles
78-
sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
79-
sub-font-size=45
80-
sub-font="Arial"
81-
sub-scale-with-window=yes
30+
# ===== General =====
8231

83-
force-seekable=yes # forces videos to be seekable
8432
hls-bitrate=max # uses max quality for HLS streams
8533
pause=yes # disables autoplay
8634
prefetch-playlist=yes # prefetches the playlist
35+
snap-window=yes # Enables windows snapping for Windows 10, 11
36+
priority=high # Makes PC prioritize MPV for allocating resources
8737

88-
snap-window=yes
38+
# ===== Terminal =====
39+
40+
include="~~/mpv_terminal.conf"
41+
42+
# ===== OSD =====
43+
44+
include="~~/mpv_osd.conf"
45+
46+
# ===== Subtitles =====
47+
48+
include="~~/mpv_subtitles.conf"
49+
50+
# ===== Shaders =====
51+
52+
include="~~/mpv_shaders.conf"
53+
54+
# ===== File Extensions =====
55+
56+
include="~~/mpv_file_extensions.conf"
8957

9058
# ===========================================================================================================
9159

92-
# Version 1.0.12 Changes
60+
# DEACTIVATED TESTING 23.05.2023
9361

94-
fullscreen=yes # Sets the video to start fullscreen
95-
keep-open=yes # Don't terminate if the current file is the last playlist entry
96-
priority=high # Makes PC prioritize MPV for allocating resources
97-
screen=0 # Sets the video to appear on screen #1
98-
sub-back-color='#C0000000' # subtitle background color <==================== TESTING 07.05.2023!
99-
vlang=en,eng # Sets the video language
100-
vo=gpu-next # Sets the video out to an experimental video renderer based on libplacebo
101-
window-maximized=yes # Starts the window in the maximized state
102-
103-
# TESTING SHADERS - version 1.0.12 - 07.05.2023
104-
# May be included in a future release. Needs more testing!
105-
106-
#[upscale-lowres]
107-
#profile-desc=Upscales low resolution videos using upscaling shaders.
108-
#profile-cond=height <= 1000
109-
# AMD (modal: switch depending on your GPU, if no discrete GPU then comment out four lines)
110-
#glsl-shaders-append="shaders/CAS.glsl" # https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6
111-
#glsl-shaders-append="shaders/FSR.glsl" # https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5
112-
# NVidia (modal: switch depending on your GPU, if no discrete GPU then comment out four lines)
113-
#glsl-shaders-append="shaders/NVScaler.glsl" # https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214
114-
#glsl-shaders-append="shaders/NVSharpen.glsl" # https://gist.github.com/agyild
115-
116-
# File Extensions ======================
117-
# (Loops playback for suitable file formats)
118-
119-
[extension.gif]
120-
profile-desc=GIF
121-
cache=no
122-
no-pause
123-
loop-file=yes
124-
[extension.png]
125-
profile-desc=PNG
126-
video-aspect-override=no
127-
loop-file=yes
128-
[extension.jpg]
129-
profile-desc=JPG
130-
video-aspect-override=no
131-
loop-file=yes
132-
[extension.jpeg]
133-
profile-desc=JPEG
134-
profile=extension.jpg
135-
loop-file=yes
62+
#fullscreen=yes # Sets the video to start fullscreen
63+
#keep-open=yes # Don't terminate if the current file is the last playlist entry
64+
#screen=1 # Sets the video to appear on screen #1
65+
#sub-back-color='#C0000000' # Sets subtitle background color <==================== TESTING 07.05.2023!
66+
67+
#window-maximized=yes # Starts the window in the maximized state

mpv_v3/mpv_file_extensions.conf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
[extension.gif]
3+
profile-desc=GIF
4+
cache=no
5+
no-pause
6+
loop-file=yes
7+
[extension.png]
8+
profile-desc=PNG
9+
video-aspect-override=no
10+
loop-file=yes
11+
[extension.jpg]
12+
profile-desc=JPG
13+
video-aspect-override=no
14+
loop-file=yes
15+
[extension.jpeg]
16+
profile-desc=JPEG
17+
profile=extension.jpg
18+
loop-file=yes

mpv_v3/mpv_osd.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
osd-bar-align-y=-1 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
3+
osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
4+
osd-bar-w=99 # width of " " "
5+
osd-border-color='#DD322640' # ARGB format
6+
osd-border-size=2 # size for osd text and progress bar
7+
osd-color='#FFFFFFFF' # ARGB format
8+
osd-duration=1000 # hide the osd after x ms
9+
osd-font-size=32
10+
#osd-font='Arial' # sets a custom font (comment out line if font change is undesired)
11+
osd-status-msg='${time-pos} / ${duration}${?percent-pos: (${percent-pos}%)}${?frame-drop-count:${!frame-drop-count==0: Dropped: ${frame-drop-count}}}\n${?chapter:Chapter: ${chapter}}'

mpv_v3/mpv_shaders.conf

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
# Clears all shaders from the list
3+
glsl-shaders-clr
4+
5+
# ===== igv shaders ======
6+
# REF: https://gist.github.com/igv
7+
8+
# SSimDownscaler: Perceptually based downscaler.
9+
linear-downscaling=no
10+
glsl-shaders-append="shaders/SSimDownscaler.glsl" # https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10
11+
12+
# SSimSuperRes: Make corrections to the image upscaled by mpv built-in scaler
13+
# (removes ringing artifacts and restores original sharpness).
14+
glsl-shaders-append="shaders/SSimSuperRes.glsl" # https://gist.github.com/igv/2364ffa6e81540f29cb7ab4c9bc05b6b
15+
16+
# KrigBilateral: Chroma scaler that uses luma information for high quality upscaling.
17+
glsl-shaders-append="shaders/KrigBilateral.glsl" # https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637
18+
19+
# ===== GPU shaders =====
20+
# REF: https://gist.github.com/agyild
21+
22+
# Adaptive-directional sharpening algorithm shaders.
23+
glsl-shaders-append="shaders/NVScaler.glsl" # https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214
24+
glsl-shaders-append="shaders/NVSharpen.glsl" # https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214
25+
26+
# FidelityFX CAS - Sharpening shader that provides an even level of sharpness across the frame.
27+
glsl-shaders-append="shaders/CAS.glsl" # https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6
28+
29+
# AMD FidelityFX Super Resolution - A spatial upscaler which provides consistent upscaling quality
30+
# regardless of whether the frame is in movement.
31+
glsl-shaders-append="shaders/FSR.glsl" # https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5
32+
33+
# DEACTIVATED
34+
#[upscale-lowres]
35+
#profile-desc=Upscales low resolution videos using upscaling shaders.
36+
#profile-cond=height <= 1000
37+
# AMD (modal: switch depending on your GPU, if no discrete GPU then comment out four lines)
38+
#glsl-shaders-append="shaders/CAS.glsl" # https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6
39+
#glsl-shaders-append="shaders/FSR.glsl" # https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5
40+
# NVidia (modal: switch depending on your GPU, if no discrete GPU then comment out four lines)
41+
#glsl-shaders-append="shaders/NVScaler.glsl" # https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214
42+
#glsl-shaders-append="shaders/NVSharpen.glsl" # https://gist.github.com/agyild

mpv_v3/mpv_subtitles.conf

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
# Display English Subtitles if available
3+
#sub-ass-force-margins=yes
4+
#sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
5+
#sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
6+
#sub-border-color="#FF262626"
7+
#sub-border-size=3.0
8+
#sub-color="#FFFFFFFF"
9+
#sub-shadow-color="#33000000"
10+
#sub-shadow-offset=1
11+
#sub-spacing=0.5
12+
#sub-use-margins=yes
13+
alang=en,eng # default audio languages
14+
embeddedfonts=yes # use embedded fonts for SSA/ASS subs
15+
slang=en,eng # default subtitles languages
16+
sub-auto=all
17+
sub-color='#eaea27' # use yellow sub color (remove this line to make subtitles the default white colour)
18+
sub-file-paths-append='Subs/${filename/no-ext}' # search for external subs in these relative subdirectories
19+
sub-file-paths-append='Subs/${filename}'
20+
sub-file-paths-append='subs/${filename/no-ext}'
21+
sub-file-paths-append='subs/${filename}'
22+
sub-file-paths-append=ASS
23+
sub-file-paths-append=Ass
24+
sub-file-paths-append=SRT
25+
sub-file-paths-append=Srt
26+
sub-file-paths-append=Sub
27+
sub-file-paths-append=Subs
28+
sub-file-paths-append=Subtitles
29+
sub-file-paths-append=ass
30+
sub-file-paths-append=srt
31+
sub-file-paths-append=sub
32+
sub-file-paths-append=subs
33+
sub-file-paths-append=subtitles
34+
sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
35+
sub-font-size=45
36+
sub-font="Arial"
37+
sub-scale-with-window=yes

mpv_v3/mpv_terminal.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
cursor-autohide=100 # autohides the cursor after x ms
3+
cursor-autohide-fs-only=yes # don't autohide the cursor in window mode, only fullscreen
4+
msg-color=yes # color log messages on terminal
5+
msg-module=yes # prepend module name to log messages
6+
term-osd-bar=yes # displays a progress bar on the terminal

0 commit comments

Comments
 (0)