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

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hl2guide authored May 23, 2023
1 parent 788928c commit d7366c1
Show file tree
Hide file tree
Showing 17 changed files with 2,757 additions and 121 deletions.
10 changes: 10 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@

_Version 1.1.00 (May 23, 2023)_
- Added shaders
- SSimDownscaler by [igv](https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10)
- SSimSuperRes by [igv](https://gist.github.com/igv/2364ffa6e81540f29cb7ab4c9bc05b6b)
- KrigBilateral by [igv](https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637)
- Nvidia Adaptive-directional sharpening algorithm shader by [agyild](https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214)
- Contrast Adaptive Sharpening (CAS) by [agyild](https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6)
- FidelityFX Super Resolution (FSR) by [agyild](https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5)
- Split config file into six files (organized and easier toggling)

_Version 1.0.12 (May 2023)_:
- Made videos start fullscreen on the primary screen
- Made the video window stay open after video playback (allows for drag and drop of video files)
Expand Down
36 changes: 22 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# better-mpv-config

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

## What's New

_Version 1.0.12 (May 2023)_:
- Made videos start fullscreen on the primary screen
- Made the video window stay open after video playback (allows for drag and drop of video files)
- Added profiles for some file extensions (animations and static images)
- Removed legacy MPV v2 config file

_Version 1.0.10 (Feb 2023)_:
- Rewrote `mpv_v3\mpv.conf` and `mpv_v3\input.conf` (adapted from the repo [Argon-/mpv-config](https://github.com/Argon-/mpv-config))
- Vastly improved terminal, OSD, audio, subtitle, playback and playlist settings
_Version 1.1.00 (May 23, 2023)_
- Added shaders
- SSimDownscaler by [igv](https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10)
- SSimSuperRes by [igv](https://gist.github.com/igv/2364ffa6e81540f29cb7ab4c9bc05b6b)
- KrigBilateral by [igv](https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637)
- Nvidia Adaptive-directional sharpening algorithm shader by [agyild](https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214)
- Contrast Adaptive Sharpening (CAS) by [agyild](https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6)
- FidelityFX Super Resolution (FSR) by [agyild](https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5)
- Split config file into six files (organized and easier toggling)

## Important Notes

Expand All @@ -28,6 +28,8 @@ The defaults are:

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

As of version 1.1.00 please check the other `.conf` files as well.

📝 I suggest that you have a read of my __mpv.conf__ and alter it to your liking. 📝

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

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

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

## Configuration for MPV v3

1. place the `mpv.conf` file next to `mpv.exe`
2. (Optional) for many changed keybindings, place the `input.conf` file next to `mpv.exe`
0. Download the latest release
1. Extract the `.conf` files and `shaders` folder next to `mpv.exe`
2. Delete `input.conf` if desired (custom keybindings)
3. Delete or comment out the include line for `mpv_shaders.conf` if your GPU cannot handle the shaders
2 changes: 1 addition & 1 deletion mpv_v3/input.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# MPV v3 Input Configuration - version 1.0.10
# MPV v3 Input Configuration - version 1.1.00

# Mouse

Expand Down
144 changes: 38 additions & 106 deletions mpv_v3/mpv.conf
Original file line number Diff line number Diff line change
@@ -1,33 +1,14 @@

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

# REF: https://github.com/Argon-/mpv-config/blob/master/mpv.conf

# ===== Terminal =====

cursor-autohide=100 # autohides the cursor after x ms
cursor-autohide-fs-only=yes # don't autohide the cursor in window mode, only fullscreen
msg-color=yes # color log messages on terminal
msg-module=yes # prepend module name to log messages
term-osd-bar=yes # displays a progress bar on the terminal

# ===== OSD =====

osd-bar-align-y=-1 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
osd-bar-w=99 # width of " " "
osd-border-color='#DD322640' # ARGB format
osd-border-size=2 # size for osd text and progress bar
osd-color='#FFFFFFFF' # ARGB format
osd-duration=1000 # hide the osd after x ms
osd-font-size=32
#osd-font='Arial' # sets a custom font (comment out line if font change is undesired)
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}}'
# REF: https://github.com/Zabooby/mpv-config
# REF: https://gist.github.com/igv

# ===== Seeking =====

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

# ===== RAM =====

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

# ===== Video =====

vlang=en,eng # Sets the video language
vo=gpu-next # Sets the video out to an experimental video renderer based on libplacebo

# ===== Audio =====

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

# ===== Subtitles =====

# Display English Subtitles if available
#sub-ass-force-margins=yes
#sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
#sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
#sub-border-color="#FF262626"
#sub-border-size=3.0
#sub-color="#FFFFFFFF"
#sub-shadow-color="#33000000"
#sub-shadow-offset=1
#sub-spacing=0.5
#sub-use-margins=yes
alang=en,eng # default audio languages
embeddedfonts=yes # use embedded fonts for SSA/ASS subs
slang=en,eng # default subtitles languages
sub-auto=all
sub-color='#eaea27' # use yellow sub color (remove this line to make subtitles the default white colour)
sub-file-paths-append='Subs/${filename/no-ext}' # search for external subs in these relative subdirectories
sub-file-paths-append='Subs/${filename}'
sub-file-paths-append='subs/${filename/no-ext}'
sub-file-paths-append='subs/${filename}'
sub-file-paths-append=ASS
sub-file-paths-append=Ass
sub-file-paths-append=SRT
sub-file-paths-append=Srt
sub-file-paths-append=Sub
sub-file-paths-append=Subs
sub-file-paths-append=Subtitles
sub-file-paths-append=ass
sub-file-paths-append=srt
sub-file-paths-append=sub
sub-file-paths-append=subs
sub-file-paths-append=subtitles
sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
sub-font-size=45
sub-font="Arial"
sub-scale-with-window=yes
# ===== General =====

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

snap-window=yes
# ===== Terminal =====

include="~~/mpv_terminal.conf"

# ===== OSD =====

include="~~/mpv_osd.conf"

# ===== Subtitles =====

include="~~/mpv_subtitles.conf"

# ===== Shaders =====

include="~~/mpv_shaders.conf"

# ===== File Extensions =====

include="~~/mpv_file_extensions.conf"

# ===========================================================================================================

# Version 1.0.12 Changes
# DEACTIVATED TESTING 23.05.2023

fullscreen=yes # Sets the video to start fullscreen
keep-open=yes # Don't terminate if the current file is the last playlist entry
priority=high # Makes PC prioritize MPV for allocating resources
screen=0 # Sets the video to appear on screen #1
sub-back-color='#C0000000' # subtitle background color <==================== TESTING 07.05.2023!
vlang=en,eng # Sets the video language
vo=gpu-next # Sets the video out to an experimental video renderer based on libplacebo
window-maximized=yes # Starts the window in the maximized state

# TESTING SHADERS - version 1.0.12 - 07.05.2023
# May be included in a future release. Needs more testing!

#[upscale-lowres]
#profile-desc=Upscales low resolution videos using upscaling shaders.
#profile-cond=height <= 1000
# AMD (modal: switch depending on your GPU, if no discrete GPU then comment out four lines)
#glsl-shaders-append="shaders/CAS.glsl" # https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6
#glsl-shaders-append="shaders/FSR.glsl" # https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5
# NVidia (modal: switch depending on your GPU, if no discrete GPU then comment out four lines)
#glsl-shaders-append="shaders/NVScaler.glsl" # https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214
#glsl-shaders-append="shaders/NVSharpen.glsl" # https://gist.github.com/agyild

# File Extensions ======================
# (Loops playback for suitable file formats)

[extension.gif]
profile-desc=GIF
cache=no
no-pause
loop-file=yes
[extension.png]
profile-desc=PNG
video-aspect-override=no
loop-file=yes
[extension.jpg]
profile-desc=JPG
video-aspect-override=no
loop-file=yes
[extension.jpeg]
profile-desc=JPEG
profile=extension.jpg
loop-file=yes
#fullscreen=yes # Sets the video to start fullscreen
#keep-open=yes # Don't terminate if the current file is the last playlist entry
#screen=1 # Sets the video to appear on screen #1
#sub-back-color='#C0000000' # Sets subtitle background color <==================== TESTING 07.05.2023!

#window-maximized=yes # Starts the window in the maximized state
18 changes: 18 additions & 0 deletions mpv_v3/mpv_file_extensions.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

[extension.gif]
profile-desc=GIF
cache=no
no-pause
loop-file=yes
[extension.png]
profile-desc=PNG
video-aspect-override=no
loop-file=yes
[extension.jpg]
profile-desc=JPG
video-aspect-override=no
loop-file=yes
[extension.jpeg]
profile-desc=JPEG
profile=extension.jpg
loop-file=yes
11 changes: 11 additions & 0 deletions mpv_v3/mpv_osd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

osd-bar-align-y=-1 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
osd-bar-w=99 # width of " " "
osd-border-color='#DD322640' # ARGB format
osd-border-size=2 # size for osd text and progress bar
osd-color='#FFFFFFFF' # ARGB format
osd-duration=1000 # hide the osd after x ms
osd-font-size=32
#osd-font='Arial' # sets a custom font (comment out line if font change is undesired)
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}}'
42 changes: 42 additions & 0 deletions mpv_v3/mpv_shaders.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

# Clears all shaders from the list
glsl-shaders-clr

# ===== igv shaders ======
# REF: https://gist.github.com/igv

# SSimDownscaler: Perceptually based downscaler.
linear-downscaling=no
glsl-shaders-append="shaders/SSimDownscaler.glsl" # https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10

# SSimSuperRes: Make corrections to the image upscaled by mpv built-in scaler
# (removes ringing artifacts and restores original sharpness).
glsl-shaders-append="shaders/SSimSuperRes.glsl" # https://gist.github.com/igv/2364ffa6e81540f29cb7ab4c9bc05b6b

# KrigBilateral: Chroma scaler that uses luma information for high quality upscaling.
glsl-shaders-append="shaders/KrigBilateral.glsl" # https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637

# ===== GPU shaders =====
# REF: https://gist.github.com/agyild

# Adaptive-directional sharpening algorithm shaders.
glsl-shaders-append="shaders/NVScaler.glsl" # https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214
glsl-shaders-append="shaders/NVSharpen.glsl" # https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214

# FidelityFX CAS - Sharpening shader that provides an even level of sharpness across the frame.
glsl-shaders-append="shaders/CAS.glsl" # https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6

# AMD FidelityFX Super Resolution - A spatial upscaler which provides consistent upscaling quality
# regardless of whether the frame is in movement.
glsl-shaders-append="shaders/FSR.glsl" # https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5

# DEACTIVATED
#[upscale-lowres]
#profile-desc=Upscales low resolution videos using upscaling shaders.
#profile-cond=height <= 1000
# AMD (modal: switch depending on your GPU, if no discrete GPU then comment out four lines)
#glsl-shaders-append="shaders/CAS.glsl" # https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6
#glsl-shaders-append="shaders/FSR.glsl" # https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5
# NVidia (modal: switch depending on your GPU, if no discrete GPU then comment out four lines)
#glsl-shaders-append="shaders/NVScaler.glsl" # https://gist.github.com/agyild/7e8951915b2bf24526a9343d951db214
#glsl-shaders-append="shaders/NVSharpen.glsl" # https://gist.github.com/agyild
37 changes: 37 additions & 0 deletions mpv_v3/mpv_subtitles.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

# Display English Subtitles if available
#sub-ass-force-margins=yes
#sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
#sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
#sub-border-color="#FF262626"
#sub-border-size=3.0
#sub-color="#FFFFFFFF"
#sub-shadow-color="#33000000"
#sub-shadow-offset=1
#sub-spacing=0.5
#sub-use-margins=yes
alang=en,eng # default audio languages
embeddedfonts=yes # use embedded fonts for SSA/ASS subs
slang=en,eng # default subtitles languages
sub-auto=all
sub-color='#eaea27' # use yellow sub color (remove this line to make subtitles the default white colour)
sub-file-paths-append='Subs/${filename/no-ext}' # search for external subs in these relative subdirectories
sub-file-paths-append='Subs/${filename}'
sub-file-paths-append='subs/${filename/no-ext}'
sub-file-paths-append='subs/${filename}'
sub-file-paths-append=ASS
sub-file-paths-append=Ass
sub-file-paths-append=SRT
sub-file-paths-append=Srt
sub-file-paths-append=Sub
sub-file-paths-append=Subs
sub-file-paths-append=Subtitles
sub-file-paths-append=ass
sub-file-paths-append=srt
sub-file-paths-append=sub
sub-file-paths-append=subs
sub-file-paths-append=subtitles
sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
sub-font-size=45
sub-font="Arial"
sub-scale-with-window=yes
6 changes: 6 additions & 0 deletions mpv_v3/mpv_terminal.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

cursor-autohide=100 # autohides the cursor after x ms
cursor-autohide-fs-only=yes # don't autohide the cursor in window mode, only fullscreen
msg-color=yes # color log messages on terminal
msg-module=yes # prepend module name to log messages
term-osd-bar=yes # displays a progress bar on the terminal
Loading

1 comment on commit d7366c1

@hl2guide
Copy link
Owner Author

@hl2guide hl2guide commented on d7366c1 May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 1.1.00 is out. Be sure to read the new usage instructions in README.md.

Please sign in to comment.