MkvInjector is a tool for injecting resources like subtitles and audio to mkv files. Simple copy script to destination directory with mkv files, their resources and run. Resources should have the same name as target mkv container.
Based on ffmpeg command: ffmpeg -i input.mkv -i audio.dts -map 0 -map 1 -c copy output.mkv
TBD
To run in macOS install the python and ffmpeg. You can use a packager like Homebrew to find these packages.
brew install python ffmpeg
apt-get install ffmpeg
Copy script to destination directory, then run:
./mkvinjector.py