-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmpv.conf
96 lines (85 loc) · 8.66 KB
/
mpv.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# ──────────────────────────────────────────────────────────────────────
# Interface - https://mpv.io/manual/stable/#osd
# ──────────────────────────────────────────────────────────────────────
osc=no # turn off for ModernX OSC
osd-bar=no # removes the default bar when scrubbing or changing volume
osd-duration=2000 # how long osd messages show, in ms
osd-font="Segoe UI Semibold" # UI font, must be available on your system, 'Noto Sans' is used often on Linux
osd-font-size=30
osd-outline-size=2
# ──────────────────────────────────────────────────────────────────────
# Watch Later - https://mpv.io/manual/master/#watch-later
# ──────────────────────────────────────────────────────────────────────
save-position-on-quit=yes # save position on quit
watch-later-options=start, sid # save position and selected subs
# ──────────────────────────────────────────────────────────────────────
# Window - https://mpv.io/manual/stable/#window
# ──────────────────────────────────────────────────────────────────────
title="${filename}" # customise as desired
keep-open=yes # keep mpv open after a video ends
# border=no # optional - if you don't want to see the OS border
title-bar=no # optional - if you don't want to see the OS title bar
autofit-larger=75%x75% # maximum size of the window when it opens - large windows wont fill the screen upon open
autofit-smaller=640x480 # minimum size of the window when it opens
# ──────────────────────────────────────────────────────────────────────
# Terminal - https://mpv.io/manual/stable/#terminal
# ──────────────────────────────────────────────────────────────────────
msg-color=yes # color log messages on terminal
msg-module=yes # prepend module name to log messages
# ──────────────────────────────────────────────────────────────────────
# Playlist - https://mpv.io/manual/master/#options-prefetch-playlist
# ──────────────────────────────────────────────────────────────────────
directory-mode=ignore # ignore subdirectories
autocreate-playlist=filter # add other files in directory into a playlist
directory-filter-types=video,audio
# ──────────────────────────────────────────────────────────────────────
# YouTube/Web Videos - https://mpv.io/manual/master/#options-ytdl-format
# ──────────────────────────────────────────────────────────────────────
ytdl-format=bestvideo[height<=?2160]+bestaudio/best # limit resolution to 2160p - better bitrate
# ytdl-format=bestvideo[height<=?1080][vcodec^=avc1]+bestaudio/best # limit to 1080p h264 - lower CPU usage
hls-bitrate=max # internet video streaming
# ──────────────────────────────────────────────────────────────────────
# Video - https://mpv.io/manual/stable/#video
# ──────────────────────────────────────────────────────────────────────
# Settings to do with video - essentially whether to utilize the CPU
# or GPU more, you can change api with --gpu-api and enable hardware
# decoding with --hwdec=auto-safe
# ──────────────────────────────────────────────────────────────────────
vo=gpu-next # newer rendering pipeline
# profile=fast # for slow computers
# ──────────────────────────────────────────────────────────────────────
# Audio - https://mpv.io/manual/stable/#audio
# ──────────────────────────────────────────────────────────────────────
# Note, the windows setting 'Audio Enhancements' can break downsampling
# for surround tracks, disable disable that option to fix this problem
# ──────────────────────────────────────────────────────────────────────
audio-file-auto=fuzzy # ensure all audio tracks can be loaded
volume-max=150 # amplify volume above 100
alang=jpn,jp,ko,eng,en,enUS,en-US # audio language priority
slang=eng,en # subtitle language priority
# ──────────────────────────────────────────────────────────────────────
# Subtitles - https://mpv.io/manual/stable/#subtitles
# ──────────────────────────────────────────────────────────────────────
sub-auto=fuzzy # external subs don't have to match the file name to autoload (use fuzzy otherwise)
sub-ass-override=force # personal preference - this removes custom fonts from subtitles
sub-font="Segoe UI Semibold" # change the subtitle font of lines without a specificed font
# use 'Noto Sans' for some systems
sub-font-size=32 # subtitle size, use instead of sub-scale to avoid breaking some subtitles
sub-border-size=2
sub-back-color=000000
sub-shadow-offset=1
secondary-sub-pos=6 # position the secondary subtitle slightly downwards from the top of the screen, for detectdualsubs.lua
# ──────────────────────────────────────────────────────────────────────
# Profiles - https://mpv.io/manual/stable/#profiles
# ──────────────────────────────────────────────────────────────────────
# Profiles mean that settings that can be changed based on various
# requirements
# ──────────────────────────────────────────────────────────────────────
[2K rendering] # use GPU rendering for videos at 2K/1440p and above
profile-desc=2K rendering
profile-cond=height >= 1440 and not (audio_codec and (container_fps == nil or container_fps == 1))
hwdec=auto-safe
[audio]
sub-font="A-OTF Shin Go Pro M"
# script-opts-append=modernx-persistent_progress=yes
profile-cond=audio_codec and (container_fps == nil or container_fps == 1)