dotfiles/.config/mpv/mpv.conf

137 lines
5.9 KiB
Plaintext
Raw Normal View History

2023-05-26 16:53:39 +02:00
# MPV v3 Config - version 1.0.12
# Last Edited: 2023-05-07 11:54:41PM
# 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='Inter Nerd Font' # 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}}'
# ===== Seeking =====
save-position-on-quit=no # saves the seekbar position on exit
# ===== RAM =====
cache=yes # uses a large seekable RAM cache even for local input.
# cache-secs=300 # uses extra large RAM cache (needs cache=yes to make it useful).
demuxer-max-back-bytes=20M # sets fast seeking
demuxer-max-bytes=20M # sets fast seeking
# ===== 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=1.5
#sub-color="#FFFFFFFF"
#sub-shadow-color="#33000000"
#sub-shadow-offset=1
#sub-spacing=0.5
sub-pos=92
#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=43
sub-font='Inter Nerd Font'
sub-bold=yes
sub-scale-with-window=yes
force-seekable=yes # forces videos to be seekable
hls-bitrate=max # uses max quality for HLS streams
pause=no # disables autoplay
prefetch-playlist=yes # prefetches the playlist
snap-window=yes
# ===========================================================================================================
# Version 1.0.12 Changes
fullscreen=no # 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