You can convert MKV to MP4 without losing quality when the video inside is H.264 or H.265 and the audio is AAC, AC-3 or MP3. You remux it: the streams are copied into an MP4 container unchanged, so a two-hour film takes seconds, not an hour. FFmpeg does it in one line and keeps every audio and subtitle track if you tell it to. VLC can do it too, with a couple of catches. The only things that force a re-encode are codecs MP4 players don't handle and subtitle formats MP4 can't hold.
This guide covers the lossless route in detail: FFmpeg and VLC recipes, what happens to each audio and subtitle track, and the cases where you have to convert part of the file. If you'd rather skip the command line, the MKV to MP4 converter does the same remux online and keeps every audio and text subtitle track. For the basic device-by-device walkthrough, see how to convert MKV to MP4.
What We Tested
Everything below was checked on real files, not taken from memory. The test file was a 10-second MKV built like a typical film rip:
- H.264 video
- Audio 1: English, AC-3 5.1 surround
- Audio 2: French, AAC
- Two SRT subtitle tracks (English, French)
- Two chapters
We used FFmpeg 8.0 and VLC 3.0.23, and the same file for the online converter.
Remux vs Re-encode
| Remux (stream copy) | Re-encode | |
|---|---|---|
| Quality | Identical to the MKV | A new lossy copy |
| Time | Seconds, even for a film | Minutes or more (depends on the machine) |
| File size | About the same | Depends on the settings |
| Keeps extra audio and subtitle tracks | Yes, if you map them | Depends on the tool |
| Works when | The codecs are allowed in MP4 and your player handles them | Always |
Our remuxed MP4 was 6.02 MB against the MKV's 6.01 MB. It had the same video, both audio tracks, both subtitle tracks and both chapters.
How to Convert MKV to MP4 With FFmpeg, Keeping Every Track
The command that keeps everything:
ffmpeg -i movie.mkv -map 0 -c copy -c:s mov_text movie.mp4
-map 0takes every stream from the input. Without it, FFmpeg picks only one video and one audio track-c copycopies video and audio without re-encoding-c:s mov_textconverts SRT subtitles to MP4's own text-subtitle format. That's a text-to-text change, so nothing is lost except styling
Why -map 0 matters. We also ran the "obvious" command, ffmpeg -i movie.mkv -c copy movie.mp4. It finished without complaint, but the MP4 had one audio track (FFmpeg chose the 5.1 English one, because it has the most channels) and no subtitles at all. The chapters came across. If you've ever remuxed a film and found the subtitles gone, this is why.
Pick Only Some Tracks
Keep the video, the French audio and the English subtitles, and drop the rest:
ffmpeg -i movie.mkv -map 0:v:0 -map 0:a:1 -map 0:s:0 -c copy -c:s mov_text movie.mp4
Tracks are counted from zero within each type: 0:a:0 is the first audio track, 0:a:1 the second, 0:s:0 the first subtitle track. Run ffprobe movie.mkv to see what's in the file and in what order.
To drop one track and keep everything else, use a negative map. -map 0 -map -0:a:1 removes the second audio track.
Check what you got. ffprobe -v error -show_entries stream=index,codec_name:stream_tags=language -of compact movie.mp4 lists every track in the result with its codec and language. It's the fastest way to confirm nothing went missing before you delete the MKV.
Choose Which Audio Track Plays First
Many players and TVs play the track flagged as default. Set it explicitly:
ffmpeg -i movie.mkv -map 0 -c copy -c:s mov_text -disposition:a:0 default -disposition:a:1 0 movie.mp4
The same works for subtitles. -disposition:s:0 default makes English subtitles appear automatically, and 0 turns the flag off.
How to Convert MKV to MP4 in VLC Without Re-encoding
VLC's converter re-encodes by default. To make it copy instead:
- Media → Convert / Save, click Add and choose the MKV, then Convert / Save
- Pick the profile Video - H.264 + MP3 (MP4) and click the wrench icon to edit it
- Encapsulation: MP4/MOV
- Video codec tab: tick Keep original video track
- Audio codec tab: tick Keep original audio track
- Save the profile, choose a destination ending in .mp4, and click Start
What VLC actually produced. We ran the same copy-to-MP4 job through VLC 3.0.23's stream output on our test file. The good news: the video and both audio tracks survived. The catches:
- The track order changed. French audio came first, then English, so a player that picks the first track plays French
- Every track was flagged as default, so the player has to guess
- The subtitles and chapters were dropped
For a quick single-language file, VLC is fine. For multi-language films, FFmpeg gives you control over order, defaults, subtitles and chapters. VLC, FFmpeg and HandBrake compared covers VLC's converter settings in more depth.
What Happens to Subtitles in MP4
MP4 can hold text subtitles, but only in its own format, and players support them unevenly. Here's how each MKV subtitle type fares:
| MKV subtitle type | Into MP4 losslessly? | What to do |
|---|---|---|
| SRT (SubRip) | Yes, as mov_text | -c:s mov_text |
| ASS / SSA (styled) | Text yes, styling no | Convert to mov_text and lose fonts and positions, or burn them in |
| PGS (Blu-ray image subtitles) | No | Burn in, or keep an MKV copy |
| VobSub (DVD image subtitles) | Poorly supported | Burn in, or OCR them to SRT with a subtitle tool |
Three ways to keep subtitles, from most to least flexible:
- Soft subtitles inside the MP4. Selectable and switchable. They work in VLC, most desktop players and Apple's players, but some TVs and apps ignore them
- A separate .srt next to the MP4. Extract it with
ffmpeg -i movie.mkv -map 0:s:0 movie.en.srt, and give it the same base name as the video. Media servers and most players pick it up automatically - Burned in. The text becomes part of the picture and shows everywhere, but it can't be turned off, and the video must be re-encoded:
ffmpeg -i movie.mkv -map 0:v:0 -map 0:a:0 -vf "subtitles=movie.mkv:si=0" -c:v libx264 -crf 20 -preset medium -c:a copy movie-subbed.mp4
si=0 picks the first subtitle track. The audio is still copied, so only the video is re-encoded.
What Happens to Audio Tracks
MP4 can hold several audio tracks. Whether you hear the right one depends on the player: phones and TVs often play the default track and hide the rest. Set the default as shown above.
Codec by codec:
| Audio in the MKV | Copies into MP4? | Plays widely? |
|---|---|---|
| AAC | Yes | Everywhere |
| AC-3 (Dolby Digital) | Yes | Most TVs and computers; some phones and browsers can't |
| E-AC-3 | Yes | Most TVs, Apple devices |
| MP3 | Yes | Everywhere |
| DTS, TrueHD | Technically, but players often refuse | Convert that track |
| FLAC, Opus | Technically, but support is patchy | Convert that track |
Convert only the audio, keep the video untouched:
ffmpeg -i movie.mkv -map 0 -c copy -c:a aac -b:a 384k -c:s mov_text movie.mp4
The video is still copied bit for bit. Only the audio tracks become AAC. 384 kbps suits 5.1 audio; for stereo, 192 kbps is plenty.
When a Remux Isn't Enough
H.265 (HEVC) video that Apple devices won't play. The remux works, but QuickTime and iPhones want the stream labelled hvc1, and FFmpeg writes hev1 by default. We checked both. Add -tag:v hvc1 and the same file is accepted:
ffmpeg -i movie.mkv -map 0 -c copy -c:s mov_text -tag:v hvc1 movie.mp4
VP9, AV1 or old MPEG-4 ASP (Xvid) video. These can technically sit inside MP4, but many devices won't decode them, so a re-encode to H.264 is the practical fix. The H.264 vs H.265 vs AV1 comparison explains which target plays where. Browser recordings are the common VP9 case, and WebM explained covers those.
The device only plays H.264 at 1080p. A 4K HEVC file needs a real re-encode. Remuxing can't change resolution or codec.
What the Online MKV to MP4 Converter Keeps
The MKV to MP4 converter remuxes too: video and audio that MP4 players handle are copied, and only the rest is re-encoded. With Maximum compatibility (H.264) on, it re-encodes H.265 and AV1 to standard H.264 for devices that can't play them. We ran the same test MKV through it, with H.264 video, an English 5.1 AC-3 track, a French AAC track, two SRT subtitle tracks and two chapters (6.01 MB MKV → 6.02 MB MP4):
- Video: copied, the same stream bit for bit
- Audio: both tracks, copied, the 5.1 one still 6 channels
- Subtitles: both, as MP4 text subtitles
- Chapters: kept
VP9 and professional H.264 variants are re-encoded to standard H.264, and DTS, Vorbis or FLAC audio to AAC. Image subtitles (PGS, VobSub) can't go into MP4 and are left out with a notice. For those, and for files over the upload limit, use the FFmpeg commands above. It's free without an account, 100 MB per file, with a daily limit on conversions, and files are sent over HTTPS as described in the privacy policy.
Converting MP4 Back to MKV Without Losing Quality
The reverse is also a remux, with two gotchas: MKV can't store MP4's mov_text subtitles, and FFmpeg can't copy the MP4 chapter text track as a stream. Map the real tracks explicitly and convert the subtitles back to SRT:
ffmpeg -i movie.mp4 -map 0:v -map 0:a -map 0:s -c copy -c:s srt movie.mkv
On our test file the MKV came back with both audio tracks, both subtitle tracks and both chapters. The plain -map 0 -c copy version failed with a "codec not supported" error. For a quick online version without extra tracks, there's MP4 to MKV.
Troubleshooting
The MP4 has no subtitles. You didn't map them (-map 0), or you didn't convert them (-c:s mov_text), or they're PGS images, which MP4 can't take.
The wrong language plays. Set -disposition on the audio tracks, or pick tracks explicitly with -map.
No sound on the TV or phone. The track is DTS, TrueHD or AC-3 on a device that can't decode it. Convert just the audio to AAC.
"Could not find tag for codec" or a similar error. One of the streams isn't allowed in MP4, typically a PGS subtitle track or an attachment such as a font. Leave it out with a negative map, for example -map 0 -map -0:s:2, or drop all subtitles with -sn.
The file won't open on an iPhone even though it's H.265. Add -tag:v hvc1.
Seeking is slow when the file is streamed. Add -movflags +faststart. It moves the index to the start of the file, and it's still a remux.
Summary
To convert MKV to MP4 without losing quality, remux with ffmpeg -i movie.mkv -map 0 -c copy -c:s mov_text movie.mp4. It keeps every audio and subtitle track, changes nothing in the picture, and finishes in seconds. Re-encode only what MP4 players can't handle, whether that's image subtitles, DTS audio or VP9 video. The MKV to MP4 converter does the same online: it copies what MP4 can hold and re-encodes only the rest. Still deciding whether to convert at all? MKV vs MP4 weighs up the two containers.
Related Tools
- MKV to MP4 converter: copies the streams MP4 can hold, re-encodes the rest
- MP4 to MKV: back to Matroska
- MKV converter hub: every MKV conversion in one place
- Compress Video: shrink a large MP4 after remuxing
- Video to MP3: pull out just the soundtrack