Here’s a simple ffmpeg command to convert from mk4 to mp4 videos.

ffmpeg -i coffee.mkv -codec copy coffee.mp4

It works on other formats as well such as mov, wmv, avi, mkv, webm to name just a few.