StreamSalvage

untrunc guide

untrunc: what it is and how to repair an MP4 without the command line

Last updated June 13, 2026 · ~5 min read

If you've searched for how to fix a truncated or unfinalized MP4, you've probably run into untrunc. It genuinely works — but it's a command-line tool you have to compile yourself, and that stops a lot of people in their tracks. This guide explains what untrunc does, when it's the right choice, and a drag-and-drop alternative that uses the same repair method.

What untrunc actually does

untrunc is a free, open-source tool that repairs MP4 and MOV files whose moov atom — the index a player needs to read the file — was never written. This is exactly what happens when a recorder like OBS crashes before finalizing a recording.

Its clever trick is using a reference file: a healthy video recorded with the same device and settings. Because that reference contains a correctly written moov atom, untrunc can use it as a template to rebuild the missing index in your broken file. The footage was never gone — it just had no map.

If you want the full explanation of why recordings corrupt this way, see our guide on fixing a corrupted OBS recording.

How to use untrunc, step by step

If you want to run untrunc yourself, the process looks like this:

  1. Get untrunc. On Linux/macOS you compile it from source (the anthwlock/untrunc fork is the most current); on Windows most people use an unofficial pre-built binary or run it under WSL.
  2. Find a reference file. You need a healthy video recorded by the same device/app at the same settings as the broken one — it supplies the working moov atom.
  3. Run the command. Point untrunc at the reference and the broken file: untrunc good.mp4 broken.mp4. It writes a new broken_fixed.mp4 next to the original.
  4. Check the result. Open the output and confirm video and audio play in sync — there's no preview, so this is trial and error.

That's the whole tool. When it works, it works well — but every step above is a place non-technical users get stuck, which is the gap the rest of this guide covers.

Where untrunc gets hard

The repair logic is solid; the friction is everything around it:

For a developer comfortable in a terminal, none of this is a dealbreaker. For a streamer who just wants their VOD back, it's a wall.

untrunc vs. StreamSalvage at a glance

untrunc (CLI)StreamSalvage
Compile from sourceDownload and run
Terminal commandsDrag and drop
No repair previewFree preview before you pay
Manual reference setupGuided 10-second reference clip
Local & privateLocal & private
Free$29 one-time to export

Which one should you use?

Use untrunc if you're technical, comfortable building software, and don't mind the command line — it's free and it works.

Use StreamSalvage if you'd rather drop in your file, follow a guided prompt to record the reference clip, and see the repaired result before paying anything. It performs the same reference-based repair, stays 100% local so your footage never uploads, and skips the build-and-terminal steps entirely.

Same repair, no command line

Drop in your broken MP4, record a quick reference clip with the guided steps, and preview the repair for free. Pay $29 only if it works.

Download StreamSalvage for Windows

Frequently asked questions

What does untrunc do?

untrunc is a free, open-source tool that repairs truncated or unfinalized MP4 and MOV files. It uses a healthy reference video recorded with the same settings to rebuild the missing moov atom in a broken file, making it playable again.

How do I use untrunc?

Install or compile untrunc, then run it from the command line with a healthy reference file and the broken file: untrunc good.mp4 broken.mp4. It writes a repaired copy next to the original. There is no preview, so you confirm success by opening the output.

Is there a GUI version of untrunc?

There is a community untrunc-gui project, but it can be hard to build and is no longer actively maintained for newer systems. If you want a maintained drag-and-drop experience, StreamSalvage performs the same reference-based repair with a graphical interface and a free preview.

Is untrunc safe to use?

untrunc runs locally and does not upload your files, which makes it safe from a privacy standpoint. The main hurdles are compiling it and using the command line correctly. StreamSalvage keeps the same local-only privacy while removing the build and terminal steps.

Do untrunc and StreamSalvage repair files the same way?

Both use the same core idea: a clean reference clip recorded with matching settings supplies the metadata needed to rebuild a broken MP4. StreamSalvage adds a free preview so you can confirm the repair worked before paying, and a guided workflow for recording the reference.