The shell script below will take files from the folder you are running it from and convert all “mov” files to “flv”. The script can be updated to use the same file name as flv name. Since this is not for production but only for testing the name for the flv that I am using is flvMovie0.flv, flvMovie1.flv.. and so on.
# Convert all mov files into flv
for file in *.mov; do
ffmpeg -i $file -ar 22050 -f flv -ab 56 -aspect 4:3 -b 200 -r 12 -s 320×240 -ac 1 $currmov