To grab frames from a video: ffmpeg -y -i "xdfo.wmv" -qscale 0 -r 30 "./xdfo/xdfo.%05d.jpg" To do the reverse, to generate a movie from a sequence of frames: ffmpeg -f image2 -r 30 -i img.%04d.png -vb 20M -vcodec mpeg4 -y movie_filtered.mp4