

-f image2 - tells ffmpeg to select a group of images.This will output a lossless H.264 video where frames will use information from other framesįfmpeg -f image2 -r 30 -i %09d.jpg -vcodec libx264 -profile:v high444 -refs 16 -crf 0 -preset ultrafast a.mp4


You can simply mux the JPG images to make a video: ffmpeg -framerate 30 -i input%03d.jpg -codec copy output.mkv
