man 1 ffmpeg
diz:
For creating a video from many images:
ffmpeg -f image2 -framerate 12 -i foo-%03d.jpeg -s WxH foo.avi
The syntax "foo-%03d.jpeg" specifies to use a decimal number
composed of three digits padded with zeroes to express the
sequence number. It is the same syntax supported by the C printf
function, but only formats accepting a normal integer are
suitable.
When importing an image sequence, -i also supports expanding
shell-like wildcard patterns (globbing) internally, by selecting
the image2-specific "-pattern_type glob" option.
For example, for creating a video from filenames matching the
glob pattern "foo-*.jpeg":
ffmpeg -f image2 -pattern_type glob -framerate 12 -i 'foo-*.jpeg' -s WxH foo.avi
Aqui está a documentação do ffmpeg.