Log in

View Full Version : batch file remux .srt or .ass


Tylerr
14th December 2019, 18:30
Is there a way to change this to include both .srt and .ass?


@echo off
:: # this will remux all .ass subtitle and mkv files of the same name into a folder called output while removing any current subtitles in the container
for %%A IN (*.mkv) do ( "C:\Program Files\MKVToolNix\mkvmerge.exe" -S -o "output\%%~nxA" "%%~A" --forced-track "0:yes" --default-track "0:yes" --track-name "0:English" --language "0:eng" "%%~nA.ass" )
pause


currently i have made 2 separate files and just changed .ass to .srt but i'd like to be able to use a single file.