Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://www.google.com/search?q=handbrake+cli+video+per+chapter&ie=utf-8&oe=utf-8
- https://www.google.com/search?q=iso+to+mkv&ie=utf-8&oe=utf-8#q=iso+to+mkv+ubuntu
- https://superuser.com/questions/394516/how-to-convert-50-episodes-from-dvd-into-50-mp4-with-handbrake-easily
- sudo add-apt-repository ppa:stebbins/handbrake-releases
- sudo apt-get update
- HandBrake gtk gui with the command:
- apt-get install handbrake-gtk
- HandBrake CLI with the command:
- apt-get install handbrake-cli
- HandBrakeCLI -Z "High Profile" -i a_movie.iso -o a_movie.mp4
- https://handbrake.fr
- $ for i in `seq 4`; do HandBrakeCLI --input /dev/dvd --title $i --preset Normal --output NameOfDisc_Title$i.mp4; done
- patty@patty:~$ for i in `seq 4`; do HandBrakeCLI -i /media/patty/DVDTITLE -t $i -o DVDTITLE_Title$i.mp4 -e x264 -q 18; done
- #!/bin/bash
- rawout=$(HandBrakeCLI -i /dev/dvd -t 0 2>&1 >/dev/null)
- #read handbrake's stderr into variable
- count=$(echo $rawout | grep -Eao "\\+ title [0-9]+:" | wc -l)
- #parse the variable using grep to get the count
- for i in $(seq $count)
- do
- HandBrakeCLI --input /dev/dvd --title $i --preset Normal --output $i.mp4
- done
- It's worth noting that if you want that count value to be right you'll need to pass --min-duration 0 to HandBrakeCLI, otherwise you'll come up short on some DVDs. For example, my test DVD has a 10 second track 1 that will be ignored in the final output
- https://handbrake.fr/docs/en/1.0.0/cli/cli-guide.html
Add Comment
Please, Sign In to add comment