Created
April 14, 2014 00:35
-
-
Save dulyanov/10608208 to your computer and use it in GitHub Desktop.
Re-encode video files using avconvert
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 | |
dir="x/1" | |
for file in `find "$dir" -iname "*.mov"` | |
do | |
echo "Start processing $file" | |
file_orig="${file/%.mov/.original.mov}" | |
file_conv="${file/%.mov/.converted.mov}" | |
avconvert --preset Preset1920x1080 -q --source "$file" --output "$file_conv" && mv "$file" "$file_orig" | |
echo "Finished processing $file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment