Created
April 20, 2019 19:27
-
-
Save nealey/e05171d23cbc41d962c68702f013a937 to your computer and use it in GitHub Desktop.
Rip (transcode) DVD chapters into individual mp4 files
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 characters
#! /bin/sh | |
# If you have more than 50 chapters, you'll need to bump this value up. | |
# It doesn't hurt anything to have the number too high, though. | |
for i in $(seq -w 1 50); do | |
echo "== Chapter $i" | |
HandBrakeCLI \ | |
--input /mnt/chromeos/removable/No\ Label/ \ | |
--crop 0,0,0,0 \ | |
--chapters $i \ | |
--preset Normal \ | |
--output $i.mp4 \ | |
2>/dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment