跳到主要内容

mpv

  • mpv-player/mpv
    • GPLv2, LGPLv2.1, C, Lua
  • manual
    • 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
  • --sub-auto
    • no
    • exact - default
    • fuzzy
    • all
  • 参考
Shortcut
Left/Right+- 5s
UP/DOWN+- 1m
Ctrl+Left/Right上/下 一个字幕
Ctrl+Shift+Left/RightSub delay 上/下 一句台词
[ / ]播放速度 +- 10%
BACKSPACE播放速度 正常
p / SPACE暂停
./,前/后 一帧
q退出
Q退出 - 保留播放位置
/,*-+ 音量
m静音
fESC切换全屏
v切换 字幕 显示
Shift+g, Shift+f字体大小 +- 10%
r,R字幕位置 上、下
s截屏
S截屏 - 无字幕
`Console
# 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
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