I need to process some videos with ffmpeg, and I found an example command that does almost everything I need it to:
ffmpeg -i example.avi -vf fps=1/30 example_%03d.jpg
I've figured out what all of this command does, but I've been unable to figure out the meaning of %03d
in the output file format. What does %03d
mean in a ffmpeg file output format mean? What other special sequences are allowed in an ffmpeg output?
According to the documentation:
So the resulting file names are
example_001.jpg
,example_002.jpg
, … ,example_123.jpg
.See also the "image sequence" entry in the FFMPEG An Intermediate Guide for details and examples.