Powered by coANDco UK

How to turn a series of files into a video

From How2s


  • you have a series of files named "20120728214001.jpg" the filename being the timestamp in a folder. Each of the files will be one frame of the video.
  • you have ffmpeg installed
  • you are on a mac (osx)

in the terminal, go to the folder where your images are and run:

x=1; for i in *jpg; do counter=$(printf %06d $x); ln "$i" /tmp/img"$counter".jpg; x=$(($x+1)); done

to make symlinks in a /tmp folder

then run

ffmpeg -f image2 -i /tmp/img%06d.jpg /tmp/a.mpg

to create a video file in the tmp folder.

Please check out our sponsor, thanks to whom How2s.org is FREE: