ffmpeg -f image2 -r 25 -i frame_%d.jpg -vcodec libx264 -vpre hq -crf 22 video.mp4
•-f defines the format
•-r defines the frame rate
•-i defines the input file/s ... %d specifies numbered files .. add 0's to specify padding
•-vcodec selects the video codec
•-vpre specifies use of a preset called hq
•-crf specifies a rate control method, used to define how the x264 stream is encoded
•video.mp4 is the output file