How can I use the following script to recursively convert a directory containing .mp4 to .png (1 frame only).
Right now it only converts the directory. It's not recursive.
for i in *.mp4
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" -r 0.0033 -vf scale=-1:1024 -vcodec png "${name}.png"
done