A video that will not play in one app often plays fine in another once it sits in a different file format. You rarely need a slow re-encode for that.
ffmpeg -i movie.mkv -c copy movie.mp4
-c copy copies the audio and video streams as they are into a new container. It finishes in seconds, uses almost no CPU and loses no quality, because nothing gets decoded.
Caveat: not every stream fits in every container. If ffmpeg complains that a codec is not supported in MP4, that stream has to be converted, or you keep the MKV. Text subtitles from an MKV usually need -c:s mov_text for MP4.
Further reading: ffmpeg documentation