Streaming software, tested with real files

OBS MKV to MP4: remux the recording, do not convert it

Updated Tested November 30, 20265 test files, 16 ffmpeg runs, 2 tool runs plus 2 PCM attemptsFree tool, nothing uploaded

Monitor with a red record dot, video player cards and green arrows, beside the title OBS MKV to MP4: Remux the recording

Short answer

Remux, do not re-encode: the MP4 gets the same picture and sound, and it takes about as long as copying the file once (our 30-second test file: under a second). In OBS, open File, Remux Recordings, pick the MKV and press Remux. Without OBS, the free MKV to MP4 tool does it in your browser for files up to 100 MiB; checksums of the video and both audio tracks matched. With ffmpeg, add -map 0, or the second audio track disappears. Keep recording to MKV or Hybrid MP4/MOV, not plain MP4: after a killed recording the MKV gave 10.9 seconds of video, while ffmpeg could not open the plain MP4.

MKV to MP4 converter (remux)

Key takeaways

  • Remuxing copies the video and audio into a new container. Our two-track file went from 15,145,120 to 15,160,541 bytes, and checksums of the video and both audio tracks matched the original.
  • Plain ffmpeg -c copy kept 2 of 3 streams: one video, one audio. Adding -map 0 kept all 3, and so did our browser tool when its copy step worked. OBS's own remux copies every stream, according to its source code.
  • Remuxing took 0.66 seconds; re-encoding the same file took 19.70 seconds and changes the picture.
  • HEVC recordings: plain ffmpeg tags the video hev1. Add -tag:v hvc1, the tag OBS's own remux uses "for wider device compatibility". H.264 and AV1 files need no tag.
  • PCM audio copies into MP4 with ffmpeg 6.1, but OBS warns it is "not supported in all applications". Converting just the audio to AAC (compressed, 192 kb/s) took 2.83 seconds and left the video untouched.

Remux in OBS from the File menu

OBS has the fix built in, so start there. The OBS knowledge base describes it in one line: File, then Remux Recordings, then the button with three dots to choose the files. "After that hit the Remux button and OBS will convert your videos for you". It is a container swap, not a new encode, so a one-hour recording does not take an hour.

  • Open OBS and choose File, Remux Recordings.
  • Click the button with three dots and pick one or more MKV files. The target fills in by itself: same folder, same name, .mp4.
  • Press Remux and wait for the message that it finished. The MKV stays where it was.
  • Want this every time? Settings, Advanced, Recording has a checkbox called Automatically remux to mp4. The knowledge base: "If selected OBS will remux your video as soon as you stop recording".

Two details from the OBS source code (version 33.0.3) that explain odd file names. If the file you pick is already an MP4 or MOV, the new file is called name.remuxed.mp4 (or name.remuxed.mov for a MOV) so the original is not overwritten. Automatic remux of a ProRes recording writes a .mov, because ProRes does not belong in MP4, and a fragmented MP4 or MOV recording keeps its own extension (name.remuxed.mp4 or .mov). Recordings made with the Advanced output type Custom Output (FFmpeg) are not remuxed automatically; use File, Remux Recordings for those.

OBS copies every stream in the file, so all your audio tracks come along. Your player may still play only the first one. As OBS puts it: "Most video players will only play a single track a time".

Remux in the browser when OBS is not on this computer

Got the file from a friend, or on a laptop without OBS? The free MKV to MP4 tool runs FFmpeg inside your browser, so the file never leaves your computer. For an MKV it first tries the same stream copy, video and every audio track, and the page labels it Remux (container swap).

We ran the live tool twice on our test file: 1080p H.264 with two AAC tracks named Desktop and Mic, 15.1 MB. Each run started a fresh browser and was timed from picking the file to the Download button, so the time includes loading the converter engine (about 30 MB) over our server's fast connection. It finished in 2.9 and 2.8 seconds and returned a 15,160,549-byte MP4 with one video and two audio streams. Checksums of the video and of each audio track matched the MKV. That is the result you want: nothing re-encoded, nothing dropped.

The tool takes files up to 100 MiB (104,857,600 bytes, about 104.9 MB). A long OBS recording is usually bigger, so use OBS or ffmpeg for those. On a home connection the first file of a visit also waits for the engine download. If a stream cannot be copied into MP4, the tool falls back to a full re-encode, which takes minutes rather than seconds: our PCM test file showed 30% after 120 seconds. That fallback, according to the tool's code, does not pick streams, so FFmpeg keeps one audio track: an OBS recording with two PCM tracks would lose the second one. For PCM, use OBS's remux or the ffmpeg line in the PCM section below instead.

Free tool:Remux an MKV to MP4 in your browser

Koldflux MKV to MP4 tool with obs-h264-2trk.mkv loaded and converted, showing Download MP4 and the remux note.
The MKV to MP4 tool after remuxing our two-track test file in 2.8 seconds (screenshot November 30, 2026).

Remux with ffmpeg and keep every audio track

ffmpeg is the tool for big files and whole folders. The one flag people leave out is -map 0. Without it, ffmpeg picks streams for you, and the FFmpeg manual says how: "For each acceptable stream type, ffmpeg will pick one stream". One video, one audio. If you recorded your game on track 1 and your microphone on track 2, the microphone is gone.

One 30-second, two-track MKV, four ways
MethodStreams out of 3TimeVideo and audio identical?
ffmpeg -c copy2 (second audio track dropped)0.50 syes, for what is left
ffmpeg -map 0 -c copy30.66 syes
Koldflux MKV to MP4 tool32.8 to 2.9 s, including the engine download on a fast server linkyes
Re-encode (libx264, CRF 21)319.70 sno, the picture is encoded again

Ffmpeg 6.1.1.

Re-encoding is what most converter apps do. It takes about 30 times longer on our file, and every encode loses a little detail. For an MKV from OBS there is rarely a reason to do it.

If ffmpeg stops with "codec not currently supported in container", the MKV holds a stream MP4 cannot take, usually a subtitle track in a file that did not come from OBS. -map 0 then makes the whole command fail (exit 234 on our test file with an SRT track), and the folder loop skips that file. Then keep only the video and every audio track with the third command above, which also worked on our ordinary two-track file.

ffmpeg -i recording.mkv -map 0 -c copy -movflags +faststart recording.mp4
On our file: 0.66 seconds, 3 of 3 streams kept, video and audio checksums identical. The same line without -map 0 ran in 0.50 seconds and kept 2 of 3 streams. -movflags +faststart moves the index to the front so the file starts playing before it fully downloads. A missing file stops with exit 254, an empty one with exit 183. AV1 recordings copy the same way (tag av01).
for f in *.mkv; do ffmpeg -n -i "$f" -map 0 -c copy -movflags +faststart "${f%.mkv}.mp4"; done
A whole folder on macOS or Linux (Terminal, inside the recordings folder). It worked on names with spaces and accents, such as Stream 2026-11-30 21-04.mkv and café night.mkv. -n refuses to overwrite: a second run left the three MP4 files alone. In a folder without MKV files bash prints an error for *.mkv and changes nothing; zsh, the macOS default, stops with "no matches found: *.mkv". Files ending in uppercase .MKV are skipped; rename them or run the single-file line. On Windows, run the single-file line once per file.
ffmpeg -i recording.mkv -map 0:v -map 0:a -c copy -movflags +faststart recording.mp4
Only for files that also carry subtitles or other streams MP4 cannot take: video and every audio track, nothing else. On our MKV with an SRT subtitle track it kept the video and both audio tracks and exited with 0; a missing file stops with exit 254.

HEVC recordings need one extra flag

If you record with an HEVC (H.265) encoder, ffmpeg copies the video fine but labels it with the hev1 tag. OBS's remux code does something different on purpose: "Tag HEVC files with industry standard HVC1 tag for wider device compatibility". Do the same by hand:

Not sure which codec you recorded? Run ffprobe recording.mkv and look at the Video line: h264 or av1 needs no tag, hevc does. On H.264 and on AV1, ffmpeg stops with the same "Tag hvc1 incompatible" error (exit 183). The encoder name in the OBS output settings tells you too: x264, H.264 or AV1 means no tag, HEVC or H.265 means add it.

ffmpeg -i hevc.mkv -map 0 -c copy -tag:v hvc1 -movflags +faststart hevc.mp4
Our HEVC file came out tagged hvc1 instead of hev1, with the same video checksum, so only the label changed. Do not add the flag to H.264 files: ffmpeg stops with "Tag hvc1 incompatible with output codec id" and exit 183.

PCM audio: copy it, or play it safe with AAC

OBS can record uncompressed PCM audio. Whether that survives the move to MP4 depends on the software. ffmpeg 6.1 copied both our PCM files without complaint, 16-bit as ipcm and 32-bit float as fpcm, the newer MP4 PCM tags. The OBS knowledge base is careful about exactly this: "PCM in MP4 is a relatively recent addition to the standard, and not supported in all applications."

We did not open these files in any editor, so we cannot tell you which apps read them. If yours refuses the file, keep the video as it is and turn only the audio into AAC. The sound becomes compressed AAC at 192 kb/s instead of uncompressed PCM, so keep the MKV if you need the original audio:

ffmpeg -i pcm.mkv -map 0 -c:v copy -c:a aac -b:a 192k -movflags +faststart pcm.mp4
2.83 seconds on our 30-second file. The video checksum matched the MKV; only the audio was encoded. With two PCM tracks, both came out as AAC tracks. A MOV container takes PCM the old way (our copy came out as sowt), and the OBS knowledge base says Hybrid MOV may provide better compatibility for PCM.

Why OBS records MKV first, and what Hybrid MP4 changes

A plain MP4 writes its index, the moov atom, at the very end. If OBS crashes, the power goes, or the disk fills up, that index never gets written. OBS's recording guide says MKV "will not corrupt the whole file if there is no graceful stoppage of recording". We checked what that means in seconds.

We recorded the same clip into three containers and killed the recorder with kill -9 after 12 seconds. The MKV remuxed to 10.9 seconds of video. A fragmented MP4 gave 9.1 seconds. In our test ffmpeg could not open the plain MP4 at all: it reported "moov atom not found" and exited with 183. Cutting finished files at 70% of their bytes gave the same picture: 19.6 seconds, 19.1 seconds and nothing. The fragmented MP4 kept less sound than picture: 8.0 seconds of audio after the kill and 18.0 after the cut, while the MKV kept slightly more sound than video. As a control, the same clip recorded to the three containers without interruption opened at full length (30 seconds).

Newer OBS versions add a third option. Hybrid MP4 and Hybrid MOV were "introduced in OBS 30.2 (Hybrid MP4) and OBS 32.0 (Hybrid MOV)", and the knowledge base says such a file "remains recoverable even if writing the file is aborted". In the OBS 33.0.3 source code, new profiles default to Hybrid MOV on macOS and Hybrid MP4 elsewhere. So if you set up OBS recently and see .mp4 files, you may not need to remux at all. Older profiles keep whatever format they had. That may be MKV, or fragmented MP4/MOV, which the OBS blog says was briefly the default before Hybrid MP4; which one you have depends on how the profile was set up.

One catch for Hybrid files: chapter markers are written at the end, and OBS notes they are "not recoverable in the event of a crash". Our fragmented MP4 is the older cousin, not OBS's Hybrid format, so read its bar as a rough idea only.

Bar chart of seconds of video: after a cut-off recording, MKV kept 10.9 and 19.6 s, fragmented MP4 9.1 and 19.1 s, plain MP4 0 s in both tests.
Seconds of video (the video stream; audio lengths are in test-results.txt) that still remuxed after the recorder was killed at 12 seconds (blue) or a finished file was cut at 70% (orange). Drawn by chart.py from the test files.

The limits of what we tested

These numbers come from one 30-second clip on November 30, 2026. Here is what that leaves open.

  • The MKV files were built with ffmpeg 6.1.1 to match OBS settings (2-second keyframes, H.264 or HEVC, AAC, PCM or Opus audio, two named tracks). OBS itself was not run, and its remux uses its own copy of FFmpeg.
  • Hybrid MP4 and Hybrid MOV files were not tested. The crash test used a fragmented MP4 as a stand-in, and a kill -9 on Linux, not a real power cut on Windows or macOS.
  • No editor, phone, browser player or upload form opened the outputs. Matching checksums mean the video and audio data are the same as in the MKV, not that every app will play the file.
  • The browser tool was timed on a server running headless Chromium, including the engine download over a data-centre connection. A laptop on home internet may be slower. Files over 100 MiB were not tried, and the tool's PCM fallback was not run to the end.
  • Opus audio copied into MP4 with ffmpeg (tag Opus); support for Opus in MP4 varies by app, which we did not check.

Do it in your browser

Free Koldflux tool, no account needed.

MKV to MP4 converter (remux)

Questions people ask

Does remuxing MKV to MP4 lose quality?

No. Remuxing copies the encoded video and audio into a new container. In our test, the MD5 checksums of the video and of both audio tracks matched before and after, and the file grew by 15,421 bytes, about 0.1%, which we read as the difference in container overhead.

Why is my mic missing after converting OBS MKV to MP4?

Most likely the converter kept only the first audio track. Plain ffmpeg -c copy kept 1 of our 2 audio tracks. Use -map 0 or the MKV to MP4 tool, which kept both on our AAC file; OBS's File, Remux Recordings copies every track too. One exception for the tool: with PCM audio it re-encodes, and its code keeps only one audio track, so use OBS or the ffmpeg AAC line for multi-track PCM recordings. Also check your player: many play only the first track.

Can OBS record straight to MP4?

Yes. Recent OBS versions offer Hybrid MP4, which stays recoverable after a crash, and the 33.0.3 source code makes it the default for new profiles outside macOS (Hybrid MOV on macOS). Plain MP4 is the risky one: in our test, ffmpeg could not open a plain MP4 whose recording was killed (moov atom not found).

How long does it take to remux a one-hour recording?

We did not time an hour-long file. Remuxing reads and writes the file once without encoding, so it is bounded by disk speed: our 15 MB, 30-second file took 0.66 seconds with ffmpeg on our server.

Can I delete the MKV after remuxing?

After you have played the MP4 and checked every audio track, yes. Until then keep it: the MKV is the copy that survives a bad stop, and remuxing again takes about as long as copying the file.

My remux fails or the MP4 has no sound. What now?

Check the audio codec with ffprobe. If it is PCM, keep the video and convert only the audio: ffmpeg -i in.mkv -map 0 -c:v copy -c:a aac -b:a 192k out.mp4 worked on our PCM file. The PCM section line adds +faststart and took 2.83 seconds. If ffmpeg says "codec not currently supported in container", use -map 0:v -map 0:a instead of -map 0.

Related

More guides on this topic

Sources and how we checked

  1. OBS Knowledge Base: Standard Recording Output Guide (MKV recommendation, Remux Recordings, Automatically remux to mp4) (checked 2026-11-30)
  2. OBS Knowledge Base: Hybrid MP4 and Hybrid MOV Formats (versions, recovery, PCM note, chapters) (checked 2026-11-30)
  3. OBS Knowledge Base: Advanced Recording Guide and Multi Track Audio (checked 2026-11-30)
  4. OBS blog: Writing an MP4 Muxer for Fun and Profit (Hybrid MP4, and why fragmented MP4 stopped being the default) (checked 2026-11-30)
  5. OBS Studio 33.0.3 source: media-remux.c (copies every stream, hvc1 tag for HEVC) (checked 2026-11-30)
  6. OBS Studio 33.0.3 source: OBSBasic.cpp (default recording format Hybrid MOV on macOS, Hybrid MP4 elsewhere) (checked 2026-11-30)
  7. OBS Studio 33.0.3 source: RemuxQueueModel.cpp (output names in Remux Recordings) (checked 2026-11-30)
  8. OBS Studio 33.0.3 source: OBSBasic_Recording.cpp (automatic remux, skipped for Custom Output (FFmpeg)) (checked 2026-11-30)
  9. FFmpeg documentation: stream selection without -map (checked 2026-11-30)
  10. Wikimedia Commons: Sintel trailer 1080p (Blender Foundation, Durian Open Movie project), CC BY 3.0: the test footage (checked 2026-11-30)
  11. Our test log: every remux, checksum, crash test and tool run (test-results.txt) (checked 2026-11-30)
  12. Test script that rebuilds the files and numbers (test-run.sh, with chart.py and the Playwright tool runner tool-run.cjs) (checked 2026-11-30)
  13. Every published command with its exit code and edge inputs (commands.log) (checked 2026-11-30)

On November 30, 2026 we cut 30 seconds from the Sintel trailer (Blender Foundation, CC BY 3.0, Wikimedia Commons) and built five MKV files with ffmpeg 6.1.1 to match common OBS settings: H.264 with two AAC tracks named Desktop and Mic, HEVC with AAC, and H.264 with 16-bit PCM, 32-bit float PCM or Opus audio, all with 2-second keyframes. Each was remuxed to MP4 with ffmpeg, with and without -map 0 and -tag:v hvc1, and the H.264 file was also re-encoded for timing. Streams and tags were read with ffprobe; the video and every audio track were compared with MD5 checksums of the copied packets. For the crash test the same clip was recorded into MKV, plain MP4 and fragmented MP4 and the recorder was killed with kill -9 after 12 seconds; finished files were also cut at 70% of their bytes, and the same clip recorded to each container without interruption served as the control. Chart durations are the video stream; audio durations are logged separately. The live Koldflux MKV to MP4 tool ran twice on the two-track file in headless Chromium (Playwright), timed from file selection to Download with a fresh browser each time, and was tried twice on the PCM file (one attempt timed out at 300 seconds, the other was watched for 120 seconds). Every published command was re-run with edge inputs (missing and empty files, names with spaces and accents, a second run, an empty folder, uppercase .MKV, the hvc1 flag on H.264 and AV1, an AV1 file, an MKV with a subtitle track, two PCM tracks) in commands.log. OBS documentation, blog and the 33.0.3 source code were read the same day. OBS itself, Hybrid MP4 files and playback apps were not tested.