Advertisement
metalx1000

BASH - Create a DVD with Chapters

Jan 30th, 2012
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cd /tmp
  4.  
  5. of=`date +%s`
  6.  
  7. szSavePath=$(zenity --file-selection)
  8.  
  9. ffmpeg -i "$szSavePath" -target dvd -aspect 16:9 -sameq /tmp/$of.mpg
  10.  
  11. mkdir $of
  12. dvdauthor --title -c 0,05:00,10:00,15:00,20:00,25:00,30:00,35:00,40:00,45:00,50:00,55:00,01:00:00,01:05:00,01:10:00,01:15:00,01:20:00,01:25:00,01:30:00 -f $of.mpg -o $of
  13. dvdauthor -T -o $of
  14.  
  15. zenity --info --text "Please Make Sure you have a Blank DVD in your Drive."
  16.  
  17. growisofs -dvd-compat -dvd-video -speed=4 -Z /dev/dvd /tmp/$of/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement