Skip to content

Instantly share code, notes, and snippets.

@simonkberg
Created October 12, 2012 08:54
Show Gist options
  • Save simonkberg/3878162 to your computer and use it in GitHub Desktop.
Save simonkberg/3878162 to your computer and use it in GitHub Desktop.
ffmpeg convert loop
#!/bin/bash
for f in *.mov
do
ffmpeg -i "$f" -s 728x410 -sameq -acodec libmp3lame -aq 0 "../${f%.mov}.mpg"
done
for f in *.mov
do
ffmpeg -i "$f" -s 960x540 -sameq -vprofile baseline -acodec copy "../mov2/${f%.mov}.mov"
done
@simonkberg
Copy link
Author

!/bin/bash

for f in *.mov
do
ffmpeg -i "$f" -s 960x540 -sameq -vprofile baseline -acodec copy "../mov2/${f%.mov}.mov"
done

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