====== ffmpeg - Image - Create a video from images ====== ffmpeg -r 1/5 -start_number 2 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 **NOTE:** This creates a video file from multiple images, such as: img001.jpg img002.jpg img003.jpg ---- ===== Add all images with jpg extension to the output video ===== ffmpeg -framerate 1 -pattern_type glob -i '*.jpg' video.mp4 ---- ===== Create video from frames ===== ffmpeg -y -framerate $(frames) -pattern_type glob -i '$(path)/*.jpg' out.mp4 ---- ===== GIF but in video ===== Create a video with, for instance, 1x4 (4 frames per second). ffmpeg -framerate 4 -fflags discardcorrupt -pattern_type glob -i '*.jpg' video.mp4 Then, create a list.txt file with the following contents to loop the video: file 'video1.mp4' file 'video2.mp4' file 'video3.mp4' file 'video4.mp4' Then ffmpeg -f concat -i list.txt -c copy output.mp4 ----