View Single Post
Old 11th July 2006, 23:16   #11  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
Thanks Nick, this works nicely! Your post made me realize that I really should brush up my knowledge about the extended "set" options under Windows XP. I found that the %~dp option works well for my script. Here is the new batch file:
Code:
rem ************************** D2S_Imago.bat *************************
rem
rem *** Plugin for DVD2SVCD to use the Imago MPEG Muxer instead of MPlex ***
rem
rem *** Copy D2S_Imago.bat and ImagoMPEG-Muxer.exe into your DVDAuthor folder
rem ***     and point DVD2SVCD to the batch file instead of MPlex.exe
rem ---------------------------------------------------------------------
set workdir=%~dp4
set vidstream=%~nx5
ren %5 movie.mpv
if not exist "%workdir%Encoded_audio_?.*" set encode=NO
ren %6 movie.*
if not !%7 == ! ren %7 movie2.*
ImagoMPEG-Muxer.exe "%workdir%movie.mpv" -o
ren "%workdir%movie.mpg" MPlex_Muxed_File00.*
ren "%workdir%movie.mpv" %vidstream%
if !%encode% == !NO goto noencode
ren "%workdir%movie.*" Encoded_audio_1.*
if exist "%workdir%movie2.*" ren "%workdir%movie2.*" Encoded_audio_2.*
exit
:noencode
ren "%workdir%movie.*" Extracted_audio_1.*
if exist "%workdir%movie2.*" ren "%workdir%movie2.*" Extracted_audio_2.*
Please test and let me know if it works before I upload it to my webspace.

Cheers
manolito

Last edited by manolito; 28th July 2006 at 13:07.
manolito is offline   Reply With Quote