Hello. I have a folder with MP4, MKV, and AVI files (and probably other formats in the future), with some of them accompanied by subtitles with the same file names but different formats (SRT, SUB/IDX, etc.). For example,
A.mp4
A.srt
B.mkv
B.srt
C.avi
C.sub
C.idx
D.mp4
D.1.srt
D.2.srt
E.avi
E.sub
E.idx
E.srt
F.mkv
(no subtitles)
G.mp4
(no subtitles)
and so on.
Currently, I'm using the ff. command in a batch file:
FOR %%A IN (*.mp4) DO "D:\Program Files\MKVToolNix\mkvmerge.exe" -o "%%~nA.mkv" "%%~A" "%%~nA.srt"
For non-MP4s and SUB/IDX subtitles, I have to merge manually using the GUI.
Is it possible to make a batch file that will automatically merge any videos to any subtitles that have the same file name to MKV?
+ Reply to Thread
Results 1 to 3 of 3
-
-
I think this one works:
https://github.com/Serede/mkvtoolnix-batch -
I forgot to add the ff.
Copying the conversion line and replacing ".mkv" with other extensions (like ".mp4") will allow the program to merge videos of other formats as well.
Similar Threads
-
Batch header edit with MKVToolNix GUI?
By everapt in forum Newbie / General discussionsReplies: 1Last Post: 23rd Mar 2018, 11:07 -
Is there a merge bug in MKVToolNix version 20?
By Djard in forum Newbie / General discussionsReplies: 12Last Post: 23rd Jan 2018, 01:05 -
Mkvtoolnix Batch Remove Audio OSX
By neostylez in forum Newbie / General discussionsReplies: 13Last Post: 27th Dec 2016, 08:42 -
Batch merge subtitles
By Shaorin in forum Newbie / General discussionsReplies: 1Last Post: 23rd May 2016, 08:03 -
Cant merge mkv video and audio with mkvtoolnix?? any ideas?
By kjy in forum Newbie / General discussionsReplies: 5Last Post: 6th Jan 2016, 11:37