dvdrip.sh 1.1 KB

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. n=$1
  3. ### mencoder dvd://1 -dvd-device /dev/sr0 -alang English -oac mp3lame -lameopts abr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:vbitrate=2035 -vf pp=de,crop=0:0:0:0,scale=480:-2 -o "/home/mark-arch/Videos/sg1_v3.avi"
  4. ## mencoder dvd://$count -dvd-device /dev/sr0 -nosub -noautosub -alang English -oac mp3lame -lameopts abr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:vbitrate=2035 -vf pp=de,crop=0:0:0:0,scale=480:-2 -o ${"`pwd`/$series"_D"$disknum"E"$track".avi"}
  5. echo "How many tracks to rip?"
  6. read track
  7. echo "track = #$track"
  8. echo "What Series is this?"
  9. read series
  10. echo "Series: $series"
  11. echo "Which disc # is this?"
  12. read disknum
  13. echo "This is disk #$disknum"
  14. count=0
  15. for i in $(seq 1 $track)
  16. do
  17. count=$((count + 1))
  18. echo "count is $count"
  19. echo "Output file is: `pwd`"/"$series"_D"$disknum"E"$count.avi"
  20. mencoder dvd://$count -dvd-device /dev/sr0 -nosub -noautosub -alang English -oac mp3lame -lameopts abr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:vbitrate=2035 -vf pp=de,crop=0:0:0:0,scale=480:-2 -o `pwd`"/"$series"_D"$disknum"E"$count.avi
  21. done