

Using the flag -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" fixes this problem by resizing video to an even numbered dimension.īlank video - Some older version of video players require some additional encoding information.

images/swissGenevaLake01d. import os os.system ('ffmpeg -f image2 -r 1/5 -i. Height not divisible by 2 - This is a common issue when images are not of even dimensions. First install ffmpeg using the following command: sudo apt install ffmpeg. vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" \įrame rate - is set using the -r flag. I needed ffmpeg which I setup using brew $ brew install ffmpegĪnd for actual conversion, here is how I did it $ffmpeg -r 10 \ In that case rename your images or use cat: cat.

> convert $each -resize 1280x -quality 85% " r1280_seq0/ $each " If they image inputs are not sequential then use the glob wildcard: ffmpeg -framerate 5 -patterntype glob -i '.png' output.mp4 The glob pattern may not be supported by Windows. Using this one liner I bought it down to 1280x853 and moved them to a folder r1280_seq0 for each in *.jpg do The images were all of 5616x3714 resolution. The images in JPG format, shot on 5D-Mark2, needed renaming to ‘img_%d.jpg’ format, which I quickly did with a simple python script > import os > from glob import glob > for i, f in enumerate ( glob ( ' *.jpg ' ) ). I was recently working on creating a timelapse video from about 90 images, each of which is a 3-6 second exposure, which I shot during one of my bike trips.
