Helmut Granda
learning through interaction
learning through interaction
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
February 5, 2009 - 1:30 pm
you’re welcome for introducing you to ffmpeg.
February 6, 2009 - 2:15 pm
Thank you, even though I don’t remember you showing me the ffmpeg path