Convert MKV to MP4 Without Re-encoding First

MKV to MP4 conversion often just changes the container, the file holding video and audio. Try FFmpeg's stream copy to move compatible tracks without re-encoding. Re-encode the video or audio if your app can't play it.

An OBS recording has a simpler built-in route through File > Remux Recordings. Both routes keep the original video quality when they copy streams. Renaming .mkv to .mp4 doesn't do that job.

Choose between copying and converting the tracks

An MKV can contain video, several audio tracks, subtitles, and attachments. MP4 is another container, with different limits. The extension tells you the container, while the codec tells you how a video or audio track was compressed.

A remux changes the container without recompressing the copied tracks. I'd start with a remux when the app accepts the video and audio codecs but rejects MKV files. That avoids encoding the video again.

Re-encoding changes the compressed video or sound. Use it when an MP4 copy is created but the target still shows a black picture, plays without sound, or refuses the video codec. A new extension alone can't solve those differences.

FFmpeg's stream-copy documentation explains the distinction. Copying works only when the output container can hold the selected streams; some MKV tracks can't be placed in MP4.

Screenshot of FFmpeg download options for packages and executable files

Copy the main video and audio with FFmpeg

Get FFmpeg through ffmpeg.org/download.html and follow the instructions for your operating system. Windows builds, macOS packages, and Linux packages have different setup routes. Once FFmpeg runs in your terminal, the commands are the same.

Open Terminal on macOS or a terminal window on Windows or Linux. Run ffmpeg -version to check that it starts. If the command isn't recognized, fix the installation or run the executable using its full path before trying to convert anything.

Put the video in the folder your terminal is using, or use the file's full path in the command. Replace the example filenames with your own. Quotation marks keep spaces in filenames from being treated as separate command arguments.

ffmpeg -i "input.mkv" -map 0:v:0 -map "0:a:0?" -c copy "output.mp4"

This chooses the first video track and, when present, the first audio track. -c copy copies them without re-encoding. The question mark makes the audio selection optional, so a silent recording doesn't fail just because it lacks audio.

Drawing of a terminal showing an FFmpeg MKV to MP4 stream-copy command

This command leaves out subtitles, attachments, and extra audio tracks. It gives you a simple video-and-audio MP4. Keep the MKV if it contains commentary, another language, or subtitles you still need.

For a different language track, replace the audio selector with 0:a:1 for the second audio track or 0:a:2 for the third. FFmpeg counts from zero. Listen to the result to check that it's the language you wanted before sending it.

On a shell that treats the question mark as a filename pattern, put that argument in quotes: -map '0:a:0?'. This is useful in macOS zsh, where an unquoted question mark can stop the command before FFmpeg even starts.

Use OBS's remux control for an OBS recording

Open OBS Studio and choose File > Remux Recordings. Use the file-picker button to select the MKV recording, check the destination, then click Remux. Wait for completion before opening the MP4.

Drawing of OBS Studio's Remux Recordings window with the file picker and Remux control

The OBS recording output guide describes this built-in conversion. If OBS is already installed and you have an MKV recording, this saves you from recording the same content again.

After remuxing, open the MP4 in the app or service that rejected your MKV. Check it there, since that's where you need the saved file to work.

For camera-only recordings, the webcam recording options can help choose a capture method before the next session. Changing how a future clip is recorded won't repair a damaged existing MKV.

Re-encode when the MP4 still won't play

If the copy command reports an unsupported codec for MP4, or the finished copy fails in the destination, try an H.264 video and AAC audio output. Check the destination's requirements too.

ffmpeg -i "input.mkv" -map 0:v:0 -map "0:a:0?" -c:v libx264 -pix_fmt yuv420p -c:a aac -movflags +faststart "compatible.mp4"

The command encodes the first video track with H.264 and the first available audio track with AAC. yuv420p is a widely supported pixel format. +faststart puts playback details first so playback can start before the download finishes.

Re-encoding takes more processing and can change quality and file size. If FFmpeg reports an unknown libx264 encoder, that build lacks the encoder used here. Switch to a build containing libx264 before blaming the source file.

For HDR or specialist footage, follow the destination's export settings. Don't rely on this basic command to preserve the original colors for an archive. Keep the source so a compatibility copy doesn't become your only version.

Check sound, duration, and the destination

Play the beginning, middle, and end of the MP4. Check lip sync, the last few seconds, and whether the selected language is the one you wanted. A completed conversion can still select a different audio track from the one you normally hear.

Test the file inside the actual upload service or editor. The PC-to-phone video transfer steps explain moving a finished movie; transferring the file and converting it are separate tasks.

For a Windows player that still rejects the output, follow its codec troubleshooting steps. If the source won't play either, keep FFmpeg's error text and ask the recording app's support about recovery before deleting anything.

The Short Version

Try a stream-copy remux first, or OBS's Remux Recordings for an OBS clip. Re-encode only when the destination needs different codecs, and check the finished MP4's picture, sound, and duration before discarding the MKV.

Checked December 6, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment