VideoHelp Forum

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

    i am completely new to this.

    I have got 200+ season of series of which i want to merge the SRT with the MKV

    Can anybody help me on this?

    I want to merge all MKV files (also setting the language to English) with the SRT files (setting language to Dutch)

    Is there a simple way of merging these files season by season while making the proper language settings?

    Doing it episode by episode will take me ages since there are over 4500 episodes.
    I started out with creating 2 folders on my desktop (one called "to merge", the other "merged" thinking this maybe would prove easier

    Thanks guys!
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Please only post GUIDES in the guides section. I'm moving you to our general section.
    Quote Quote  
  3. Hi,

    I had the same problem as yourself and put together the below PowerShell Script to achieve the batch muxing of subtitles.

    #Batch Merge Subtitles with MKVMerge - Iain McCain

    #Set MKVMerge.exe Path
    $MKVMerge = 'C:\Program Files\MKVToolNix\mkvmerge.exe'
    #Set Target
    $Directory = "Z:\Films\"
    #Set Subtitle Extension
    $SubExtension = 'eng.srt'

    #Process
    $Subs = Get-ChildItem $Directory -Filter "*.$SubExtension" -Recurse | % { $_.FullName } | Sort-Object
    $Count = $Subs.count
    Write-Host "$Count MKV's to be processed."

    Foreach ($Sub in $Subs)
    {
    #Get File Name
    $FormatName = $Sub.ToString()
    $Name = $FormatName.TrimEnd(".$SubExtension")
    $MKV = $Name + '.mkv'

    #Set Output File Name
    $Output = $Name + '___MERGED' + '.mkv'

    #Execute
    & $MKVMerge -o "$Output" --default-track "0" --language "0:eng" "$Sub" "$MKV"

    #Clean Up
    Remove-Item $MKV
    Remove-Item $Sub
    Rename-Item $Output -NewName $MKV
    }
    Last edited by IainMc; 26th Jun 2016 at 03:37.
    Quote Quote  



Similar Threads