TOC

mpv 播放器

快捷键

  • Left/Right:快进, 快退
  • Up/Down:快进, 快退
  • [/]:倍速 x0.9, x1.1
  • {/}:倍速 x0.5, x2
  • Space (p):暂停/播放
  • ,/.: 暂停,然后逐帧前进,逐帧后退
  • 9/0: 音量
  • s: 截图
  • q: 退出
  • v: 字幕开关
  • j: 切换字幕
  • o: 显示进度
  • f: 全屏开关
  • i: 显示视频信息
  • #: 切换音轨
  • l: 设置循环 A-B 点, 循环播放,清除循环

配置

系统配置:/etc/mpv/mpv.conf

cat /etc/mpv/mpv.conf    
hwdec=vaapi

用户配置 (需要自己创建):

  • ~/.config/mpv/mpv.conf
  • ~/.config/mpv/input.conf
  • ~/.config/mpv/fonts.conf
  • ~/.config/mpv/script-opts/osc.conf
no-border

idle=yes

osd-font-size=24
save-position-on-quit

hwdec=auto

screenshot-directory=~/Pictures/Screenshots
screenshot-format=png
screenshot-template="%tY%tm%td-%tH%tM%tS-mpv-%F-%wH%wM%wS%wT"
mkdir -p ~/.config/mpv/scripts ~/.config/mpv/script-opts
find ~/.config/mpv/ -ls

GH=https://raw.githubusercontent.com
wget $GH/jonniek/mpv-menu/master/menu.lua -P ~/.config/mpv/scripts/
wget $GH/jonniek/mpv-playlistmanager/master/playlistmanager.lua -P ~/.config/mpv/scripts/
wget $GH/jonniek/mpv-playlistmanager/master/playlistmanager.conf -P ~/.config/mpv/script-opts/
wget $GH/jonniek/mpv-playlistmanager/master/menu.json -P ~/.config/mpv/script-opts/