VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. So, I was wondering if I was the only person to use batch files to do this. Sure I'm basicly doing DVD2SVCD in a batch file, but I 1) Like to figure this stuff out, and 2) I like to have full control of whats happening.

    If you've thought about it or are somewhat curious, here's one of my batch files, this one is for backing up my Stargate SG-1's to CVD, I like it, I pop a DVD in before I goto bed, and wake up w/ 5 sets of Bin/Cue files ready to burn.

    Code:
    @REM Set Program Locations
    @SET DVD2AVI=C:\PROGRA~1\DVD\DVD2AV~1\dvd2avi
    @REM http://www.dvd2dvd.org/DVD2AVI%201.76%20Command-Line%201.05.zip
    @SET DVDDECRYPTER=c:\progra~1\DVD\DVDDec~2\DVDDec~1.exe
    @SET VCDXBUILD=c:\progra~1\dvd\vcdeasy\vcdimager\vcdxbuild.exe
    @SET NAUTOW=c:\progra~1\nautow\nautow.exe
    @REM http://www.stokebloke.com/software/nautow_0.0.4.exe
    @SET TMPGENC=C:\PROGRA~1\DVD\TMPGEN~1.152\tmpgenc.exe
    
    REM Rip
    start /w %DVDDECRYPTER% /MODE IFO /SRC E: /START /CLOSE /VTS 1 /PGC 1 /DEST "c:\media\sg1\"
    
    start /w %DVDDECRYPTER% /MODE IFO /SRC E: /START /CLOSE /VTS 1 /PGC 2 /DEST "c:\media\sg2\"
    
    start /w %DVDDECRYPTER% /MODE IFO /SRC E: /START /CLOSE /VTS 1 /PGC 3 /DEST "c:\media\sg3\"
    
    start /w %DVDDECRYPTER% /MODE IFO /SRC E: /START /CLOSE /VTS 1 /PGC 4 /DEST "c:\media\sg4\"
    
    start /w %DVDDECRYPTER% /MODE IFO /SRC E: /START /CLOSE /VTS 1 /PGC 5 /DEST "c:\media\sg5\"
    
    REM Make D2V and WAV Files
    :convert
    start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[c:\media\sg1\vts_01_1.vob] -OF=[c:\media\sg1\sg] -exit
    
    start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[c:\media\sg2\vts_01_1.vob] -OF=[c:\media\sg2\sg] -exit
    
    start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[c:\media\sg3\vts_01_1.vob] -OF=[c:\media\sg3\sg] -exit
    
    start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[c:\media\sg4\vts_01_1.vob] -OF=[c:\media\sg4\sg] -exit
    
    start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[c:\media\sg5\vts_01_1.vob] -OF=[c:\media\sg5\sg] -exit
    
    
    
    REM Make the MPEGS
    :encode
    start %TMPGENC% c:\media\stargates4.tbe /batch
    rem start %TMPGENC% /batch
    
    REM Close TMPGEnc when done
    %NAUTOW% WI00:"TMPGEnc" WI01:"Result" BT00:"OK" WI02:"Project" BT00:"Cancel" WI00:"TMPGEnc" SY01: QUIT:
    
    
    REM Make the Bin/Cue files
    :build
    %VCDXBUILD% -p -b c:\media\sg1\sg.bin -c c:\media\sg1\sg.cue c:\media\sg1\sg.xml
    %VCDXBUILD% -p -b c:\media\sg2\sg.bin -c c:\media\sg2\sg.cue c:\media\sg2\sg.xml
    %VCDXBUILD% -p -b c:\media\sg3\sg.bin -c c:\media\sg3\sg.cue c:\media\sg3\sg.xml
    %VCDXBUILD% -p -b c:\media\sg4\sg.bin -c c:\media\sg4\sg.cue c:\media\sg4\sg.xml
    %VCDXBUILD% -p -b c:\media\sg5\sg.bin -c c:\media\sg5\sg.cue c:\media\sg5\sg.xml
    
    REM Shutdown
    C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows
    Ejoc's CVD Page:
    DVDDecrypter -> DVD2AVI -> Vobsub -> AVISynth -> TMPGEnc -> VCDEasy

    DVD:
    DVDShrink -> RecordNow DX

    Capture:
    VirualDub -> AVISynth -> QuEnc -> ffmpeggui -> TMPGEnc DVD Author
    Quote Quote  
  2. Member Dhruv's Avatar
    Join Date
    Aug 2001
    Location
    Australia
    Search Comp PM
    Wow, I've never really thought about doing that but it seems like a great idea! You should consider writing a 'how to' tutorial on using batch files to automate the DVD->Bin/Cue process, I'm sure it'll be very popular and helpful!
    I only dream in black & white...
    MSN: paschendale@gmail.com
    Quote Quote  
  3. Yea, I'm working on a web page, it'll be on there when Im done... when ever that is.
    Ejoc's CVD Page:
    DVDDecrypter -> DVD2AVI -> Vobsub -> AVISynth -> TMPGEnc -> VCDEasy

    DVD:
    DVDShrink -> RecordNow DX

    Capture:
    VirualDub -> AVISynth -> QuEnc -> ffmpeggui -> TMPGEnc DVD Author
    Quote Quote  
  4. you could rip all the dvds first then enqueue the batch jobs in tmpgenc to run overnight, no batch file needed.
    Corned beef is now made to a higher standard than at any time in history.
    The electronic components of the power part adopted a lot of Rubycons.
    Quote Quote  
  5. Member
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Put in error checking incase the DVD only has 4 PGC's.

    I hope you have a LOT of disk space, your not cleaning up after yourself
    To Be, Or, Not To Be, That, Is The Gazorgan Plan
    Quote Quote  
  6. Originally Posted by RabidDog
    you could rip all the dvds first then enqueue the batch jobs in tmpgenc to run overnight, no batch file needed.
    1) It is using TMPGEnc batch's files
    2) You would have to manually rip the files, what about DVD2AVI, manual too? This defeats the whole concept of a 1 click rip -> bin/cue.

    The old way I did it, which is what you are suggesting:
    DVD Decrypter- 50minutes
    DVD2AVI - 50minutes
    TMPGEnc - overnight
    Build bin/cues - 30minutes
    Burn - 30minutes

    Batchfile:
    Run Batchfile - overnight
    Burn 30minutes

    The total time is that same *BUT* I spent almost 3 hours at my computer/having it tied up, and now just 30minutes.



    Originally Posted by Gazorgan
    Put in error checking incase the DVD only has 4 PGC's.

    I hope you have a LOT of disk space, your not cleaning up after yourself
    Yea I need to add the error checking w/ DVD2AVI, DVD Decrypter can handel it as can TMPGEnc, but DVD2AVI will hang. For now I just REM it out since I'm lazy.

    It does take a chunk of disk space, which I have, but I've always been nervous about deleting the files when they are nolonger needed, I'm always think "what if" and I might need to redo something.
    Ejoc's CVD Page:
    DVDDecrypter -> DVD2AVI -> Vobsub -> AVISynth -> TMPGEnc -> VCDEasy

    DVD:
    DVDShrink -> RecordNow DX

    Capture:
    VirualDub -> AVISynth -> QuEnc -> ffmpeggui -> TMPGEnc DVD Author
    Quote Quote  
  7. I added error checking, quite easy really.

    My other scripts use a WORKINGDIR variable to make portability easier, so when I updated the stargate script I updated that.

    Code:
    if exist %WORKINGDIR%\sg1\vts_01_1.vob start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[%WORKINGDIR%\sg1\vts_01_1.vob] -OF=[%WORKINGDIR%\sg1\sg] -exit
    
    if exist %WORKINGDIR%\sg2\vts_01_1.vob start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[%WORKINGDIR%\sg2\vts_01_1.vob] -OF=[%WORKINGDIR%\sg2\sg] -exit
    
    if exist %WORKINGDIR%\sg3\vts_01_1.vob start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[%WORKINGDIR%\sg3\vts_01_1.vob] -OF=[%WORKINGDIR%\sg3\sg] -exit
    
    if exist %WORKINGDIR%\sg4\vts_01_1.vob start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[%WORKINGDIR%\sg4\vts_01_1.vob] -OF=[%WORKINGDIR%\sg4\sg] -exit
    
    if exist %WORKINGDIR%\sg5\vts_01_1.vob start /w %DVD2AVI% -IA=1 -Fo=0 -CS=2 -YR=1 -TN=1 -CF=4 -DRC=2 -DSD=1 -DD=3 -MA=2 -AIF=[%WORKINGDIR%\sg5\vts_01_1.vob] -OF=[%WORKINGDIR%\sg5\sg] -exit
    Now that theres a programing section, should this go there now?
    Ejoc's CVD Page:
    DVDDecrypter -> DVD2AVI -> Vobsub -> AVISynth -> TMPGEnc -> VCDEasy

    DVD:
    DVDShrink -> RecordNow DX

    Capture:
    VirualDub -> AVISynth -> QuEnc -> ffmpeggui -> TMPGEnc DVD Author
    Quote Quote  
  8. point taken.. I will try and adapt your scrip to my own needs. eg single movie backup. how did you find out about the cmd line options on these various programs? esp dvd2avi tmpgenc?
    Corned beef is now made to a higher standard than at any time in history.
    The electronic components of the power part adopted a lot of Rubycons.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!