Skip to content

Instantly share code, notes, and snippets.

@apeckham
Created June 7, 2012 04:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apeckham/2886678 to your computer and use it in GitHub Desktop.
Save apeckham/2886678 to your computer and use it in GitHub Desktop.
run Handbrake on a batch of files, listed as arguments
#!/bin/sh -e
for i in "$@"; do
HandBrakeCLI -i "$i" -o "${i%.*}-ipad.mp4" --preset="iPad"
done
@jamiew
Copy link

jamiew commented Jun 7, 2012

Pimpin aint e-z

For the Googlers out there, HandBrakeCLI is:
http://handbrake.fr/downloads2.php

@jamiew
Copy link

jamiew commented Jun 7, 2012

p.s. I believe the new HandBrake nightlies have a new preset for iPad 3 which is slightly different? Not sure

@jamiew
Copy link

jamiew commented Jun 7, 2012

Scratch that, that was for AppleTV 3. ENCODE AWAY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment