VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Hello,

    I have already searched on the internet for several hours, tried multiple solutions, but none of them worked, at least not for me
    So here's my problem:
    I have about a 100 mkv files "video-001.mkv", "video-002.mkv", etc. that I want to remux with their corresponding subtitles "video-001.ssa" etc.
    The naming scheme is the same and also the same with the subtitles. All the files are located in one folder.

    Is someone able to give me a solution, using batch code (or similiar methods)? As I don't want to do this for 100 files manually.


    mkvtoolnix is installed.

    Thanks in advance!
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Code:
    mkvmerge -o video-001-new.mkv video-001.mkv video-001.ssa
    And then in a batch file, create test.bat in windows explorer. Right click on it and choose edit.

    Type
    Code:
    FOR %%f IN (*.mkv) DO (
    mkvmerge -o c:\newfolder\%%~nf-new.mkv %%~nf.mkv %%~nf.ssa
    )
    (the %%~nf is the filename without extension)

    Put the test.bat and mkvmerge.exe in same folder as your mkv files.
    Create a new folder for you new mkv files, the c:\newfolder in this example. It should NOT be same as your current mkv/ssa files.
    Run the test.bat. You can try with a few mkv/ssa files first.
    Last edited by Baldrick; 13th Feb 2013 at 03:27.
    Quote Quote  
  3. Baldrick, thank you so much
    worked like a charm!

    //edit: maybe you can help me with another issue?
    https://forum.videohelp.com/threads/353339-%5BHELP%5D-Handbrake-multiple-mkv-to-mp4-wit...45#post2219845

    thanks again!
    Last edited by remuxler; 13th Feb 2013 at 04:58.
    Quote Quote  
  4. Member
    Join Date
    Jun 2013
    Location
    Old Europe
    Search Comp PM
    Originally Posted by Baldrick View Post
    Code:
    mkvmerge -o video-001-new.mkv video-001.mkv video-001.ssa
    And then in a batch file, create test.bat in windows explorer. Right click on it and choose edit.
    Type
    Code:
    FOR %%f IN (*.mkv) DO (
    mkvmerge -o c:\newfolder\%%~nf-new.mkv %%~nf.mkv %%~nf.ssa
    )
    (the %%~nf is the filename without extension)
    Put the test.bat and mkvmerge.exe in same folder as your mkv files.
    Create a new folder for you new mkv files, the c:\newfolder in this example. It should NOT be same as your current mkv/ssa files.
    Run the test.bat. You can try with a few mkv/ssa files first.
    Thx a million, that helped, now I can batch mux stuff into mkv in no time!
    Quote Quote  



Similar Threads

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