Closed ibaaj closed 8 years ago
if you use :
ffmpeg -i ./directory/out-%d.png video.mp4
ffmpeg will create a video from frames in the same order as when you do a ls:
ls
out-1.png out-10.png out-11.png out-12.png out-13.png out-14.png out-15.png out-16.png out-17.png out-18.png out-19.png out-2.png out-20.png out-21.png out-22.png out-23.png out-24.png out-25.png out-26.png out-27.png out-28.png out-29.png out-3.png out-30.png
For a correct video, you need to add leading zeros to filenames.
It always worked for me. But I have solved it by adding a number format option to the stylizing script itself.
if you use :
ffmpeg will create a video from frames in the same order as when you do a
ls
:For a correct video, you need to add leading zeros to filenames.