Is there a way to change this to include both .srt and .ass?
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.Code:@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
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
Just a try since I see no one answered so far.... I Didn't have any MKV but tried the following with MP4 and it successfully added the track with the correct srt/ass to the corresponding video
Files used:
CGOP.mp4
CGOP_2.MP4
CGOP.SRT
CGOP_2.ASS --> (They are in french just to be sure)
for %%A IN (cgop*.mp4) do (
IF EXIST "%%~pnA.srt" (
"C:\Program Files (x86)\AVStoDVD\MKVtoolNix\mkvmerge.exe" -S -o "output\%%~nxA" "%%~A" --forced-track "0:yes" --track-name "0:English" --language "0:eng" "%%~nA.srt"
) ELSE (
"C:\Program Files (x86)\AVStoDVD\MKVtoolNix\mkvmerge.exe" -S -o "output\%%~nxA" "%%~A" --forced-track "0:yes" --track-name "0:English" --language "0:eng" "%%~nA.ass"
)
)
CGOP.MP4 has English from CGOP.SRT
CGOP_2.MP4 has French from CGOP_2.ASS
This assumes you have have one SRT or ASS for each file in the list. If not, you may have to add another else statement
Similar Threads
-
Convert 2 .srt languages in 1 .ass
By islogged in forum SubtitleReplies: 4Last Post: 24th Nov 2020, 12:16 -
Easiest way to mass convert VOBSUB to SRT without extract/remux?
By Chrushev in forum SubtitleReplies: 3Last Post: 31st Jan 2020, 19:18 -
[VidCoder] How to embed soft subs as SRT, not ASS?
By sakis14 in forum SubtitleReplies: 3Last Post: 26th Jan 2018, 06:07 -
Batch remux subtitles
By Tylerr in forum SubtitleReplies: 3Last Post: 10th Feb 2015, 10:51 -
batch script that remux multiple movies and subtitles together to mkv file
By galiber12 in forum SubtitleReplies: 2Last Post: 16th Jan 2015, 16:38