

Normal scenecut detection decides whether a frame is a scenecut after the frame is encoded, and if so then re-encodes the frame as an I-frame. Slightly faster (but less precise) scenecut detection. Recommended default: 25Īdjusts the sensitivity of x264's scenecut detection. Minimum GOP length, the minimum distance between I-frames. Very high GOP lengths will result in slightly more efficient compression, but will make seeking in the video somewhat more difficult. This determines the maximum distance between I-frames. Keyframe interval, also known as GOP length.

This guide maps most of x264's options to FFmpeg's options along with detailed descriptions by x264 developer Dark_Shikari. Please see `avconv -h | less` or `ffmpeg -h | less` and scroll down to " libx264 AVOptions:". Also, note that resizing the images may affect the overall quality of the video, so it’s best to use the original input images whenever possible.Please Note: This guide will remain here for historic purposes but FFmpeg and libav now use libx264's internal -preset, -profile and -tune options. Note that 960 is an even number, so the resulting video should not trigger the “width not divisible by 2” error.Īdjust the 960 value to match the desired even width for your video. In this example, the scale filter is used to resize the input images to a width of 960 pixels and a proportional height of 540 pixels. Just make sure that the file extensions match the actual file formats of your images.Īlso, make sure that you run the ffmpeg command from the same directory where the input images are located, or use a relative or absolute path to specify the input image directory. Note that you can use other image file formats supported by ffmpeg, such as PNG or BMP. The image files should be named in sequential order, such as image1.jpg, image2.jpg, image3.jpg, and so on. In this structure, all the input images are stored in the input/ directory. Here’s an example directory structure for the images you want to use in the ffmpeg command: For example, if you want each image to appear for 3 seconds, you can set -framerate 1/3. Adjust the -framerate option to control the duration of each image.
