Created
October 24, 2016 19:57
-
-
Save mikecharles/22c0f96356dfdc0bdba1a95f0bab507a to your computer and use it in GitHub Desktop.
Batch convert video files using HandbrakeCLI
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/sh | |
find . -type f -iname "*.avi" -print0 | while IFS= read -r -d $'\0' infile ; do | |
outfile="${infile%.*}.m4v" | |
echo "Converting ${infile} to ${outfile}..." | |
HandbrakeCLI -Z 'AppleTV 3' -q 25 -i "$infile" -o "$outfile" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment