Hi,
I have many tv series which have subtitles or audio that I don't need and also I have srt files I need to merge it into these mkv files.
Now I have both script as batch but the issue is that after the first script completed I need to run the second script as well.
I was trying to combine both of these scripts into one but with no luck.
This one is to remove the subtitles from mkv
Code:FOR /F "delims=*" %%A IN ('dir /b *.MKV') DO "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "fixed_%%A" -s !1,2 --compression -1:none "%%A"
And this one for merging the srt files into mkv
Code:for %%A IN (*.mkv) do ( "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "remux-%%~nxA" "%%~A" --forced-track "0:yes" --default-track "0:yes" --track-name "0:Arabic" --language "0:ara" "%%~nA.srt" )
Could you please help me to combine them into one script that run both operation with one result ?
+ Reply to Thread
Results 1 to 4 of 4
-
-
Code:
for %%a in (*.mkv) do "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "remux-%%~na.mkv" --no-subtitles "%%~a" --forced-track "0:yes" --default-track "0:yes" --track-name "0:Arabic" --language "0:ara" "%%~na.srt"
-
.. you tried to apply 'call' to the second script:
Code:FOR /F "delims=*" %%A IN ('dir /b *.MKV') DO "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "fixed\fixed_%%A" -s !1,2 --compression -1:none "%%A" CALL remux.bat
責任者-MDX
Similar Threads
-
Anyone have a Batch Script for Combining Video with Subtitles?
By VideoFanatic in forum Video ConversionReplies: 7Last Post: 7th Jul 2020, 15:22 -
Batch combining jpg with audio
By prushnix in forum Video ConversionReplies: 17Last Post: 24th Mar 2020, 19:37 -
Combining PAL and NTSC video files
By frzn in forum Newbie / General discussionsReplies: 3Last Post: 20th Nov 2019, 13:06 -
Combining files with MKVToolnix
By koberulz in forum Newbie / General discussionsReplies: 8Last Post: 13th Mar 2019, 07:31 -
Batch combining multiple audio files with same picture to create mp4 files
By MD_89 in forum AudioReplies: 25Last Post: 1st Dec 2018, 22:29