mpv
-
- GPLv2, LGPLv2.1, C, Lua
-
- dir
- ~/.config/mpv/
- /usr/local/etc/mpv
- /etc/mpv
- %APPDATA%/mpv
- mpv/
- mpv.conf
- input.conf
- fonts.conf
- subfont.ttf - fallback subtitle font
- fonts/
- scripts/
- watch_later/
- script-opts/osc.conf
- dir
-
--sub-auto
- no
- exact - default
- fuzzy
- all
-
参考
keyboard for Left/Right 快退/快进 5 秒 Shift+Left/Right 精确快退/快进 1 秒 Up/Down 快进/快退 1 分钟 Shift+Up/Down 精确快进/快退 5 秒 Ctrl+Left/Right 上/下一个字幕 Ctrl+Shift+Left/Right 字幕延迟同步到当前台词 [/] 播放速度 -/+ 10% {/} 播放速度减半/加倍 BACKSPACE 恢复正常播放速度 Shift+BACKSPACE 撤销上次跳转 Shift+Ctrl+BACKSPACE 标记当前位置用于撤销跳转 </> 上/下一个播放列表项 ENTER 下一个播放列表项 Shift+HOME/END 跳到播放列表首/尾 p/SPACE 暂停/继续播放 ./, 前进/后退 一帧(逐帧播放) q 停止并退出 Q 退出并保存播放进度 //* 音量 -/+ KP_DIVIDE/KP_MULTIPLY 音量 -/+ 9/0 音量 -/+ m 静音 _ 切换视频轨道 # 切换音轨 E 切换版本(Edition) f 切换全屏 ESC 退出全屏 T 窗口置顶切换 w/W 缩放画面(pan-and-scan) o/P 显示进度条/时间 O 切换 OSD 状态 v 切换字幕显示 j/J 切换字幕轨道 z/Z 字幕延迟 -/+ 0.1 秒 l 设置/清除 A-B 循环点 L 无限循环切换 Ctrl++/- 音频延迟 -/+ 0.1 秒 Ctrl+KP_ADD/KP_SUBTRACT 音频延迟 -/+ 0.1 秒 G/F 字幕字体大小 -/+ 10% u 切换 SSA/ASS 字幕样式覆盖 V 切换 ASS 渲染视频数据 r/R 字幕位置上/下 s 截屏 S 截屏(无字幕) Ctrl+s 截屏(含 OSD/字幕/缩放) HOME 跳到文件开头 PGUP/PGDWN 上/下章节 Shift+PGUP/PGDWN 快进/快退 10 分钟 b 开关去色带(debanding) d 切换去隔行(deinterlacing) A 切换宽高比 Ctrl+h 切换硬件解码 Alt+方向键 平移画面 Alt++/- 缩放画面 Alt+BACKSPACE 重置画面缩放/平移 F8 显示播放列表 F9 显示音轨/字幕流列表 Ctrl+v 粘贴剪贴板中的文件/URL到播放列表 i/I 显示/切换统计信息 ? 显示当前按键绑定 DEL 切换 OSC 显示模式 ` 打开控制台(ESC 关闭) 1/2 对比度 -/+ 3/4 亮度 -/+ 5/6 Gamma -/+ 7/8 饱和度 -/+ Alt+0 窗口缩放为原始一半 Alt+1 窗口缩放为原始大小 Alt+2 窗口缩放为原始两倍 Command+f (macOS) 切换全屏
brew install mpv # macOS brew mpv 命令行
brew install mpv --cask # macOS brew mpv 应用 https://laboratory.stolendata.net/~djinn/mpv_osx/
# fake gui
mpv --no-video
# yt-dlp
mpv 'https://www.youtube.com/watch?v=xyz'
# 终端渲染
mpv --vo=tct "https://youtube.com/watch?v=xyz"
# 纯音乐
# --ytdl-format='bestaudio'
mpv --no-video --vo=null --ytdl-format='bestaudio/best' 'https://www.youtube.com/watch?v=xyz'
# Strming
mpv -vo=gpu --hwdec=vaapi --gpu-context=wayland https://www.twitch.tv/gorgc
video-sync=display-resample
# https://github.com/mpv-player/mpv/wiki/Interpolation
interpolation
tscale=oversample
- iina/iina
- macOS
- disco0/mpv-types-lua
- Lua type declarations for mpv scripting
- igv/FSRCNN-TensorFlow
- upscale
- mpv shader
- TianZerL/ACNetGLSL
- real-time anime upscaling
- https://mpv.io/manual/master/
- ~/.config/mpv/
- ~/.config/mpv/mpv.conf
- ~/.config/mpv/watch_later
- kljohann/mpv.el
- control mpv for easy note-taking
- 下载 https://mpv.io/installation/
profile=gpu-hq
# alang = 'jpn,jp,eng,en'
# slang = 'eng,en,enUS'
autofit-larger=1920x1080 # Set max window size.
autofit-smaller=858x480 # Set min window size.
no-osd-bar # Hide OSD bar when seeking.
osd-duration=500 # Hide OSD text after x ms.
# osd-font='Trebuchet MS'
deband=yes # Default values are 1:64:16:48
deband-iterations=4 # Range 1-16. Higher = better quality but more GPU usage. >5 is redundant.
deband-threshold=50 # Range 0-4096. Deband strength.
deband-range=20 # Range 1-64. Range of deband. Too high may destroy details.
deband-grain=5 # Range 0-4096. Inject grain to cover up bad banding, higher value needed for poor sources.
dither-depth=auto