1

我想从特定时间戳开始从 mpeg 视频文件中捕获连续帧。这意味着假设我有一个总时长为 2 分钟的视频。我需要捕获从时间 00:01:00 开始连续的所有帧。我还想将捕获的帧数限制为 20。如何使 ffmpeg 可执行以执行此操作

谢谢费萨尔

4

1 回答 1

5

As covered in the docs:

ffmpeg -ss 60 -i input.mpg -frames:v 20 frame_%d.png

Will start reading from the input at sixty seconds, and will write 20 video frames to frame_1.png, frame_2.png, frame_3.png, etc.

The note in the docs about the accuracy of -ss when used to modify the input file versus the output file if a slower but more accurate timing is necessary.

于 2012-07-19T21:49:18.037 回答