Covert mov files to flv with ffmpeg

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.

#!/bin/bash
# Convert all mov files into flv
counter=0
mov=flvMovie
currmov=$mov$counter
ext=.flv
for file in *.mov; do
let counter=counter+1
currmov=$mov$counter$ext
ffmpeg -i $file -ar 22050 -f flv -ab 56 -aspect 4:3 -b 200 -r 12 -s 320x240 -ac 1 $currmov
done

2 Responses to “Covert mov files to flv with ffmpeg”

  1. Tommy Klumker February 5, 2009 at 1:30 pm # Reply

    you’re welcome for introducing you to ffmpeg.

  2. Helmut Granda February 6, 2009 at 2:15 pm # Reply

    Thank you, even though I don’t remember you showing me the ffmpeg path :-P

Leave a Reply