用 ffmpeg -c copy 无损剪裁视频

用 ffmpeg 直接拷贝流来截取视频片段,几秒完成且画质零损失。

macOS视频FFmpeg低风险
运行 ffmpeg -ss 00:10:00 -to 00:12:30 -i video.mp4 -c copy clip.mp4,即可把 10:00–12:30 的片段瞬间截取成新文件。

01命令

命令
$ ffmpeg -ss 00:10:00 -to 00:12:30 -i video.mp4 -c copy clip.mp4

02作用说明

-ss 和 -to 分别指定开始和结束时间,-c copy 让 ffmpeg 直接把原有的视频和音频流复制到新文件,而不重新编码——因此速度接近拷贝文件,画质零损失。注意剪切点只能落在最近的关键帧上,起点可能会偏移一两秒。如果需要精确到帧的剪辑,去掉 -c copy 强制重新编码即可,虽然更慢但能精确到像素。

03风险

风险低风险
使用条件Requires ffmpeg (install with brew install ffmpeg).
!注意: 由于流拷贝只能按关键帧切,片段开头可能比你选的时间点稍早——先检查结果,需要精确起点时再重新编码。

04撤销

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

05来源

  • ffmpeg Documentation
    FFmpeg · vendor-doc · 2026-09-17
    依据: The documentation describes -ss as the input seeking option, -to as setting the stop time, and -c copy as copying streams without re-encoding.
  • FFmpeg FAQ
    FFmpeg · vendor-doc · 2026-09-17
    依据: The FAQ discusses stream copying with '-c copy' as the way to cut media without losing quality from re-encoding.

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