Pages

Sunday 25 October 2015

FFMPEG: Convert an image sequence to a compressed video

Just putting this here for my future self and anyone out there who might need to converts an image sequence into a video.

I have been using the following code to generate compressed videos from a big image sequence. It seems to have a really good balance between quality and compression.
ffmpeg -r 30 -f image2 -i out_%05d.png -vcodec libx264 -crf 25  test.mp4

Source:
http://hamelot.co.uk/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/