Timelapse from JPGs

Stuff I am working on
Post Reply
Daniel Wee
Site Admin
Posts: 2241
Joined: Wed 25 Feb 25 2009 8:00 pm

Timelapse from JPGs

Post by Daniel Wee » Thu 29 Mar 29 2018 9:31 pm

Filenames must be sequential without gaps. The Eken uses timestamps for the date and will contain gaps. The files will need to be renamed sequentially. One way is to open powershell and run the following script:-

dir *.jpg | %{$x=0} {Rename-Item $_ -NewName "Base$($x.tostring('000000')).jpg"; $x++ }

This renames it Base000000.jpg format which can then be ingested by ffmpeg.

Conversion to mp4 uses the following command line:-

ffmpeg -framerate 30 -start_number 0 -i "Base%06d.jpg" -crf 30 -c:v libx264 -pix_fmt yuv420p out.mp4

This should work in Windows.
Post Reply