VideoHelp Forum
+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. 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!
    Quote Quote  
  2. For good order's sake, they shouldn't be merged into 1 single file.
    Quote Quote  
  3. Member Ennio's Avatar
    Join Date
    May 2005
    Location
    Netherlands
    Search Comp PM
    Quote Quote  
  4. 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.
    Quote Quote  
  5. 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
    )
    Quote Quote  
  6. 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
    Image Attached Thumbnails Click image for larger version

Name:	MKVToolnixGUI-a-05092022 071033.png
Views:	219
Size:	158.8 KB
ID:	66605  

    Click image for larger version

Name:	MKVToolnixGUII-b-05092022 071100.png
Views:	159
Size:	157.0 KB
ID:	66606  

    Quote Quote  
  7. Perhaps try on output tab to "Split before chapters" together with "One chapter for each appended file"

    Image
    [Attachment 66607 - Click to enlarge]
    Last edited by videobruger; 5th Sep 2022 at 02:46. Reason: Typo
    Quote Quote  
  8. Member Ennio's Avatar
    Join Date
    May 2005
    Location
    Netherlands
    Search Comp PM
    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.

    Image
    [Attachment 66609 - Click to enlarge]
    Quote Quote  
  9. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by vhwul62 View Post
    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!
    try this here - https://www.reddit.com/r/mkvtoolnix/comments/ipikcj/mkvtoolnix_forced_subtitles/
    Quote Quote  
  10. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    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
    )
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!