Hello All,
The default audio track is the English one, I want to change it to Japanese and removing the English track.
Also i want to add the Arabic subtitle files i already have.
Is there anyway to do this to all the videos at once since it's very very hard to do it manually for every file.
Thanks and appreciated in advance
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
If the order of the audio tracks on all you videos does NOT change:
e.g.
1. en
2. ja
3. es
4. etc
Then a batch file can be written one way.
If the order DOES change then there is the need to find the --track-order.
Also i want to add the Arabic subtitle files i already have.
Are they always the same format?
Cheers. -
-
Hi.
Output goes in the sub-folder New\
Your path to mkvmerge.exe may be different.
Code:@echo off if not exist New\ md New for %%a in ("*.mkv") do "C:\Program Files\MKVToolNix\mkvmerge.exe" --output "New\%%a" --audio-tracks 2 --language 0:und --language 2:fr --track-name 2:Commentary "%%a" --sub-charset 0:ISO-8859-6 --language 0:ar "%%~na.ass" --track-order 0:0,0:2,1:0 pause
Your .ass subs may have a different sub-charset within the file.
Cheers.Last edited by pcspeak; 25th Feb 2022 at 13:49. Reason: underscore instead of a hyphen in 'ISO-8859-6'
-
I made a couple of assumptions.
1. You're working with MKV files.
2. You knew to have matching video and subtitle file names.
e.g.
My Great Video.mkv
My Great Video.ass
So, I changed my batch file to do checking.
Code:@echo off if not exist New\ md New for %%a in ("*.mkv") do if not exist "%%~na.ass" ( echo "%%a" - Matching "%%~na.ass" not found &pause ) else ( "C:\Program Files\MKVToolNix\mkvmerge.exe" --output "New\%%a" --audio-tracks 2 --language 0:und --language 2:fr --track-name 2:Commentary "%%a" --sub-charset 0:ISO-8859-15 --language 0:ar "%%~na.ass" --track-order 0:0,0:2,1:0 ) echo Press any key to Exit. &pause>nul
Cheers
Similar Threads
-
Removing Audio Track & Adding Subtitle for Multiple Files at Once
By MohamedYousri in forum EditingReplies: 1Last Post: 20th Feb 2022, 18:47 -
Removing subtitle tracks from video files?
By Sephiroth666 in forum EditingReplies: 20Last Post: 20th Jun 2021, 16:56 -
Batch adding AAC audio track to MKV
By Binnus in forum EditingReplies: 39Last Post: 2nd Feb 2020, 23:16 -
Removing subtitle from mp4 files with MP4BOX
By amaipaipai in forum SubtitleReplies: 0Last Post: 9th Sep 2018, 12:35 -
MKVtoolnix : adding an audio track results in warnings and corrupted audio
By Jose Hidalgo in forum EditingReplies: 10Last Post: 9th Mar 2018, 11:48