Scripts in DVD SP

Greetings!
I am authoring my first dvd and would like that when ever the viewer press the eject buttom a short "goodbye" video track plays. It is similar to the first play, but inverse; a kind of last play.
Is there any script or command for it?
Thanks in advance,
Kasper

Thanks again and maybe you can help me with these too.
The first play is a small intro video that ends in the main menu.
The main menu has eight buttons, each one assigned to a specific track.
I would like them to play in a specific sequence that goes like this:
Track one´s end jump goes to track two´s button in the main menu , Track two´s end jump goes to track three´s button, and so on. But if some how the viewer interrupts the track in the middle of a play it would go to the same button of the track that is playing and not to the next of the sequence.
Also, I would like a script that allows me to automatically play through all the fluxogram of the authoring. In other words, after the first play reaches the main menu it holds for about three seconds with the button of the first track highlighted and then, automatically initiates the sequence of the play, showing all the buttons and tracks of the authoring. For example: In the main menu the track one´s button is highlighted, holds for three seconds and star to play, if it completes the play it goes to the main menu and shows the second track button highlighted, stays for three seconds and start to play, if now for some reason the viewer interrupts that, it goes to the main menu but with the track two´s button highlighted, showing me the track the viewer just came from.
Thank you in advance for your help.
kasper

Similar Messages

  • Need help running a Python script when DVD inserted

    We had an intern that created a custom Python script to rip our old event recording DVDs back to a digital format. The script creates a JSON description file and asks a set of questions to create the metadata in the JSON file (e.g. Date of event).
    The way the intern set this up was that you'd click on the Python script which would open a terminal window where you fill in the metadata. It then asks if the DVD is in the computer. At this point you place the DVD in. A few seconds later, the Python script notices the DVD and proceeds to rip the DVD at our specific file size requirements along with the inputted metadata.
    We then upgraded the Mac from Mountain Lion to Lion and the script stopped working. Our intern has since left. I have now moved the Python script onto my Mountain Lion Mac. The intern's last message to me was that he had written an AppleScript that ran when the DVD was inserted which then referred to the Python script. The intern has since stopped replying to emails.
    This is a very important project that I would like to continue. Any help would be greatly appreciated!

    well, oddly, that should never have worked. 
    Try this:  open the applescript editor, copy in the following line:
    tell application "Terminal"
              do script "python /Users/medialab/dvddrip rename"
              activate
    end tell
    Save it, making sure that the 'File Format' pull down says Script (the new file will have a '.scpt' extension). You'll be able to select that file in the cd/dvd preferences.
    I assumed that you wanted this to open in terminal so that you can enter options on the command line. If that's not correct, let me know.

  • Getting the script from DVD-R

    Few years ago I have created a DVD-R for a client, with complicated script. I have lost my back up project. Now I have a similar project. Is there a way to look or get the script from the burned DVD-R?
    Thanks,
    Message was edited by: Girshon Rutstein
    Message was edited by: Girshon Rutstein

    No ...but what are you trying to do? Maybe someone here can help.

  • Help... Need a script for DVD@CCESS (DVDSP 4.0.3)

    Can anyone help me with a scripting question:
    I need a script that will allow me to search a windows pc for installed or missing DVD@CCESS, - promt for installation, and then install, - or pass on to play the DVD from first play. Obviously DVD@CCESS will be on the DVD in a directory ([email protected])
    Thank you....
    Verny

    Verny - welcome to the discussions.
    The person who I know has done this is Alex Alexzander. You can contact him over at http://www.editorsbin.com
    He is changing the site at the moment and may not have that particular tutorial online, but he definitely wrote it and created the scripts needed to get it working.

  • Some newbie trouble with default scripts in DVDS-4

    HI
    We are trying to make video that works with menus and controllers and a contents listing at the beginning. It's content is like a book.
    Most of us write Flash or Director and are not used to the DVDSP-4 constructs.
    Simple set up is: animation intro that ends at a main menu; from which chapters are selected.
    1 - Each video for a chapter is listed on a chapter menu and has from 2-10 videos listed on a chapter menu. We grouped these videos on their own separate track, by chapter.
    Is this right? Do I need extra markers? At what amount of time is the DVD bogged down?
    2 - We want each separate video, once played to jump back to the source chapter menu, and to have an both over lay buttons and content buttons. Chapter content menu buttons are play all and individual video buttons.
    The overlay buttons are to the main menu, quit and replay last video or stop.
    Is this possible?
    Thanks,
    John

    OK - let's try to set out a few ground rules here! The first and most important is that all of your 'book' content lives in a track - you can use lots of tracks if you wish, but you really only need one for the first intro and perhaps a second for the rest of your content.
    Secondly, the chapter markers that you place throughout the track can be used in different ways. You can start playback from a marker and continue on to the end of the track, skipping forward using the 'next' button on the remote control. You can also arrange the chapters into 'playlists' called stories so that you only play a set of markers at a time, and then return to a menu. This sounds like the way you need to do things, IMO.
    I'll assume that you are using a track for each set of content, as I believe this is what you have already got set up. You will need to switch between the outline view, the menu editor, the connections tab (or the property inspector... or both) and the time line. I assume that you have already got your assets imported, and that you have only one menu in the entire project. The menu has buttons that will be used to play each piece of content.
    Your first piece, the introduction, needs to play as soon as the disc is put into a player and started. Whatever item you nominate like this is known as the 'First Play' item. Look in your outline view, control click on the track with that footage in it and select 'first play' from the contextual menu. You'll see a small icon appear on the track image to let you know that it is set. Now, still with that track, look in the property inspector and find the 'End Jump' drop down box, and set the end jump to go to your only menu, and to the appropriate button on that menu.
    Set the menu buttons up so that you can navigate between them correctly (use the 'Settings' box and choose 'auto assign buttons now'), and set the target for each button to go to the relevant track in each case.
    Make sure that you put the right content into each track, and create chapter markers along the track itself. Repeat this for each track you have got. You get a start marker by default, but you cannot put a marker right at the very end of the track - it needs to be a few frames back. Do not do anything else to the markers, go back to the outline view (or property inspector if the track is still selected) and set the end jump to go back to your menu and the button that links to this track. Also, set the menu command to go back to the menu and button, too.
    Repeat this for every track that you have got linked to from the menu.
    You should now be able to simulate this. When you do, the intro track should play, then go to the menu. You should then be able to get to each track by using the buttons, and get back to the menu by either pressing the menu button on the remote control, by letting the track play to its end, or by skipping chapters along the track by pressing the next button until you get to the last chapter... shortly after this chapter marker you'll reach the end of the track.
    Make sure that your 'Title' button is also set to your menu, too - it should be by default when you only have a single menu, but click on the disc icon in the outline view, and go through the settings in the property inspector. If you set it correctly, the fourth way to leave a track is to use the title button.
    Remember, if you play a track and use the menu button to go to the menu, pressing it a second time will take you back to the track... unless the track had finished playing. This is all normal.

  • First time scripting question

    Is this a situation where I should learn how to use scripting in DVD Studio?
    I have a video with 12 chapters with chapter markers. When a viewer chooses to watch an individual chapter, rather than the full video, I want a 10 second video to play before the chapter plays. It will be the same 10 second video for each of the chapters.
    Is this something scripting can do for me? Any suggestions for writing the scripts? Any suggestions for where to look for scripting lessons?
    Thanks in advance for any assistance you can provide.

    For smoothest playback, and to help with navigational issues, I would put the 10 second clip on the same track as the other material, even at the end. Though preferable in theory to have one video per track (i.e., avoid having the 10 second clip be part of the other material and not have DVD SP mux it together), it often is not that problematic.
    Otherwise you can set the end jump of the 10 second clip track to the place on the other track you would like it to go - marker, story or anywhere else on the DVD.  But again due to navigation issue, I would put them on one track.  An example of what could happen, they jump from 10 second clip track to the other track. Where does the user go if they hit the back button?  If you want them to see the 10 second clip, it becomes problematic.  If just the start of the material on the V2 track, it will send them to the beginning of the story on the track.  If you are not using stories, the back button will go through the markers until it hits the beginning of the V2 track.

  • Best CLI DVD ripper IYO?

    What's the best CLI DVD ripper IYO?
    There are quite a few options as far as ripping a DVD from the commandline goes; there's burn, the python script, or dvd-backup, another decent command line utility, or the script on the wiki for use with mplayer's mencoder.
    I'm looking for opinions as to which is the best, or alternatively, why you like the one you've got. Being a CLI-fanatic, I want the best ripper I can run in a terminal, with the lowest number of dependencies possible, and preferably no gui at all (i.e. not mencoder, which requires you to have mplayer installed) :cry:
    Your thoughts?

    shadowhand wrote:Two questions about dumping DVDs: Can you loopmount the dump? And if so, can you rip the loopmount?  :shock:
    You can loopmount it with mount -o loop movie.img. But why would you want to? You can play them with mplayer -dvd-device movie.img dvd:// or set the dvd device node of your favorite multimedia player to movie.img.
    As for the second question: I'm not entirely sure. There'll probably some dvd rippers that can rip from an image. I also know that FreeBSD has a program (vndconfig?) that can create a device node that points at the image. I'm not sure Linux can do something like that. But again: why would you want to?

  • Can I use Voice Commands (Speech) to control the DVD Player?

    Problem: I want to insert a DVD in the the DVD drive and use voice commands to stop, pause, play, move forward, move back, and quit the DVD Player. Is this possible? If so how would I do this?
    Thanks in advance for your help.
    Jim Minor

    You can create a speakable item. Use AppleScript Editor (Applications > Utilities > AppleScript Editor) to write the appropriate AppleScript to perform the desired action, and give it a name which is the command you want to speak. Then, make a subdirectory in the Speakable Items directory named "DVD Player" and copy your script to it. You should be able to speak the name of the script when DVD Player is in the foreground and have the script execute.
    An example script (Play.scpt):
    tell application "DVD Player"
    play dvd
    end tell
    Other commands that the DVD Player application understands:
    fast forward dvd
    pause dvd
    rewind dvd
    stop dvd
    step dvd
    go to \[ main menu / title menu / subpicture menu / audio menu / angle menu / beginning of disc \]
    press \[ up arrow key / down arrow key / left arrow key / right arrow key / enter key \]
    open VIDEO_TS
    open dvd video folder
    play next chapter
    play bookmark
    play named bookmark
    play video clip
    play named video clip
    exit clip mode
    obscure cursor
    eject dvd
    The DVD Player application also has a bunch of properties related to chapters, titles, subtitles, etc.

  • Dynamic End Jump Script

    I'm new to scripting in DVD studio Pro. Lately I have been attempting to create dynamic buttons to return to the same menu, and the next available button. The below link is the tutorial that I have been following.
    The script worked perfectly when I only had one menu. My project is becoming more complex with different menus. The script no longer works properly. Instead of going to the same menu, it goes to the very first menu. It still goes to the next button, just not the right menu. How can I program it to jump to the previous menu?
    http://dvdstudiopro.digitalmedianet.com/articles/viewarticle.jsp?id=34239-0

    The script depends on using the layout in the outline view of DVDSP to work - the menu at the top of the list has a value of 32. The next menu down has a value of 64, etc. The idea is that you don't worry about the actual menu, but consider the order in which they are listed in the outline view as the most important info.
    I prefer not to use that method, relying instead on using either pre-scripts (if not using GPRM based button jumps) or stand-alone scripts. I tend to change a value in a GPRM as I move from menu to menu and rely on that value along with the stored value in SPRM8. My script would be something like this, assuming I am tracking menus in GPRM1:
    mov GPRM0, SPRM8
    div GPRM0, 1024
    add GPRM0, 1
    Jump menu1 [GPRM0] If(GPRM1 = 1)
    Jump menu2 [GPRM0] If(GPRM1 = 2)
    Jump menu3 [GPRM0] If(GPRM1 = 3)
    This would get me on to the next button on the menu I came from. However, you have to think about what happens when you start on the last button on a menu - by adding '1' to the value in GPRM0 (having loaded it with SPRM8) you could feasibly end up with a value that doesn't exist for a button. To counter this, you could put in a conditional statement in line 3:
    add GPRM0, 1 If(GPRM0 <= X)
    where X is the value of the last but one button. If the user was on the last button, the 'add' line gets ignored and the user gets sent to the menu and the last button on it.
    The only other thing to do is add three scripts which set the value into GPRM1 each time you move to a new menu. So, before loading the first menu, go to this script:
    mov GPRM1, 1
    Jump menu1
    then, when moving to the second menu, go to this script:
    mov GPRM1, 2
    Jump menu2
    and so on for each menu that you have got. Don't use pre-scripts in this system - the GPRM based button jumps won't work.
    Whilst this relies on you adding the scripts as necessary, it is probably a more dependable method than using the DVDSP values for menus.
    I believe Dave Nagel's scripts are better for DVDSP v2/3, but can't be sure.

  • Can't burn dvd of iMovie w/ iTunes soundtrack on external device

    Can't burn a DVD-R of file in iMovie 4.0.1 w/ iTunes soundtrack onto external DVD burner (LaCie w/ Toast 7). Prompt tells me I 'only iTunes can burn content'. Using iMac w/ OX 10.3.9 (no superdrive). Wonder if this iMac wont support the external drive or Toast (which I just purchased) since it has no superdrive.
    Any thoughts?

    Hi Dean:
    iMovie 4 did not natively support an external burner without the help of this free downloadable script:
    BURN DVDS TO AN EXTERNAL BURNER OR A DISK IMAGE WITH iDVD
    Or Patchburn
    Sue
    PS You may want to burn the soundtrack to an audio CD and import that to iMovie if it was purchased from itunes.

  • Can a Quiz show Wrong Answers at End?

    I have found tutorials outlining how to make a simple quiz that says if you got the individual question right or wrong.
    My client would like to display the wrong answers "AT THE END". Is there something possible along these lines?
    Thanks:)

    Hopefully never too late to chip in...
    You can certainly show the user what they got right and wrong, or only what they got wrong as you see fit, but it is not a simple matter to do. A lot will depend on the length of the quiz, the number of registers you are using to create it and so on. However, in just the same way that you can keep track of how many you scored, you can also create a system that takes you through a number of screens to say what you got wrong.
    However, you cannot automatically generate a list of the incorrect answers and present them as a single screen (or menu) unless you have only got a very few questions in total. This is because you need to create a screen for every single possible combination of answers and pick the right one from the whole lot.
    Instead, what you do is show a screen saying something like "you got five wrong... click to see them" and then present the viewer with a series of five screens that they can click through to see where they went wrong.
    It isn't a straightforward task for anyone who has not scripted a DVD before... but it is possible to do.
    How many questions are there in total on your quiz?

  • Subtitle stream mapping - 16:9, 4:3

    Hi,
    I just learned that the "big" Authoringtools (Creator, Scenarist and even Maestro!) are able to assign Subtitle streams to different aspect ratios. So you can, have for the same, language 2 subtitle streams (one for 16:9, one for 4:3 LB). The user will only see one Stream dependend how his player is configured.
    I believe this is not possible with dvd SP?!
    If not, is this possible to asign with "DVD After edit" ?
    cu,
    matthes

    hi rob,
    you can choose subtitle streams by scripting in DVD SP. but i believe you would not be able to hide subtitle streams belonging to the setup of the user. For one language the user should ONLY see (and be able to select within the movie) the subtitle stream that fits to his setup.
    DVD After Edit has this feature. And i know also found were it has to be done:
    Its in the PGC of the movie where you have the subtitles.
    If i understand this correct it works nearly similar to the subpicture mapping of Maestro. But in Maestro you can set Streams also "None". I presume this is "0" in DVDAfteredit. Or is "0" the first stream? (here im a bit confused).
    For a setup with One language and two streams ("Wide" and "Letterboxed") the setup would be:
    Stream1 (Wide subtitles in DVD SP track): Wide=1 ; Letterboxed=0 (None)
    Stream2 (Letterbox Subtitles in DVD SP track): Wide=0 (None) ; Letterboxed=1
    I post this also to the presales forum of DVDAE, hopefully Larry Applegate will confirm that,
    cu,
    matthes

  • Script to open and close CD and DVD

    Hi everyone,
    My MAC has an internal CD burner and an external DVD burner. I would like to know if it could possible to create two scripts that, by clicking , it would open or close (depending of the status) my CD and another one for my DVD burner.
    I look at the list of functions, and I could find only eject. I new to Automator.
    Thanks a lot

    Bruno,
    I believe you will find what you want at the following discussion forum item:
    http://discussions.apple.com/thread.jspa?messageID=1337938

  • Any Advice for 4:3 and 16:9 Menu DVD Authoring / Scripting?

    Hi all,
    Working on my first DVD with both 4:3 and 16:9 menus. I was wondering if anyone has advice, pointers, things to watch out for, tips, etc...
    I want it to be completely automated so I am using scripts to check SPRMS, jump to menus depending, etc and so far so good. But I am encountering a few issues and sure there will be more.
    Here's a question - this is a music concert DVD and each song is a chapter in a track. I have the menu button for each chapter assigned to the Select A Song menu and that track's button is selected.
    How can I keep this functionality but also keep the 4:3/16:9 menu ability? Do I need to write a script for each chapter marker?
    Thanks everybody.
    Jason

    That sure is easier, thanks. I might just finish via scripting to figure it all out but if something doesn't work it's real good to have this way.
    I guess the only drawback is not being able to fully utilize the 16:9 screen real estate. It's probably worth it for most cases.
    Thanks,
    Jason

  • DVD Backup Script

    Holy trial and error batman!
    ok, after weeks of banging my head against the wall i think i finally got this working.  so here it is, a script to rip - compress - and burn a DVD9 to standard 4.7 GB DVD5.
    why? because lxdvd fails, dvd95 usually fails, and k9copy brings in unwanted dependencies and never remembers my settings between sessions.
    i have not tested this extensively but i think it's workable enough to post for now, in it's current form.  take, enjoy, multiply and prosper.
    Disclaimer 1: i'm not in any way condoning or encouraging copyright infringement
    Disclaimer 2: if this script burns your house down (or anything else goes wrong) i accept no responsibility
    one thing i would love to add is the ability to add chapter markers.  neither vobcopy -I or tcprobe give me the needed info to build a ch.lst.  so any suggestions on that would be appreciated.
    here's the script:
    #!/bin/bash
    # DvdCopy V 0.1
    # pbrisbin 2009
    # Requires:
    # bc
    # transcode (tcprobe)
    # vobcopy
    # mplayer (mencoder)
    # dvdauthor
    # cdrkit or cdrtools (mkisofs and growisofs)
    # sudoers ability to `sudo /usr/bin/eject` w/o password
    ### Editable User Settings
    DEV="/dev/sr0"
    WD="/home/patrick/Temp/ripping"
    ### Below this shouldn't need to edited unless
    ### you intend to adjust the behavior of the
    ### actual program
    ### Some set up
    # Set up a working directory as defined above. we
    # need ~10GB here to hold all the files needed to
    # run this script as-is
    [ -d $WD ] || mkdir $WD
    ### Find the Longest Title
    # some dvd's need mencoder to call dvd://N where N is
    # the title to copy. it should auto detect longest
    # but we'll help it out by calling vobcopy -I to find
    # it manually just in case
    vobcopy -I $DEV 2>&1 | tee $WD/title.txt
    TITLE=$(grep Most\ chapters $WD/title.txt | awk '{print $6}')
    echo ""
    echo -e "\n\n The longest title was Title \e[1;34m${TITLE}\e[0m. Proceed with this title? y/n " && read A
    echo ""
    [ "$A" = "y" ] || exit
    ### Gather INFO on the DVD
    # tcprobe is annoying and always prints to screen
    tcprobe -i $DEV -T $TITLE 2>&1 > $WD/probe.txt || exit
    ### Calculate the Video Bitrate
    # an equation is used to calculate a vbitrate to
    # keep the final .mpeg under the limit $S. $S is
    # 4.3GB to allow some wiggle room. quality seems
    # ok with this setting, change it if you want.
    S="4300000"
    L="$(grep ^V\: $WD/probe.txt | awk '{print $4}')"
    a="$(grep ^A\: $WD/probe.txt | awk '{print $5}')"
    A="$(echo "$a / 8" | bc)"
    VBR="$(echo "( ( $S - ( $A * $L ) ) / $L ) * 8" | bc)"
    echo ""
    echo -e "Your calculated bitrate is: \e[1;34m${VBR}\e[0m"
    echo ""
    ### Get the Chapter Listing
    # use tcprobe with more verbosity to get the chapter
    # listing, this is minipulated into a file that's
    # called later by dvdauthor -c. we need to find a more
    # elegant way to handle this failing, but then again
    # i'm not sure how often it will fail, if ever
    tcprobe -i $DEV -T $TITLE -d 8 2>&1 | egrep "\[Chapter ..\] " | cut -d " " -f 4 | \
    perl -pi -e 's/\n/,/' | perl -pi -e 's/,$//' | tee $WD/ch.list || exit
    echo -e "\n $(cat $WD/ch.list) \n"
    echo ""
    echo -e "\n\n Check the chapters, you should see 0,00:10:00.0,...\n\n Is it ok? y/n " && read A
    echo ""
    [ "$A" = "y" ] || exit # cop out!
    ### Finally, we can encode the Video
    # these settings build an NTSC DVD compliant mpg with
    # a straight copy of the audio and a vbitrate calculated
    # to keep it under the 4.4 GB limit defined above
    mencoder dvd://${TITLE} -dvd-device $DEV -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
    -vf scale=720:480,harddup \
    -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=${VBR}:\
    keyint=18:vstrict=0:aspect=16/9 -ofps 30000/1001 \
    -oac copy \
    -o $WD/file.mpeg || exit 1
    ### Author the DVD folder
    # we need to set it up such that if the ch.list fails
    # then we can choose to do an interval - chapters each
    # 10 15 minutes or something, dynamically set up a file
    # then conditionally call -c ch.list or -c fallback.list
    if [ -f $WD/ch.list ]; then
    dvdauthor -t -c $(cat $WD/ch.list) -o $WD/MOVIE $WD/file.mpeg || exit 2
    else
    dvdauthor -t -o $WD/MOVIE $WD/file.mpeg || exit 2
    fi
    # TOC is required so it's playable in standard players
    dvdauthor -T -o $WD/MOVIE || exit 2
    ### Build the ISO image
    # this is done so that the .iso can be saved or burnt
    # to disc in the next step
    mkisofs -dvd-video -o $WD/movie.iso $WD/MOVIE || exit 3
    # prepare to burn, eject the disc and ask for a blank
    # one. sudoers file needs to be edited to allow access
    # to this command w/o a password
    sudo /usr/bin/eject $DEV || exit 4
    read -p "Please insert a blank DVD-R and press any key to continue:"
    ### Burn the ISO image
    # wait 5 seconds for the drive to settle then burn the
    # iso to disk. this line can cab used directly on the
    # $WD/MOVIE folder if you're never going to keep the
    # ISO image file on disk
    sleep 5 && growisofs -dvd-compat -Z $DEV=$WD/movie.iso || exit 5
    # Now that we're done let's clean up the Temp data
    # the user is asked b/c we might want to keep the .iso
    echo -e "\n\n Seems we're all set. Would you like to remove the Temp data? y/n\n" && read A
    [ "$A" = "y" ] && rm -r $WD
    echo -e "Enjoy your movie!"
    exit 0
    edit1: almost forgot, i call eject in the script which requires root privileges on my system.  do the usual `sudo visudo` routine so you can do that w/o password or the script will choke at that point.  alternatively you can put an exit right there and just eject/burn manually from there.
    edit2: in the script i run mkisofs to make the .iso, then i burn that with growisofs.  i do this because occasionally i like to keep the .iso on my HDD for a while.  if this isn't needed, you can run this to burn directly from $WD/MOVIE to disc:
    growisofs -dvd-compat -Z $DEV -dvd-video $WD/MOVIE/
    edit3: figured out the chapters listing... added to script
    edit4: thanks skottish... this _should_ work.  testers welcome
    edit5: 'final' version posted, dependencies listed.  enjoy!
    edit6: just a cleaner and more commented version.  no major changes
    edit7: moved the title finding section to the top so i could then us $TITLE everywhere to be safe
    Last edited by brisbin33 (2009-03-27 21:27:35)

    OK, for the sake of completeness, here's the final version i've been using successfully of late.  the only thing i might add is some better error handling.  thanks juster for the fixes, i love hiding output in scripts and was very annoyed that tcprobe/vobcopy wasn't behaving.  hope this works for you, suggestions always welcome
    #!/bin/bash
    # DvdCopy V 0.1
    # pbrisbin 2009
    # Requires:
    # bc
    # transcode (tcprobe)
    # vobcopy
    # mplayer (mencoder)
    # dvdauthor
    # cdrkit or cdrtools (mkisofs and growisofs)
    # sudoers ability to `sudo /usr/bin/eject` w/o password
    ### Editable User Settings
    DEV="/dev/sr0"
    WD="$HOME/Temp/ripping"
    ### Below this, shouldn't need to edited unless
    ### you intend to adjust the behavior of the
    ### actual program
    ### Some set up
    # Set up a working directory as defined above. we
    # need ~10GB here to hold all the files needed to
    # run this script as-is
    [ -d $WD ] || mkdir -p $WD
    ### Find the Longest Title
    # some dvd's need mencoder to call dvd://N where N is
    # the title to copy. it should auto detect longest
    # but we'll help it out by calling vobcopy -I to find
    # it manually just in case
    vobcopy -I $DEV > $WD/title.txt 2>&1 || exit
    TITLE=$(grep Most\ chapters $WD/title.txt | awk '{print $6}')
    echo ""
    echo -e "\n\n The longest title was Title \e[1;34m${TITLE}\e[0m. Proceed with this title? y/n " && read A
    echo ""
    [ "$A" = "y" ] || exit
    ### Gather INFO on the DVD
    # tcprobe is annoying and always prints to screen
    tcprobe -i $DEV -T $TITLE -d 8 > $WD/probe.txt 2>&1 || exit
    ### Calculate the Video Bitrate
    # an equation is used to calculate a vbitrate to
    # keep the final .mpeg under the limit $S. $S is
    # 4.3GB to allow some wiggle room. quality seems
    # ok with this setting, change it if you want.
    S="4300000"
    L="$(grep ^V\: $WD/probe.txt | awk '{print $4}')"
    a="$(grep ^A\: $WD/probe.txt | awk '{print $5}')"
    A="$(echo "$a / 8" | bc)"
    VBR="$(echo "( ( $S - ( $A * $L ) ) / $L ) * 8" | bc)"
    echo ""
    echo -e "\n Your calculated bitrate is: \e[1;34m${VBR}\e[0m"
    echo ""
    ### Get the Chapter Listing
    # using that first tcprobe (-d 8) to get the chapter
    # listing, this is minipulated into a file that's
    # called later by dvdauthor -c. we need to find a more
    # elegant way to handle this failing, but then again
    # i'm not sure how often it will fail, if ever...
    egrep "\[Chapter ..\] " $WD/probe.txt | cut -d " " -f 4 | \
    perl -pi -e 's/\n/,/' | perl -pi -e 's/,$//' > $WD/ch.list || exit
    ### Display the Chapter
    # let's display the chapters in a more readable format
    # do the reverse of above, we'll be confident the file's
    # ok if the listing look's good
    echo -e "\n Your Chapters were determined as follows: \n"
    count=1
    cat $WD/ch.list | sed 's/\,/\n/g' | while read chap; do
    echo -e "\tChapter $count \t- \e[1;34m$chap\e[0m"
    count=$(( count + 1 ))
    done
    echo ""
    echo -e "\n Chapters look ok? y/n " && read A
    echo ""
    [ "$A" = "y" ] || exit # cop out!
    ### Finally, we can encode the Video
    # these settings build an NTSC DVD compliant mpg with
    # a straight copy of the audio and a vbitrate calculated
    # to keep it under the 4.4 GB limit defined above
    mencoder dvd://${TITLE} -dvd-device $DEV -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
    -vf scale=720:480,harddup \
    -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=${VBR}:\
    keyint=18:vstrict=0:aspect=16/9 -ofps 30000/1001 \
    -oac copy \
    -o $WD/file.mpeg || exit 1
    ### Author the DVD folder
    # we need to set it up such that if the ch.list fails
    # then we can choose to do an interval - chapters each
    # 10 15 minutes or something, dynamically set up a file
    # then conditionally call -c ch.list or -c fallback.list
    if [ -f $WD/ch.list ]; then
    dvdauthor -t -c $(cat $WD/ch.list) -o $WD/MOVIE $WD/file.mpeg || exit 2
    else
    dvdauthor -t -o $WD/MOVIE $WD/file.mpeg || exit 2
    fi
    # TOC is required so it's playable in standard players
    dvdauthor -T -o $WD/MOVIE || exit 2
    ### Build the ISO image
    # this is done so that the .iso can be saved or burnt
    # to disc in the next step
    mkisofs -dvd-video -o $WD/movie.iso $WD/MOVIE || exit 3
    # prepare to burn, eject the disc and ask for a blank
    # one. sudoers file needs to be edited to allow access
    # to this command w/o a password
    sudo /usr/bin/eject $DEV || exit 4
    read -p " Please insert a blank DVD-R and press any key to continue:"
    ### Burn the ISO image
    # wait 5 seconds for the drive to settle then burn the
    # iso to disk. this line can cab used directly on the
    # $WD/MOVIE folder if you're never going to keep the
    # ISO image file on disk
    sleep 5 && growisofs -dvd-compat -Z $DEV=$WD/movie.iso || exit 5
    # Now that we're done let's clean up the Temp data
    # the user is asked b/c we might want to keep the .iso
    echo -e "\n\n Seems we're all set. Would you like to remove the Temp data? y/n\n" && read A
    [ "$A" = "y" ] && rm -r $WD
    echo -e "\n\n Enjoy your movie!"
    exit 0

Maybe you are looking for

  • Why is Vanishing Point filter in the latest Photoshop CC creating PNGs that do not match the planes?

    Hi Everyone, I've scoured the forums, as well as external sites, but not finding a solution. Tried tech support, their ideas didn't pan out. Would greatly appreciate some guidance. Every time I try to use VPE, the resulting mesh is fine (the dxf), bu

  • Raid 5 shows offline

    Hi All, We have WAE 7341 with 4.1.5f code which failed.  We recreated raid after which we see all the disk online, but raid shows offline status. Please find below the sh disk details and sh disk tech support output wa1#Sh disk details RAID Physical

  • Company code and Account code does not exist in SKB1 while entering GL Tran

    I have created chart of accounts in the co code but getting error msg while posting entry in <Company Code>and<GL Account> transaction that entry does not exist in table SKB1. I have copied COA from existing SAP COA. I was able to find the solution f

  • Created my first app in app studio but can't upload in dev center

    Hello, I created my first app in Windows App Studio.I generated a publish package containing a zip file that contains an appxupload file. But when I try to upload it in the windows Phone dev center i can only upload XAP files?? What am i doing wrong?

  • Nested XML & Pagination

    Hi, Just wondering if anyone has implemented pagination for nested XML. Our XML structure is as following: <items> <item id="0001" type="donut"> <name>Cake</name> <ppu>0.55</ppu> <batters> <batter id="1001">Regular</batter> <batter id="1002">Chocolat