Skip to content

Instantly share code, notes, and snippets.

@mikecharles
Created October 24, 2016 19:57
Show Gist options
  • Select an option

  • Save mikecharles/22c0f96356dfdc0bdba1a95f0bab507a to your computer and use it in GitHub Desktop.

Select an option

Save mikecharles/22c0f96356dfdc0bdba1a95f0bab507a to your computer and use it in GitHub Desktop.

Revisions

  1. mikecharles created this gist Oct 24, 2016.
    7 changes: 7 additions & 0 deletions convert-all.sh
    Original 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