When it comes to mkv and mp4, they are just containers for the actual video and audio data. What this means is that you do not need to re-encode which can take very long depending on the mkv size. If you simply convert mkv to mp4 container you maintain the same quality and it’s done within a few seconds to 1-2 minutes depending on mkv file size.
There can be a few reasons for converting mkv to mp4. The mp4 container has much more compatibility across different platforms. I have an old playstation 3 which does not support mkv files, so I simply convert them to mp4 using this script. This allows me to play all my files on my playstation without spending lots of time re-encoding.
Tested on ubuntu 16.04
1. Place your mkv files in the the input folder
2. Optional – place srt in the srt folder
3. Now execute the script in a terminal as follows:
4. Your mp4 converted files will be in the output folder