How to get FFMPEG to join non-sequential image files? (skip by 3s) I have a bunch of images, that follow this pattern.

0001.png
0004.png
0007.png
0010.png
0013.png
0016.png
0019.png
...


They're in the correct order, but FFMPEG ignores anything after the first file, because it can't find a 0002.png.  How can I get it to join these files?

I tried

ffmpeg -i %04d.png out.avi
Besides the workaround in my comment, you should be able to use this syntax from the ffmpeg documentation:

ffmpeg -f image2 -pattern_type glob -i '*.png' out.avi


The quotes are important, you need ffmpeg to see the *, not have the shell expand it.