jonathonsunshine
9th October 2006, 16:23
Greetings
I have written a batch that prepares mpg or ts or vob files for gordian knot
i drag and drop a bunch of say 10 .mpg onto this batch file and it will
create a .D2V file with dgindex
then it will encode the MPEG audio or AC3 audio into mp3
then it will use mp3gain to normalize the mp3 to 89db
it will do this for all of the files.
it works perfect
EXCEPT
it won't bloody pause at the end so i can go back and check for anything having gone wrong.
What i want to know is how can i make this batch file pause at the end
----------------------------------
echo off
cls
:LOOP
F:\XVIDStuff\Programs\DGIndex\dgindex.exe -IF=[%~1] -IA=6 -YR=1 -OM=2 -AT=[] -OF=[%~dpn1] -EXIT -HIDE
IF NOT EXIST "%~dpn1* 0ms.mpa" GOTO DOLBYDIGITAL
ren "%~dpn1* 0ms.mpa" "%~n1.mpa"
f:\AUDIOCONVERTER\BeSweet.exe -core( -input "%~dpn1.mpa" -output "%~dpn1.wav" -2ch ) -azid( -s dplii -d 3/2 -c normal ) -ota( -d auto )
del "%~dpn1.mpa"
f:\AUDIOCONVERTER\lame\lame.exe --noreplaygain -q 0 -h -V 4 -b 112 -B 320 "%~dpn1.wav" "%~dpn1.mp3"
del "%~dpn1.wav"
f:\AUDIOCONVERTER\mp3gain.exe /c /r /t "%~dpn1.mp3"
GOTO FINISHED
:DOLBYDIGITAL
IF NOT EXIST "%~dpn1* 0ms.ac3" GOTO FINISHED
ren "%~dpn1* 0ms.ac3" "%~n1.ac3"
f:\AUDIOCONVERTER\BeSweet.exe -core( -input "%~dpn1.ac3" -output "%~dpn1.wav" -2ch ) -azid( -s dplii -d 3/2 -c normal ) -ota( -d auto )
del "%~dpn1.ac3"
f:\AUDIOCONVERTER\lame\lame.exe --noreplaygain -q 0 -h -V 4 -b 112 -B 320 "%~dpn1.wav" "%~dpn1.mp3"
del "%~dpn1.wav"
f:\AUDIOCONVERTER\mp3gain.exe /c /r /t "%~dpn1.mp3"
:FINISHED
shift
IF NOT %1 == "" GOTO LOOP
pause
I have written a batch that prepares mpg or ts or vob files for gordian knot
i drag and drop a bunch of say 10 .mpg onto this batch file and it will
create a .D2V file with dgindex
then it will encode the MPEG audio or AC3 audio into mp3
then it will use mp3gain to normalize the mp3 to 89db
it will do this for all of the files.
it works perfect
EXCEPT
it won't bloody pause at the end so i can go back and check for anything having gone wrong.
What i want to know is how can i make this batch file pause at the end
----------------------------------
echo off
cls
:LOOP
F:\XVIDStuff\Programs\DGIndex\dgindex.exe -IF=[%~1] -IA=6 -YR=1 -OM=2 -AT=[] -OF=[%~dpn1] -EXIT -HIDE
IF NOT EXIST "%~dpn1* 0ms.mpa" GOTO DOLBYDIGITAL
ren "%~dpn1* 0ms.mpa" "%~n1.mpa"
f:\AUDIOCONVERTER\BeSweet.exe -core( -input "%~dpn1.mpa" -output "%~dpn1.wav" -2ch ) -azid( -s dplii -d 3/2 -c normal ) -ota( -d auto )
del "%~dpn1.mpa"
f:\AUDIOCONVERTER\lame\lame.exe --noreplaygain -q 0 -h -V 4 -b 112 -B 320 "%~dpn1.wav" "%~dpn1.mp3"
del "%~dpn1.wav"
f:\AUDIOCONVERTER\mp3gain.exe /c /r /t "%~dpn1.mp3"
GOTO FINISHED
:DOLBYDIGITAL
IF NOT EXIST "%~dpn1* 0ms.ac3" GOTO FINISHED
ren "%~dpn1* 0ms.ac3" "%~n1.ac3"
f:\AUDIOCONVERTER\BeSweet.exe -core( -input "%~dpn1.ac3" -output "%~dpn1.wav" -2ch ) -azid( -s dplii -d 3/2 -c normal ) -ota( -d auto )
del "%~dpn1.ac3"
f:\AUDIOCONVERTER\lame\lame.exe --noreplaygain -q 0 -h -V 4 -b 112 -B 320 "%~dpn1.wav" "%~dpn1.mp3"
del "%~dpn1.wav"
f:\AUDIOCONVERTER\mp3gain.exe /c /r /t "%~dpn1.mp3"
:FINISHED
shift
IF NOT %1 == "" GOTO LOOP
pause