2006-09-21, 10:18 PM
I've tried learning some DOS commands to make automation easier, but I'm having some trouble. In my postprocessing.bat, I have comskip run, then videoredo to cut out the commercials. Then I want to transcode, and I found this neat program (AutoXvid) that automates AutoGk. And after that I have RenameRecordings to make sure everything gets the right name. Problem seems to be that RenameRecordings launches right after AutoXvid is CALLED and renames the file while it is being transcoded. (And what AutoXvid does is call and input settings into AutoGK, which in turn calls vitualdubmod and other apps). Is there a pause feature I can use (not the pause command, obviously because that requires user input) to wait until every process of AutoXvid is done before renaming the recording?
Or, alternatively, is there a way to rename the recording first and tell AutoXvid to use the changed name (which can't be %1 anymore)?
Or, alternatively, is there a way to rename the recording first and tell AutoXvid to use the changed name (which can't be %1 anymore)?
Code:
"C:\Program Files\devnz\gbpvr\comskip.exe" %1
cscript //nologo "C:\Program Files\VideoReDoPlus\vp.vbs" "%~dpn1.VPrj" "%~dpn1_Cleaned.mpg" /t1 /q
Rem RENAME the old .mpg file and rename the new one to the old name
move "%~dpn1.mpg" "%~dpn1_original.mpg"
move "%~dpn1_cleaned.mpg" "%~dpn1.mpg"
REM The following lines cleanup the directory.
move "%~dpn1_original.mpg" "F:\originals\"
move "%~dpn1.txt" "F:\originals\"
move "%~dpn1.log" "F:\originals\"
move "%~dpn1.VPrj" "F:\originals\"
move "%~dpn1.logo.txt" "F:\originals\"
"C:\Program Files\AutoXvid\AutoXvid.exe" %1
RenameRecordings.exe > RenameRecording.log