用 mpv 给视频截图

播放视频时一键截取当前画面为 PNG 或 JPEG——喜欢的场景、幻灯片或故障证据,无需安装图片编辑器。

Linux视频mpv 播放器截图命令行低风险
执行 mpv --screenshot-format=png --screenshot-directory=~/Pictures video.mp4,播放时按 s 即可保存当前画面。

01命令

命令
$ mpv --screenshot-format=png --screenshot-directory=~/Pictures video.mp4

02作用说明

mpv 内置了逐帧精确的截图功能:按 s 保存当前帧(不含字幕和 OSD),按 S 则连字幕一起截下,文件会保存到 --screenshot-directory 指定的目录,文件名由 --screenshot-template 模板生成(默认含时间戳,不会互相覆盖)。由于它直接从解码后的画面取图,结果就是你所见内容——比截取桌面更清晰准确。若不需要无损画质,改用 --screenshot-format=jpeg 可得到更小的文件。

03风险

风险低风险
使用条件mpv (sudo apt install mpv / sudo dnf install mpv)
!注意: 部分硬件加速输出(vaapi/nvdec)可能截出全黑图片;如果截图发黑,加上 --vo=gpu --hwdec=no 或更换视频输出即可解决。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • mpv Manual
    mpv project · vendor-doc · 2026-09-17
    依据: Documents --screenshot-format (png/jpeg), --screenshot-directory, --screenshot-template, and the default screenshot keybindings s (frame) and S (subtitles included).
  • mpv — documentation source (screenshot options)
    mpv project (GitHub) · vendor-doc · 2026-09-17
    依据: Source of the mpv manual: screenshot options and the s/S keybindings that save the current frame to the configured directory.

最后验证: 2026-09-18 · 分类: 媒体