Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. $ for i in `seq 4`; do HandBrakeCLI --input /dev/dvd --title $i --preset Normal --output NameOfDisc_Title$i.mp4; done
  2.  
  3. for ($title=1; $title -le 4; $title++) {
  4. &"C:program fileshandbrakeHandBrakeCLI.exe" --input D: --title $title --preset Normal --output "$title.mp4"
  5. }
  6.  
  7. #!/bin/bash
  8. rawout=$(HandBrakeCLI -i /dev/dvd -t 0 2>&1 >/dev/null)
  9. #read handbrake's stderr into variable
  10.  
  11. count=$(echo $rawout | grep -Eao "\+ title [0-9]+:" | wc -l)
  12. #parse the variable using grep to get the count
  13.  
  14. for i in $(seq $count)
  15. do
  16. HandBrakeCLI --input /dev/dvd --title $i --preset Normal --output $i.mp4
  17. done
  18.  
  19. 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