feat: mpv: auto resize window when playing very large/small media
This commit is contained in:
parent
5ad8fd7ffc
commit
50509d4b92
1 changed files with 14 additions and 2 deletions
|
@ -5,11 +5,11 @@ osd-bar=no
|
||||||
# uosc will draw its own window controls if you disable window border
|
# uosc will draw its own window controls if you disable window border
|
||||||
border=yes
|
border=yes
|
||||||
# osd font
|
# osd font
|
||||||
osd-font="Source Han Sans CN"
|
osd-font="Sarasa UI SC"
|
||||||
|
|
||||||
[default]
|
[default]
|
||||||
sub-codepage = cp936
|
sub-codepage = cp936
|
||||||
slang = zh_CN,zho,chi,zh,zh_TW,eng,en,jpn,ja
|
slang = zh_CN,zho,chi,zh,zh_TW,eng,en,danmuku,jpn,ja
|
||||||
sub-pos = 95
|
sub-pos = 95
|
||||||
sub-font-size = 30
|
sub-font-size = 30
|
||||||
demuxer-readahead-secs = 20
|
demuxer-readahead-secs = 20
|
||||||
|
@ -33,6 +33,18 @@ ytdl-format=(bestvideo[height<=3840][vcodec^=vp]/bestvideo[height<=3840])+bestau
|
||||||
# use yt-dlp
|
# use yt-dlp
|
||||||
script-opts=ytdl_hook-ytdl_path=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]
|
[lilyboudoir]
|
||||||
# use too much GPU that lilyforest cannot afford
|
# use too much GPU that lilyforest cannot afford
|
||||||
profile-desc = High GPU
|
profile-desc = High GPU
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue