Created
October 24, 2016 19:57
-
-
Save mikecharles/22c0f96356dfdc0bdba1a95f0bab507a to your computer and use it in GitHub Desktop.
Revisions
-
mikecharles created this gist
Oct 24, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/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