diff --git a/GI Cutscenes EASY.bat b/GI Cutscenes EASY.bat new file mode 100644 index 0000000..6d2f59e --- /dev/null +++ b/GI Cutscenes EASY.bat @@ -0,0 +1,5 @@ +@echo off +echo Drag and drop your USM file here, or enter the path manually: +set /p file="Enter the path to the file: " +set "path=%file:"=%" +GICutscenes demuxUsm "%path%" -m -s diff --git a/GICutscenes.bat b/GICutscenes.bat deleted file mode 100644 index ec27adc..0000000 --- a/GICutscenes.bat +++ /dev/null @@ -1,33 +0,0 @@ -@echo off - -rem Getting the USM file -echo Drag and drop your USM file here, or enter the path manually: -set /p file="Enter the path to the file: " -set "filePath=%file:"=%" -GICutscenes demuxUsm "%filePath%" -m -s - -echo ---------------------------------------------------- -echo %filePath% -echo %file% -echo ---------------------------------------------------- - - -rem Extracting file name without extension -for %%I in ("%filePath%") do ( - set "fileName=%%~nI" -) - -echo ---------------------------------------------------- -echo %fileName% -echo ---------------------------------------------------- - -rem Extracting subtitles -mkdir "./output/subs" 2>nul -ffmpeg -i "./output/%fileName%.mkv" -map 0:s:0 "./output/subs/%fileName%.ass" - -echo ---------------------------------------------------- -echo ---------------------------------------------------- - -ffmpeg -i "./output/%fileName%.mkv" -i "./output/subs/%fileName%.ass" -map 0:0 -map 0:2 -c:v libx264 -crf 18 -c:a copy -preset veryfast -vf "ass=./output/subs/%fileName%.ass" "./output/%fileName%.mp4" - -pause \ No newline at end of file