VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. hello,

    so i have a lot of movies on my pc and they are orgenized by folders [my movies/(moviename)/moviefile and subtitlefile]
    and i would like to remux the subtitles to the movie.
    i know how to do it file by file but i need it for multiple movie files.

    can someone help
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    See https://forum.videohelp.com/threads/368801-Help-with-Mkvmerge

    Are your subtitle file and movie file named same? Like moviename.mkv and moviename.srt.
    Quote Quote  
  3. Click image for larger version

Name:	Untitled.png
Views:	174
Size:	74.0 KB
ID:	29778Click image for larger version

Name:	Unt2itled.png
Views:	435
Size:	10.7 KB
ID:	29779

    yes. can you please create a script so it will merge the movie file and the subtitle file, and if there is no subtitle file just ignore

    Can i tell the mkvmerge which language it is?

    I found this to remove any subs before i merge the files and it did the job great

    Code:
    @echo off
    cls
    set rootfolder="D:\My Videos\My Movies"
    echo Enumerating all MKVs under %rootfolder% and its subfolders.
    echo.
    for /r %rootfolder% %%a in (*.mkv) do (
        for /f %%b in ('mkvmerge -i "%%a" ^| find /c /i "subtitles"') do (
            if [%%b]==[0] (
                echo "%%a" has no subtitles
            ) else (
                echo.
                echo "%%a" has subtitles
                mkvmerge -q -o "%%~dpna (No Subs)%%~xa" -S "%%a"
                if errorlevel 1 (
                    echo Warnings/errors generated during remuxing, original file not deleted
                ) else (
                    del /f "%%a"
                    echo Successfully remuxed to "%%~dpna (No Subs)%%~xa", original file deleted
                )
                echo.
            )
        )
    )
    Last edited by galiber12; 16th Jan 2015 at 17:25.
    Quote Quote