mkdir frames
ffmpeg -i IMG_1392.MOV -r 9 -f image2 frames/image-%4d.png
cp -R frames edgeFrames
cd edgeFrames
mogrify -canny 10x10+10%+30% *.png
mogrify -negate *.png
convert *.png edgesAnim.gif
cd ../frames
convert *.png -evaluate-sequence mean ../mean.png