ffmpeg: Placing an overlay over multiple images I am trying to overlay a png image onto a series of images (a few hundred images), I will later take this series of images with the overlay and construct a movie out of the series of images. I don't know too much about ffmpeg and I have just recently started playing with it for converting and editing media files but I have found something that works for combining the png with one tif image:
ffmpeg -i my.png -i my.tif -filter_complex &quot;[1][0]scale2ref[i][m];[m][i]overlay[v]&quot; -map &quot;[v]&quot; -map 0:a? -ac 2 output.tif
This is what I have so far, which allows me to overlay my png on a single tif image. I would like to do this for every single tif image that I have in my folder (hundreds) of tif images.
Is there a way to instruct ffmpeg to do such a process?
Thanks
If all TIFFs have the same properties, and are named sequentially like image0001.tif, then you can use
ffmpeg -i image%04d.tif -i my.png -filter_complex &quot;[1][0]scale2ref[i][m];[m][i]overlay&quot; out%04d.tif

This will generate images with the overlay named as follows
out0001.tif
out0002.tif
...