Skip to content

Instantly share code, notes, and snippets.

@jamesfdickinson
Last active July 28, 2018 07:50
Show Gist options
  • Save jamesfdickinson/bc0cf92812a837c34ca91ded091cec41 to your computer and use it in GitHub Desktop.
Save jamesfdickinson/bc0cf92812a837c34ca91ded091cec41 to your computer and use it in GitHub Desktop.
HandbreakCLI - PowerShell script to copy/rip each chapter to a file
for ($chapter=1; $chapter -le 30; $chapter++) {
&".\HandBrakeCLI.exe" --input H:\ --chapters $chapter --preset 'Fast 720p30' --optimize --output "Primer-IntroToMath-$($chapter.ToString("00")).mp4"
}$
#.\HandBrakeCLI.exe --input H:\ --preset 'Fast 720p30' --optimize --output "Primer-IntroToMath-All.mp4"
#https://handbrake.fr/docs/en/latest/cli/command-line-reference.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment