Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ for i in `seq 4`; do HandBrakeCLI --input /dev/dvd --title $i --preset Normal --output NameOfDisc_Title$i.mp4; done
- for ($title=1; $title -le 4; $title++) {
- &"C:program fileshandbrakeHandBrakeCLI.exe" --input D: --title $title --preset Normal --output "$title.mp4"
- }
- #!/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
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement