Reputation: 20419
I understand how to make timelapse video from the sequence of files. But what if my files have names like YYYYMMDDHHmmSS.jpg? How can I pass them in the correct order? I would prefer not to rename them (there are 55'000 files, almost 10 Gb).
Upvotes: 1
Views: 1447
Reputation: 20419
I just found that there is no much sense to do any additional actions, the files are already sorted in the correct order, so the command below works well:
ffmpeg -framerate 500 -pattern_type glob -i '*.jpg' -c:v libx264 -pix_fmt yuv420p out2.mp4
Upvotes: 2
Reputation: 159
I know there are some bat/shell commands possible for that, but IMHO it makes things more complicated for so little.
In similar cases I prefer using renaming softwares like Ant Renamer.
%name%_%num%%ext%
, starting at 1 and with one more digit than your total number of files. Which in your case will result in YYYYMMDDHHmmSS_XXX.jpg
It might not suit you, especially if you really want to do everything from command lines. But for other people, it might be enough.
Upvotes: 1