Convert sequence of JPEG images to MP4 video Crop to 4k: ffmpeg -r 30 -pattern_type glob -i '*.JPG' -s 3840:2160 -vcodec libx264 -pix_fmt yuv420p timelapse.mp4 Crop to original: ffmpeg -r 30 -pattern_type glob -i '*.JPG' -vcodec libx264 -pix_fmt yuv420p timelapse.mp4