Created
February 29, 2016 15:36
-
-
Save cybertk/49ca62bac44e7316ff82 to your computer and use it in GitHub Desktop.
Convert avi to mp4
This file contains hidden or 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/sh | |
O=mp4s | |
videos=$(find ./videos -iname "*.avi") | |
for f in $videos; do | |
o="$O/$(basename ${f%%.avi}).mp4" | |
if [[ ! -f "$o" ]]; then | |
cmd="HandBrakeCLI -i "$f" -o "$O/$(basename ${f%%.avi}).mp4"" | |
echo $cmd | |
#eval "$cmd" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment