Convert MKV to MP4 on Mac (Remux or Re-encode)
Convert MKV to MP4 on a Mac with one ffmpeg command that copies the streams without quality loss, plus a re-encode for DTS audio and fixes for common errors.
GuideUpdated 7 min read
On this page
You have a .mkv file, QuickTime Player won't open it or an iPhone, editor or TV rejects it, and you want an MP4 that works. macOS has no built-in MKV converter, so you need a third-party tool. Which command you use depends on what is inside the file, not on the .mkv extension.
Why an MKV won't open and what "convert" really means
MKV (Matroska) is a container, a box that holds video, audio and subtitle streams. MP4 is a different box. The Matroska format is an open, standardized one (see RFC 9559), and it can hold almost any codec. MP4 is stricter, and QuickTime and Apple devices are stricter still.
That gives you two kinds of conversion:
- Remux. The streams are copied into a new MP4 container untouched. Quality is identical, the file is about the same size, and it finishes in seconds to a few minutes.
- Re-encode. One or more streams are decoded and compressed again. It is slower, lossy, and produces a new file you can make smaller.
Remuxing works when the codecs inside are ones MP4 and Apple players accept, typically H.264 or HEVC (H.265) video with AAC audio. When they aren't, you re-encode only the stream that is the problem.
Check what is inside the MKV
Install ffmpeg first (next section), then read the file's streams:
ffmpeg -hide_banner -i "movie.mkv"This only reads the file and prints its streams. It ends with a message that at least one output file must be specified; that is expected and nothing is changed. Look for lines like these:
Video: h264orVideo: hevc: fine for MP4.Audio: aac: fine for MP4.Audio: dtsorAudio: truehd: re-encode the audio.Subtitle: subrip,assorhdmv_pgs_subtitle: these often can't be copied into MP4, so the commands below drop them.
Remux MKV to MP4 with ffmpeg (no quality loss)
Use this when the video is H.264 or HEVC and the audio is AAC.
Install Homebrew if you don't have it. Follow the install instructions on Homebrew's website.
Open Terminal and install ffmpeg:
bash brew install ffmpegChange to the folder that holds the file, or use the full path. For example, if it is in Downloads:
bash cd ~/DownloadsRun the remux:
bash ffmpeg -i "movie.mkv" -c copy -sn "movie.mp4"
-c copy copies every selected stream without re-encoding. -sn leaves out subtitle tracks. By default ffmpeg picks one video and one audio stream, and it asks before overwriting an existing file.
To remove ffmpeg later, run brew uninstall ffmpeg.
Keep all audio tracks
If the MKV has several audio languages and you want them all, tell ffmpeg to map every video and audio stream:
ffmpeg -i "movie.mkv" -map 0:v -map 0:a -c copy -sn "movie.mp4"Make an HEVC file play in QuickTime
If the video is HEVC and the MP4 won't play in QuickTime, add the hvc1 tag, which Apple players expect:
ffmpeg -i "movie.mkv" -c copy -tag:v hvc1 -sn "movie.mp4"Convert only the audio when the audio is the problem
DTS and TrueHD audio are common in MKV files from discs. MP4 players and QuickTime may not play them, even if ffmpeg manages to write the file. Keep the video as is and convert the audio to AAC:
ffmpeg -i "movie.mkv" -c:v copy -c:a aac -b:a 192k -sn "movie.mp4"The picture stays identical. Only the audio is re-encoded, which is quick. MDN's audio codec guide lists AAC as supported in MP4, ADTS and 3GP containers, which is why AAC is the safe target.
Re-encode the video for odd codecs or a smaller file
Re-encode the video when it uses an older or unusual codec, or when you want the file smaller than the MKV.
For a software H.264 encode with good quality control:
ffmpeg -i "movie.mkv" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 160k -sn "movie.mp4"-crf sets quality. Lower numbers look better and give bigger files, higher numbers do the opposite. 23 is a reasonable start. If the result is still too big, raise the number a few points and run it again.
For a much faster encode on a Mac, ask ffmpeg to use the hardware encoder:
ffmpeg -i "movie.mkv" -c:v h264_videotoolbox -b:v 8M -c:a aac -b:a 160k -sn "movie.mp4"Hardware encoding uses a target bitrate (-b:v 8M means about 8 Mbit/s) and is usually faster but less efficient than libx264 at the same file size. Pick a bitrate in line with the source.
Use a GUI or just play the file
If you'd rather not use Terminal, HandBrake is a free video transcoder for Mac with a job queue. Its release notes list FFmpeg 8.0.1 for decoding, and as of November 2026 its documentation lists 1.11.0 to 1.11.2 as the current releases. It always re-encodes unless you pick pass-through for an audio track, and we haven't confirmed its container options from official pages, so check its documentation before relying on it for MKV to MP4.
You may also not need an MP4. VLC is a free, open-source player that plays most video and audio formats, with Apple silicon and Intel builds for Mac (version 3.0.24 on its official download page as of November 2026). If you only want to watch the file on your Mac, open the MKV in VLC. Convert when the file must work elsewhere: QuickTime, an iPhone, an editor or a TV that wants MP4.
| Method | Quality | Terminal needed | Pick it when |
|---|---|---|---|
ffmpeg remux (-c copy) | Identical | Yes | H.264 or HEVC video, AAC audio |
| ffmpeg, audio converted only | Identical video | Yes | Video fits MP4, audio doesn't |
| ffmpeg re-encode | Slightly lower | Yes | Odd codecs, or you need a smaller file |
| HandBrake | Depends on settings | No | You want buttons and a queue |
| VLC | Original file, unchanged | No | You only want to watch it |
Fix common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Subtitle codec not supported for MP4 | Image or styled subtitles can't go into MP4 | Add -sn to drop them |
| "Could not find tag for codec" | Audio or video format MP4 can't hold as is | Convert audio with -c:a aac, or re-encode the video |
| MP4 plays with no sound in QuickTime | DTS or TrueHD audio was copied | Re-run with -c:a aac |
| HEVC MP4 won't play in QuickTime | Wrong codec tag | Add -tag:v hvc1 |
command not found: ffmpeg | Homebrew's folder isn't on your path | Follow the "Next steps" the Homebrew installer printed, then open a new Terminal window |
| Only one audio language | ffmpeg picks one audio stream by default | Add -map 0:v -map 0:a |
| File is far too big | A remux keeps the MKV's size | Re-encode with a higher -crf |
Checklist before you try again
- The command ends in
.mp4, and the input name is in quotes if it has spaces. - You ran the
ffmpeg -icheck and know the video and audio codecs. -snis in the command if subtitles caused an error.- Audio is DTS or TrueHD? You used
-c:a aac. - HEVC video that won't play in QuickTime? You added
-tag:v hvc1. - You are testing the MP4 in the player that failed, not only in VLC (VLC plays files other players reject).
If nothing works
ffmpeg is community software, so there is no vendor support line. The ffmpeg project's own documentation and the Homebrew issue tracker are the right places for install problems. Before asking anyone, collect the full Terminal output (not just the last line), the output of ffmpeg -hide_banner -i "movie.mkv", your macOS version and the exact command you ran. A short message might read:
Converting MKV to MP4 on macOS fails with this ffmpeg command:
ffmpeg -i "movie.mkv" -c copy -sn "movie.mp4"
Full output is below. Stream info from ffmpeg -i: video hevc, audio dts.
macOS version: <your version>. ffmpeg installed with Homebrew.
What I already tried: -c:a aac, -tag:v hvc1.If the source is a ripped disc with copy protection or a damaged download, no conversion setting will fix it. Re-download or re-rip the original first.
After you have an MP4
If the MP4 is too large to send, our guide on how to compress a video on Mac covers the options. Our app Gizmojar can also compress MP4 and MOV files to a quality level or under a size you set; see compress video, images, PDFs and audio.
Common questions
Is converting MKV to MP4 lossless?
A remux with -c copy is lossless because the data is copied as is. Any re-encode is lossy, though a low CRF value keeps the difference hard to see.
Why does the converted MP4 have no sound?
Usually the MKV's audio was DTS or TrueHD, and the player can't decode it inside an MP4. Re-run with -c:v copy -c:a aac to keep the video and convert the audio.
Can I keep subtitles?
Text subtitles can sometimes be converted to a format MP4 accepts, but image-based ones (from discs) can't be copied. Burning subtitles into the picture needs a full re-encode with a subtitles filter. Alternatively, keep the MKV and watch it in VLC.
Does the conversion change my original MKV?
No. ffmpeg writes a new file and leaves the MKV untouched.