FFMPEG Commands
From Hawk Wiki
extracting images (jpeg) from a video:
ffmpeg -i foo.avi -f image2 f%03d.jpg
ffmpeg convert to photo-jpeg
ffmpeg -i input.mov -pix_fmt yuv420p -vcodec mjpeg -qscale 1 output.mov
ffmpeg -i f%03d.jpg -pix_fmt yuv420p -vcodec mjpeg -qscale 1 output.mov