I usually create video clips of still images using something very similar to This StackOverflow example. However, this time, I have a set of images of varying sizes, so clipped in options from This OTHER StackOverflow example to pad the images to a set size to come up with this:
ffmpeg -r 1 -i slide_%2d.png -filter_complex "fps=25,format=yuv420p,scale=1024:768:force_original_aspect_ratio=decrease,pad=1024:768:x=(1024-iw)/2:y=(768-ih)/2:color=green" -y tmp.mp4
Of course it doesn't work as hoped, but this is the 21st Century, 'Google It' way!
What I'm attempting to do is create a command which feeds contiguously-numbered png images (starting at 01), in the current directory, at the rate of one per second, and outputs them as an mp4 file, suitably padded to a 16:9 ratio image size, with an eye-bleeding green background/surround (it's a test rig – I want to see what's what, quickly) at an arbitrary rate of 25 frames per second on the output (all 25 frames to be of the same input input image, of course).
What I get is the last frame of the image set for a duration that varies, depending on the contents of the -r flag.
Could somebody help me out here, please, and show me where I'm going wrong? I can spend delighted hours searching and tinkering, but I should be wasting my time on other fascinating projects now.
All the best, QuinB
ffmpeg v. N-92396-g55e021f39b