This is a quick and easy way to make a thumbnail from a video:
ffmpeg -i $INPUT -y -ss $TIME -t 0.01 -f mjpeg "$OUPUT"