mpv播放器基础使用(鼠标,键盘快捷键)

mpv播放器基础使用(鼠标,键盘快捷键)

​ mpv是一个开源的命令行视频播放器,支持跨平台。支持详细的配置文件,和脚本的高级特性。并且占用资源比较小十分轻量级。

    这个是最近的稳定版本的官方文档https://mpv.io/manual/stable/

01.帮助信息

在命令行界面输入mpv -h,就会打印出如下的帮助信息

可以看到基础的选项也比较少。但是如果你使用 --list-options 选项,就会打印出一堆选项,估计大多数是要通过配置文件来配置比较方便。所以暂时只要知道这几个基础选项就够用了。

我的需求也很简单,当做ffplay的升级版来用,而且这个软件功能很强大,其实也可以当做potplayer一样当做一个主用的播放器。

mpv -h
Usage:   mpv [options] [url|path/]filename

Basic options:
 --start=<time>    seek to given (percent, seconds, or hh:mm:ss) position
 --no-audio        do not play sound
 --no-video        do not play video
 --fs              fullscreen playback
 --sub-file=<file> specify subtitle file to use
 --playlist=<file> specify playlist file

 --list-options    list all mpv options
 --h=<string>      print options which contain the given string in their name

02.键盘快捷键

总结一下常用操作:

我下面总结的表格,主要是在win10下测试成功了,部分快捷键在mac下面是不一样的

快捷键 功能 配置项
← → 前进/后退5秒,加shift变为移动1秒 --hr-seek
↑↓ 前进/后退60秒,加shift变为5秒 --hr-seek
Ctrl+← /→ 切换字幕 sub-seek
Ctrl+Shift+← /→ 调整字幕延迟
[/] 减/加10%播放速度
{/ } 减半/加倍播放速度
</> 向前/向后跳转播放列表
p,空格 暂停/播放
,/. 前/后逐帧播放,点一下移动一帧
q 退出
Q 退出,但保存当前播放位置
/ * , 9 0 调整音量
m 静音
- 循环视频轨
# 循环音轨
f 全屏切换 --fs
ESC 退出全屏
T 界面置顶切换,置顶后不会被其他界面覆盖
w and W Decrease/increase pan-and-scan range.
o (also P) 按住显示进度条
v 显示或隐藏字幕
j/J 切换字幕
z and Z 调节字幕延迟0.1秒
l 设置ab循环点 ab-loop
L 切换无限循环
Ctrl + and Ctrl - 调节音轨延迟0.1秒
u 去除字幕样式 --sub-ass-override
V Toggle subtitle VSFilter aspect compatibility mode --sub-ass-vsfilter-aspect-compat
r and R 调整字幕位置
s 截屏
S 截屏(不截字幕)
Ctrl+s 截屏(包含界面)
PGUP PGDWN 切换章节 --chapter-seek-threshold
Shift+PGUP/PGDWN 后退/前进10分钟
d Activate/deactivate deinterlacer.
A Cycle aspect ratio override.
Ctrl h 切换硬件加速
Alt+↑↓← → 视频位置调整
Alt + and Alt - 缩放视频
Alt+BACKSPACE 重置视频位置和缩放
F8 显示播放列表
F9 显示视音频stream列表
i and I 显示几秒/切换 详细状态信息显示(1,2,3翻页)
Del 调节OSC显示方式(进度条之类的)
1 and 2 对比度调节
3 and 4 明亮度调节
5 and 6 调整伽马Adjust gamma
7 and 8 调节饱和度
Alt+0 50%原视频大小
Alt+1 原视频大小
Alt+2 2倍原视频大小

官方文档贴在下面:

Keyboard Control
LEFT and RIGHT
Seek backward/forward 5 seconds. Shift+arrow does a 1 second exact seek (see --hr-seek).
UP and DOWN
Seek forward/backward 1 minute. Shift+arrow does a 5 second exact seek (see --hr-seek).
Ctrl+LEFT and Ctrl+RIGHT
Seek to the previous/next subtitle. Subject to some restrictions and might not always work; see sub-seek command.
Ctrl+Shift+Left and Ctrl+Shift+Right
Adjust subtitle delay so that the next or previous subtitle is displayed now. This is especially useful to sync subtitles to audio.
[ and ]
Decrease/increase current playback speed by 10%.
{ and }
Halve/double current playback speed.
BACKSPACE
Reset playback speed to normal.
Shift+BACKSPACE
Undo the last seek. This works only if the playlist entry was not changed. Hitting it a second time will go back to the original position. See revert-seek command for details.
Shift+Ctrl+BACKSPACE
Mark the current position. This will then be used by Shift+BACKSPACE as revert position (once you seek back, the marker will be reset). You can use this to seek around in the file and then return to the exact position where you left off.
< and >
Go backward/forward in the playlist.
ENTER
Go forward in the playlist.
p / SPACE
Pause (pressing again unpauses).
.
Step forward. Pressing once will pause, every consecutive press will play one frame and then go into pause mode again.
,
Step backward. Pressing once will pause, every consecutive press will play one frame in reverse and then go into pause mode again.
q
Stop playing and quit.
Q
Like q, but store the current playback position. Playing the same file later will resume at the old playback position if possible.
/ and *
Decrease/increase volume.
9 and 0
Decrease/increase volume.
m
Mute sound.
_
Cycle through the available video tracks.
#
Cycle through the available audio tracks.
f
Toggle fullscreen (see also --fs).
ESC
Exit fullscreen mode.
T
Toggle stay-on-top (see also --ontop).
w and W
Decrease/increase pan-and-scan range. The e key does the same as W currently, but use is discouraged.
o (also P)
Show progression bar, elapsed time and total duration on the OSD.
O
Toggle OSD states between normal and playback time/duration.
v
Toggle subtitle visibility.
j and J
Cycle through the available subtitles.
z and Z
Adjust subtitle delay by +/- 0.1 seconds. The x key does the same as Z currently, but use is discouraged.
l
Set/clear A-B loop points. See ab-loop command for details.
L
Toggle infinite looping.
Ctrl + and Ctrl -
Adjust audio delay (A/V sync) by +/- 0.1 seconds.
u
Switch between applying no style overrides to SSA/ASS subtitles, and overriding them almost completely with the normal subtitle style. See --sub-ass-override for more info.
V
Toggle subtitle VSFilter aspect compatibility mode. See --sub-ass-vsfilter-aspect-compat for more info.
r and R
Move subtitles up/down. The t key does the same as R currently, but use is discouraged.
s
Take a screenshot.
S
Take a screenshot, without subtitles. (Whether this works depends on VO driver support.)
Ctrl s
Take a screenshot, as the window shows it (with subtitles, OSD, and scaled video).
PGUP and PGDWN
Seek to the beginning of the previous/next chapter. In most cases, "previous" will actually go to the beginning of the current chapter; see --chapter-seek-threshold.
Shift+PGUP and Shift+PGDWN
Seek backward or forward by 10 minutes. (This used to be mapped to PGUP/PGDWN without Shift.)
d
Activate/deactivate deinterlacer.
A
Cycle aspect ratio override.
Ctrl h
Toggle hardware video decoding on/off.
Alt+LEFT, Alt+RIGHT, Alt+UP, Alt+DOWN
Move the video rectangle (panning).
Alt + and Alt -
Combining Alt with the + or - keys changes video zoom.
Alt+BACKSPACE
Reset the pan/zoom settings.
F8
Show the playlist and the current position in it (useful only if a UI window is used, broken on the terminal).
F9
Show the list of audio and subtitle streams (useful only if a UI window is used, broken on the terminal).
i and I
Show/toggle an overlay displaying statistics about the currently playing file such as codec, framerate, number of dropped frames and so on. See STATS for more information.
del
Cycles visibility between never / auto (mouse-move) / always
`
Show the console. (ESC closes it again. See CONSOLE.)
(The following keys are valid only when using a video output that supports the corresponding adjustment.)

1 and 2
Adjust contrast.
3 and 4
Adjust brightness.
5 and 6
Adjust gamma.
7 and 8
Adjust saturation.
Alt+0 (and command+0 on OSX)
Resize video window to half its original size.
Alt+1 (and command+1 on OSX)
Resize video window to its original size.
Alt+2 (and command+2 on OSX)
Resize video window to double its original size.
command + f (OSX only)
Toggle fullscreen (see also --fs).
(The following keys are valid if you have a keyboard with multimedia keys.)

PAUSE
Pause.
STOP
Stop playing and quit.
PREVIOUS and NEXT
Seek backward/forward 1 minute.
If you miss some older key bindings, look at etc/restore-old-bindings.conf in the mpv git repository.

03.鼠标控制

左键双击: 切换全屏

右键单击: 暂停

前进后退侧键 播放列表切换

滚轮上下:前进、后退10秒

滚轮左右:音量(没用过这种鼠标)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,736评论 4 362
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,167评论 1 291
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,442评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,902评论 0 204
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,302评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,573评论 1 216
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,847评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,562评论 0 197
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,260评论 1 241
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,531评论 2 245
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,021评论 1 258
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,367评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,016评论 3 235
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,068评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,827评论 0 194
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,610评论 2 274
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,514评论 2 269

推荐阅读更多精彩内容