I have extracted all frames from an old video file, cleaned up video tape dropouts and film scratches frame by frame.
I now must reassemble the PNG files into a video .
I found this thread: https://stackoverflow.com/questions/24961127/how-to-create-a-video-from-images-with-ffmpeg
and modified what I found there to:
ffmpeg -r 1/5 -start_number 0 -i buggles%4d.png -c:v libx264 -vf "fps=25,format=yuv420p" out2.mp4
I have available only the first 500 frames @25 frames per second and am testing with that. It should yield a 20 second video
Instead I get a video of 41:35 in length that changes frames about every second and VLC reports 25 FPS.
Maybe I need to define that each image is on screen for only a single frame, but how?
-r 1/5
- this option seems strange.-r 1/5
unless you want each image to last for 5 seconds.