自己整了个播放时自动缩放窗口的脚本 #528
thelastfantasy
started this conversation in
mpv 通用
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://gist.github.com/thelastfantasy/d806805b2c465c80083738b4cee7c350
MPV 窗口自动调整脚本
功能介绍
自动调整窗口尺寸
根据视频分辨率和显示器分辨率动态调整 MPV 窗口大小。
限制最大尺寸
窗口高度限制为显示器高度的 75%(由
max_screen_ratio
选项设置),宽度则按视频宽高比动态计算,确保窗口尺寸合理。保证最小尺寸
窗口高度不会小于 1080(由
min_height
选项设置),确保显示效果,避免窗口过小。动态日志输出
75%
)。使用说明
resize_window.lua
。~/.config/mpv/scripts/
%APPDATA%\mpv\scripts\
选项文件(可选)
可创建
script-opts/resize_window.conf
文件以管理此脚本设置例:
Beta Was this translation helpful? Give feedback.
All reactions