ffmpeg video to image

test video

specify video time interception image

ylspiritdeMacBook-Pro:blog ylspirit$ ffmpeg -i Wildlife.mp4 -ss 00:00:19 -vframes 1 out.jpg

use fps video filter

Output one image every second, named out1.png, out2.png, out3.png, etc.

ylspiritdeMacBook-Pro:blog ylspirit$ ffmpeg -i Wildlife.mp4 -vf fps=1 out%d.png

Output one image every minute, named img001.jpg, img002.jpg, img003.jpg, etc.

The %03d dictates that the ordinal number of each output image will be formatted using 3 digits.

ylspiritdeMacBook-Pro:blog ylspirit$ ffmpeg -i Wildlife.mp4 -vf fps=1/60 img%03d.jpg

use the select filter for a set of custom ranges

ylspiritdeMacBook-Pro:blog ylspirit$ ffmpeg -i Wildlife.mp4 -vf select='between(t\,1\,3) + between(t\,10\,12)' -vsync 0 out%d.png

Add a Comment

Your email address will not be published.