Skip to content

Instantly share code, notes, and snippets.

@jtrim
Created May 5, 2010 20:42
Show Gist options
  • Save jtrim/391396 to your computer and use it in GitHub Desktop.
Save jtrim/391396 to your computer and use it in GitHub Desktop.
#!/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
@jtrim
Copy link
Author

jtrim commented May 5, 2010

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment