Step 1: Generate the file list (Windows batch command):
(for /f "delims=" %i in ('dir /b *.jpg /on') do @echo file '%i') > list.txt
This sorts files chronologically and preps them for FFmpeg.
Step 2: Create the video:
ffmpeg -f concat -safe 0 -i list.txt -c:v libx264 -r 30 -pix_fmt yuv420p timelapse.mp4