What Untrunc does
untrunc working.mp4 broken.mp4
That is the whole idea. A recording that was cut off, by a dead battery, a crash or a card pulled out, has its footage but not its index, the moov atom that tells a player where every frame sits. Untrunc reads the settings from a working video recorded on the same camera with the same settings, finds the frames in the broken file, and writes a new file with a fresh index. It adds _fixed to the broken file's name, so broken.mp4 comes back as broken_fixed.mp4.
The version most people use today is the fork maintained at github.com/anthwlock/untrunc, licensed under GPL-2.0. Its README lists MP4, M4V, MOV and 3GP, files over 2 GB, and GoPro and Sony XAVC recordings.
Untrunc on Windows
The project publishes ready-made Windows builds on its GitHub releases page, and the README says the optional graphical version is included in those builds. The newest one dates from March 2020: untrunc_x64.zip (about 13 MB) for 64-bit Windows and untrunc_x32.zip for old 32-bit systems. Skip copies on download sites; take the zip from GitHub.
- Open github.com/anthwlock/untrunc, go to Releases and download
untrunc_x64.zip. - Unzip it to a folder. If Windows SmartScreen warns about an unknown publisher, that comes from an unsigned open-source build, so check that you got it from GitHub.
- Start the graphical version, or open a command prompt in that folder and run it with the working file first and the broken file second:
untrunc "D:\videos\working.mp4" "D:\videos\broken.mp4"
- Look for the new file with
_fixedin its name next to the broken one, and play it.
Untrunc on a Mac
The README offers no ready-made Mac app, and brew install untrunc returns an error: Homebrew has no Untrunc formula. Homebrew installs the libraries Untrunc needs, and you build Untrunc yourself in a few minutes:
brew install ffmpeg yasm
git clone https://github.com/anthwlock/untrunc.git && cd untrunc
Then build it, pointing the compiler at Homebrew, as the README's macOS section shows:
CPPFLAGS="-I/opt/homebrew/include" LDFLAGS="-L/opt/homebrew/lib" make
The README says Untrunc "works great with ffmpeg 3.3.9". If the build fails with a newer FFmpeg, check that first. When it builds, run ./untrunc working.mp4 broken.mp4 from the same folder.
When Untrunc doesn't work
- The reference was recorded differently. A clip at another resolution, frame rate or codec setting describes different frames. Use a clip from the same camera, recorded with the same settings, ideally the same day.
- The file is really empty. A 0-byte file, or one filled with zeros, has no footage to find.
- The repaired file still won't play. The README says the result should be playable, not that it always will be. Try a different reference clip before giving up.
No terminal: Video Repair for Windows
Video Repair for Windows does the job Untrunc does, from the Microsoft Store, with no zip, compiler or command prompt. You open the broken video, add a working clip from the same camera if it asks, and watch the result before you pay anything. It runs offline and keeps the camera's own frames, like Untrunc.
- Download, repair and preview: free.
- Saving the repaired file: $3.99 for one video, or the personal plan for your own videos, $9.99 a month or $29.99 a year — one plan for the Windows app and the online tool. Repair shops: the Technician licence.
Get Video Repair for Windows (free) Get the personal plan, $29.99 a year
The licence key arrives in your receipt email. More on the app: Video Repair for Windows.
The same repair in your browser
The checker on this page does what Untrunc does, with nothing to download or build:
- Open the broken video. Your browser reads it from your own disk; nothing is uploaded.
- If it asks, add a working video from the same camera. It borrows that video's settings and nothing else.
- The check is free. It tells you whether the footage is there and how much of the recording it can rebuild.
- The 15-second preview is free too, at reduced quality with a watermark, so you see your footage move before you pay anything.
- Downloading the full video is paid: one video, a month or a year. If the repaired video doesn't play, you get a refund.
Like Untrunc, it re-encodes nothing: the file holds the camera's own frames inside a new index. Some cameras repeat their settings inside the footage, and then no reference is needed at all: a Tesla front-camera clip came back that way in our tests. Unlike Untrunc, it doesn't need a reference to start: when the settings were only in the lost index, it first works them out from the footage itself, and the sound from its own audio frames. A Samsung Galaxy A56 recording came back that way with every picture and every sound frame identical; the GoPro and DJI Avata files we tested still needed a clip. We have checked it on real files from GoPro HERO5 to HERO10, a DJI Avata, 70mai and Tesla dash cams and a Samsung Galaxy A56, and every frame came back identical to the original.
Untrunc, the Windows app or the checker?
| Untrunc | Video Repair for Windows | The checker on this page | |
|---|---|---|---|
| Price | Free | Free to repair; saving from $3.99 per video | Check and preview free; download paid |
| Install | Windows build, or build from source on a Mac | Microsoft Store, no terminal | Nothing; any modern browser |
| Source code | Open (GPL-2.0) | Closed | Closed |
| Formats | MP4, M4V, MOV, 3GP | MP4, MOV, M4V, 3GP, AVI | MP4, MOV, AVI |
| Needs a reference video | Always | Only when it can't work the settings out | Only when it can't work the settings out |
| Your video is uploaded | No | No | No |
| On a phone | No | No (Windows only) | The Video Repair app for Android |
If you're comfortable with a terminal and the free tool works for your file, it's the cheaper route. On Windows without a terminal, use the Video Repair app. On a Mac, if you don't want to build from source, the checker on this page gives you the same kind of result in the browser and shows it to you before you pay.
