Right now I need to open each .mkv, then select subtitle, set "Forced display" flag > Yes.
That works fine.
Is there a way to do this for a number of .mkv's, so I do not need to open them one by one?
So, I have, let's say a dozen of .mkv's in the same folder.
Thanks!
+ Reply to Thread
Results 1 to 11 of 11
-
-
Is jMkvpropedit of any use?
https://forum.doom9.org/showthread.php?t=163753 -
Thanks. Frankly, I was hoping for an 'easy' way for non-experts. Some sort of settings within MKVToolnix.
Anyway, right now I went on to process each file separately.
So, start mkvtoolnixgui, add source file, select language set forced display = Yes - start multiplexing, exit, start mkvtoolnixgui.exe and so on.
Thanks again. -
Well you don't give enough info.
But assuming each file has 3 tracks: A video, a audio and a subtitle track a batch job could look like:
Code:if not exist forced md forced for %%g in (*.mkv) do ( mkvmerge -o "forced\%%g" --forced-display-flag 2:yes "%%g" --track-order 0:0,1:0,2:0 )
-
Thank you. I wish I could add all files from an entire folder, then set the Forced Display flat then run.
Regretfully Mkvtoolnix creates 1 big file, instead of all separate files. Haven't found a way to have MKVToolnix create separate files, named after the source file.
(i.e. similar to when I create a job 1-by-1)
see attachment -
Perhaps try on output tab to "Split before chapters" together with "One chapter for each appended file"
[Attachment 66607 - Click to enlarge]Last edited by videobruger; 5th Sep 2022 at 01:46. Reason: Typo
-
Maybe I'm missing something, but I don't think any remuxing is necessary. OP's goal requires no more than setting a header boolean.
Drag & drop your mkv onto MKVToolNix's Header editor. Expand the target subtitle track. In the list, select "Forced display" flag. In the settings window on the right, check "Add element" and set value to "Yes". Type Ctrl+S to save. Done. No remuxing needed.
[Attachment 66609 - Click to enlarge] -
Maybe my small batch file called ForceSubs.cmd
Save the following as ForceSubs.cmd and run it from the folder containing your MKV files.
Output in the New\ folder.
Your path to mkvmerge.exe may be different.
Code:if not exist New\ md New for %%a in (*.mkv) do ( "C:\Program Files\MKVToolNix\mkvmerge.exe" --output "New\%%a" --forced-display-flag 0:no --forced-display-flag 1:no --compression 1:none --sub-charset 2:UTF-8 --language 2:en --forced-display-flag 2:yes "%%a" --track-order 0:0,0:1,0:2 )
Similar Threads
-
What does "<span>" mean in .srt subtitle files?
By EmmB in forum SubtitleReplies: 9Last Post: 24th Mar 2022, 15:14 -
MKVToolNix - "crop" "zoom" 4:3 letterbox to 16:9
By basti3030 in forum Newbie / General discussionsReplies: 7Last Post: 27th May 2020, 10:48 -
Windows 10 "Set Affinity": how to force a program to use ALL processors?
By marcorocchini in forum Newbie / General discussionsReplies: 4Last Post: 9th Feb 2019, 14:02 -
Request MKVToolNix GUI popup "adding or appending files" dialog explanation
By JBC in forum EditingReplies: 1Last Post: 6th Jan 2018, 14:43 -
Windows 10 "cast to device" and MKV files
By davexnet in forum Software PlayingReplies: 8Last Post: 12th Oct 2017, 15:20