Difference between revisions of "Anri-chan/Source/sample.bat"

From SDA Knowledge Base

Jump to: navigation, search
(name of desktop fix)
Line 19: Line 19:
 
if not "%done%"=="yes" GOTO chapternumber
 
if not "%done%"=="yes" GOTO chapternumber
  
cd "%HOMEPATH%\Desktop"
+
cd "%~dp0"
 
if exist sample.avs del sample.avs
 
if exist sample.avs del sample.avs
"%PROGRAMFILES%\anrichan\dgmpgdec148\dgindex.exe" -AIF=[%driveletter%:\VIDEO_TS\VTS_0%chapternumber%_1.VOB] -OM=3 -OF=[sample] -AT=[%PROGRAMFILES%\anrichan\dgmpgdec148\template.avs] -exit
+
"%PROGRAMFILES%\anrichan\dgmpgdec149\dgindex.exe" -AIF=[%driveletter%:\VIDEO_TS\VTS_0%chapternumber%_1.VOB] -OM=3 -OF=[sample] -AT=[%PROGRAMFILES%\anrichan\dgmpgdec149\template.avs] -exit
  
 
echo trim(2700,3000) >> sample.avs
 
echo trim(2700,3000) >> sample.avs
Line 36: Line 36:
 
echo Finished! You will find sample.mp4 on your desktop. Feel free to rename it to something more descriptive like nameofgame_sample.mp4.
 
echo Finished! You will find sample.mp4 on your desktop. Feel free to rename it to something more descriptive like nameofgame_sample.mp4.
 
pause
 
pause
@echo on</nowiki></pre>
+
@echo on
 +
</nowiki></pre>

Revision as of 20:05, 26 July 2007

@echo off

set done=
set driveletter=
:driveletter
set /P driveletter=DVD Drive Letter: 
if not "%driveletter%"=="" (
set done=yes
)
if not "%done%"=="yes" GOTO driveletter

set done=
set chapternumber=
:chapternumber
set /P chapternumber=DVD Chapter Number: 
if not "%chapternumber%"=="" (
set done=yes
)
if not "%done%"=="yes" GOTO chapternumber

cd "%~dp0"
if exist sample.avs del sample.avs
"%PROGRAMFILES%\anrichan\dgmpgdec149\dgindex.exe" -AIF=[%driveletter%:\VIDEO_TS\VTS_0%chapternumber%_1.VOB] -OM=3 -OF=[sample] -AT=[%PROGRAMFILES%\anrichan\dgmpgdec149\template.avs] -exit

echo trim(2700,3000) >> sample.avs
echo converttoyv12 >> sample.avs

"%PROGRAMFILES%\anrichan\x264.exe" --direct auto --ref 8 --mixed-refs --no-fast-pskip --bframes 16 --b-rdo --bime --weightb --subme 7 --trellis 2 --analyse all --qpmin 0 --me umh --threads auto --thread-input --progress --no-psnr --output sample.mp4 sample.avs

set done=
set driveletter=
set chapternumber=

del sample.avs | del sample.d2v | del sample*.wav

echo Finished! You will find sample.mp4 on your desktop. Feel free to rename it to something more descriptive like nameofgame_sample.mp4.
pause
@echo on
Personal tools