dots/home/private_dot_config/private_mpv/executable_mpv.conf

83 lines
2.6 KiB
INI

# required so that the 2 UIs don't fight each other
osc=no
# uosc provides its own seeking/volume indicators, so you also don't need this
osd-bar=no
# uosc will draw its own window controls if you disable window border
border=yes
# osd font
osd-font="Sarasa UI SC"
[default]
sub-codepage = cp936
slang = zh_CN,zho,chi,zh,zh_TW,eng,en,danmuku,jpn,ja
sub-pos = 95
sub-font-size = 30
demuxer-readahead-secs = 20
hwdec = vaapi
vo = gpu-next,
# this will cause broken cover images
# hwdec-codecs = all
# move subtitles to margins
sub-ass-force-margins = yes
# this takes a lot of CPU on the terminal
# osd-fractions = yes
osc = no
screenshot-format = webp
scale = nearest
dscale = mitchell
ytdl-raw-options=yes-playlist=
# mpv will by default pass "bestvideo+bestaudio/best", which selects h264 over vp9 because of its larger size
ytdl-format=(bestvideo[height<=3840][vcodec^=vp]/bestvideo[height<=3840])+bestaudio/(best[height<=3840][vcodec^=vp]/best[height<=3840])
# use yt-dlp
script-opts=ytdl_hook-ytdl_path=yt-dlp
[smaller-window]
profile-desc = "Automatically make the window smaller when the width of video is larger than the screen height"
profile-cond=height >= 1200
autofit-larger=2240x1400
window-scale=0.4
[bigger-window]
profile-desc = "Automatically make the window bigger when the width of video is quite small than the screen height"
profile-cond=height <= 480
autofit-smaller=720x480
window-scale=1.5
[lilyboudoir]
# use too much GPU that lilyforest cannot afford
profile-desc = High GPU
profile-cond = p['user-data/hostname'] == "lilyboudoir"
scale = ewa_lanczos
dscale = spline36
interpolation = yes
video-sync = display-resample
tscale = linear
ytdl-format=(bestvideo[height<=3840][vcodec^=av01]/bestvideo[height<=3840][vcodec^=vp]/bestvideo[height<=3840])+bestaudio/(best[height<=3840][vcodec^=av01]/best[height<=3840][vcodec^=vp]/best[height<=3840])
[twitch-live]
profile-desc = twitch live videos
profile-cond = path:match("https://www.twitch.tv/")~=nil
profile-restore = copy
ytdl-format = 720p60__source_
[bilibili-live]
profile-desc = Bilibili live videos
profile-cond = path:match("https://live.bilibili.com")~=nil
profile-restore = copy
# mpegts hevc 原画 / flv avc 原画 / ...
ytdl-format = source-7/source-0/source
ytdl-raw-options = cookies-from-browser=firefox:l95bt9b0.usr-default
[bilibili]
profile-desc = Bilibili videos
profile-cond = path:match("https://www.bilibili.com")~=nil or path:match("https://bilibili.com")~=nil
profile-restore = copy
referrer = https://www.bilibili.com/
ytdl-raw-options = cookies-from-browser=firefox:l95bt9b0.usr-default
# vim: se ft=dosini: