Is there a way to output the video to mkv format?
yes.
I do not see it in the options.
Create a custom render profile, substitute .mp4 for .mkv in custom render profile.
I do not see it in the options.