Bash script to batch-convert MKV to MP4 (Linux)

I have been looking a simple way to convert my *.mkv TV series collections to *.mp4 so I can watch it on my TV. Luckily, I stumbled upon a post in stackoverflow about it. So I took the code and modified it a bit so it can automatically find all *.mkv files in a directory…