Created
May 5, 2010 20:42
-
-
Save jtrim/391396 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
filename=0 | |
for i in `ls -1 | grep mov` | |
do | |
filename=$((filename + 1)) | |
ffmpeg -sameq -i $i -s 640x360 converted/$filename.flv | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
assuming ffmpeg is compiled for your machine and installed somewhere in PATH, this will process all the files in a directory with "mov" in the name. The files are sized to 640x360 then converted to FLV format and saved into a directory called "converted"