Or you can convert all files to raw video\audio with ffmpeg (there is manual in faq), then join them in one video and audio raw file and finally encode all data in one mkv file. But using mkv-tools will be faster for such task.