A crashed movie recording is usually salvageable if you stop writing to the device immediately and work from a copy of the file. The fix depends on what survived: the video data, the file's index and metadata, or only the container wrapper. Recovery can mean anything from rebuilding a corrupted MP4 header to re-muxing streams with FFmpeg, and in the worst case it means accepting that the tail of the footage is gone. The single most important condition is to avoid recording, deleting, or copying anything else onto the original media until you have made an image or at least duplicated the broken file.

This guide walks through the realistic ways a recording crashes, how to triage the damage, the repair methods that actually work for common formats, and the preventive habits that make a crash a nuisance instead of a loss. It treats phone captures, camcorder files, screen recordings, and OBS or game-capture output, since the underlying container mechanics overlap heavily.

What "crashed" actually means for a video file

People use "crashed" to describe several different failures, and mixing them up leads to the wrong repair. A phone or camera that dies mid-recording typically leaves a file that exists on disk but lacks a finalized index, because MP4 and MOV store their critical metadata in a box at the end of the file. Camcorders and some cameras split recordings into segments, and a power loss can orphan the last segment. Editing software and screen recorders often crash while the file is still being written, leaving a partially flushed or truncated file. A full drive or a failing SD card can produce a file that looks complete but contains garbage in the middle.

The symptoms differ in a revealing way. If a player refuses to open the file at all, the header or index is usually the problem. If the file opens but plays only partway, the moov atom may be missing or the data is truncated. If it plays with stuttering, macroblocking, or audio drift, the damage is inside the stream rather than the container. And if the file size is zero or a few kilobytes, the recording never really wrote data and reconstruction is unlikely.

Understanding this matters because container repair and stream repair are different jobs. Rebuilding an index can't fix missing frames, and re-encoding won't help if the player can't parse the container to find the streams. Triage first, then pick the tool.

Step one: stop, copy, and protect the original

Before any repair attempt, treat the original file and its storage as fragile evidence.

1: Stop using the device or drive that holds the crashed recording. Don't record over it, don't delete the file to "start fresh," and don't let cloud sync or a backup tool rewrite the folder. 2: Copy the broken file to a different drive using a plain file copy, not a media-import wizard that might try to convert it. If the file is on an SD card, use a card reader on a computer rather than the camera. 3: If the file won't copy because of read errors, make a disk image of the card first with a tool like ddrescue or a commercial imaging utility, then work on the image. Reading from an image prevents further wear on a failing card. 4: Work only on copies. Keep the original file untouched until you have a playable result you're satisfied with.

What you should expect: after copying, you'll have at least one working replica and a known-good original. The check is simple—verify the copy's file size matches the original's reported size, and confirm you can reopen the folder without errors. Filesystems that report the file but fail to read it are a sign of physical media trouble, and at that point a professional data-recovery service is the sensible stop condition rather than repeated read attempts.

Step two: find out how much survives

Triage answers two questions: is the video data present, and is the container the only broken part?

Start with a hex or metadata inspection. On a computer, tools such as MediaInfo report duration, bitrate, codec, and whether the container is malformed. A file that MediaInfo reads cleanly but a player refuses often has a minor header issue. A file that MediaInfo can't parse at all likely has a missing or corrupted index.

Next, check the physical size. A one-hour phone video at a typical bitrate runs into gigabytes; a file of a few megabytes for an hour of recording almost certainly lost its payload. Compare the reported size against the card's remaining capacity. If the card is full and the file ends abruptly, truncation is the expected damage.

Then test playback in more than one player. VLC and mpv often tolerate a missing index better than a hardware player or a phone's stock gallery. If VLC plays the file but skips the last few minutes, the data may be fully present but the index is wrong—a strong candidate for container repair. If any player shows a green or gray block that freezes the picture, the stream itself is damaged at that point.

A quick technical check, for readers comfortable with a command line: running ffprobe on the file prints stream details or a parse error. A clean stream listing with a suspicious duration points to metadata trouble. A "moov atom not found" message points to a finalization failure. Neither message tells you the frames are unrecoverable; they tell you which repair to try.

Rebuilding the index: the most common and most successful repair

The classic unfinalized-recording scenario—a camera or phone killed mid-save—is fixed by reconstructing the missing moov atom. Several tools do this, and they differ in approach.

For MP4 and MOV, the well-known utilities are untrunc, which uses a healthy reference file recorded on the same device, and MP4Box-style import or recovery modes. The reference-file trick works because it borrows the index structure from a good recording and rebuilds the broken one around it. So the prerequisite is a second, playable clip from the same device with the same settings—resolution, frame rate, and codec—ideally recorded around the same time.

A practical untrunc workflow looks like this on a computer with the tool installed:

1: Place the broken file and a healthy reference file in the same folder. 2: Run untrunc with the reference file first and the broken file second. 3: Wait for it to scan and rebuild; long recordings take minutes. 4: Let it write a fixed output file rather than overwriting the original. 5: Open the output and check that the duration matches your expected recording length and that the final scene actually appears.

What to expect: a playable file, usually with all frames present, saved as a new file. The check is watching the last thirty seconds—the place most repairs fail—and confirming audio and video stay in sync through the end. If the rebuild succeeds but the file cuts off early, the surviving data itself ended early, and no index trick will invent the missing tail.

For screen recordings and game captures on a computer, the equivalent first step is often simpler: check whether the recorder wrote a temporary or autorecovered file. OBS, for example, can leave a fragmented recording that the app itself can remux, and many screen recorders offer a "recover" option in the app before you touch a third-party tool. Try the originating software's own recovery path first, because it knows its own file layout.

Re-muxing and stream extraction with FFmpeg

When the container is damaged but the streams are intact, FFmpeg's ability to read damaged input and write a clean container is the workhorse. The general principle is to copy the encoded streams—no re-encoding, which would take hours and lose quality—into a fresh container.

The simplest attempt tells FFmpeg to ignore the broken index and read what it can:

ffmpeg -err_detect ignore_err -i broken.mp4 -c copy fixed.mp4

If that produces a file, verify it plays and has sensible duration. When it fails or produces a zero-length output, forcing the input format and letting FFmpeg discard damaged packets can help, but the trade-off is visible glitches or dropped frames where the damage sits.

A more targeted approach is extracting the elementary streams and remuxing them. For an MP4 whose video track is fine but whose audio is broken, or vice versa, you can pull the good stream and re-encode only the bad one. Extracting raw H.264 video and raw AAC audio and muxing them into a new MP4 is a standard rescue, and it's the method that most often recovers a file that players treat as unopenable because of a single bad track.

For fragmented MP4 output—the format many screen recorders and streaming tools produce—a different FFmpeg path applies: telling it to accept fragmented input and produce a standard MP4 with the faststart flag, which places the index at the front of the file. This is useful when the recorder crashed after writing several fragments but before finalizing.

Expectations and checks here are concrete. A successful re-mux usually finishes in seconds or minutes and produces a file with roughly the same size as the original. If the output is dramatically smaller, FFmpeg probably dropped most of the data, and the log will show many decode or read errors. Read the log rather than trusting the output alone; error counts scattered throughout the timeline mean the damage is in the stream, and further container work won't help.

Repairing stream damage versus container damage

Let's separate the two failure classes, because the fix and the prognosis diverge sharply.

Container damage is a bookkeeping problem. The frames exist on disk, but the map to find them is missing or wrong. Repairs are fast, lossless, and usually complete. Symptoms: file won't open or shows wrong duration; players disagree about whether it plays; trimming tools can't seek. Methods: index rebuild (untrunc, recorder's own recovery), re-mux (FFmpeg, MP4Box), and occasionally a hex-level header patch.

Stream damage is a content problem. The frames or audio samples themselves are corrupt or missing. Repairs are partial, may require re-encoding, and always lose something. Symptoms: playback stutters or freezes at a point, audio drifts out of sync, or the picture breaks into blocks and stays broken. Methods: re-encode the damaged section, cut around the glitch, and accept a shortened clip.

A practical rule: if the file opens in at least one player, try stream repair. If no player will open it, try container repair first. Chasing a stream fix on a container problem wastes hours and can make things worse if you re-encode a file that only needed an index. The reverse mistake—expecting an index rebuild to restore missing footage—is equally common and just as disappointing.

There's a middle case worth naming: audio and video desynchronization after a crash. Some recorders write audio and video on separate timelines, and a crash can leave them offset. Playing with the audio offset in a player tells you how far off they are. Fixing it means re-muxing with an adjustment or re-encoding with a corrected offset, and the exact amount is measurable by watching a scene with a visible sound source—a clap, a door, a speaker—and counting the gap. Don't guess a number; measure one.

When the recorder or platform is the crash point

Not every crashed recording is a file problem. Sometimes the crash happened upstream—the capture software, the streaming platform, or the cloud backup.

For streaming platforms and web-based recorders, the first place to look is the account's own archive. Live-stream crashes often leave a server-side recording that finalizes after the fact, even if the local copy is broken. Check the platform's video library before spending time on local repair. For game consoles, some systems keep a rolling buffer or automatically save the last few minutes when the app closes unexpectedly; the relevant setting lives in the console's capture options.

For desktop capture software, the order is: the app's own recovery or remux function, then its log folder, then a third-party tool. Capture apps that write in fragmented containers can often finish the file themselves because they have the original session metadata. If the app offers a "remux" or "convert" command, run it on the crashed file before anything else; it's the least invasive fix available.

For phone videos, the gallery app sometimes holds a hidden or pending file that finalizes on the next boot. Restart the phone, wait a minute, and check the gallery again before copying anything off. If the video appears but shows "processing" forever, copying it to a computer and applying the index-rebuild route is the next move.

What usually doesn't work, and why

Several popular suggestions deserve skepticism, because they cost time and sometimes make recovery harder.

"Just press play in a different player repeatedly" rarely changes anything and, on a failing drive, adds read load. "Delete the file and record again" discards the one copy you have. "Run chkdsk or a disk repair tool" is a reasonable step for filesystem errors but can rewrite metadata in ways that reduce recoverability if run before imaging—image first, then repair. "Convert it online" uploads potentially sensitive footage to an unknown service; it's a privacy decision, not just a technical one, and the online tools mostly do the same FFmpeg work you can run locally.

Re-encoding as a first step is the most common self-inflicted setback. Re-encoding a file whose only problem is the index takes a long time, can fail at the damaged point, and loses the original encoding quality. Container-first, stream-second, re-encode last.

Prevention: settings and habits that make crashes survivable

Crash repairs are much easier when the recording was written in a rescuable format. A few choices pay off.

Enable segmented or fragmented recording when the app or device offers it. Cameras that split long recordings into chapters, and recorders that write in chunks, leave each segment individually finalized. A crash loses the last segment, not the whole session. The trade-off is more files and a reassembly step, which is a trivial cost compared with a lost hour.

For screen capture and streaming software, select the option that writes the index at the start (faststart) or keeps a constantly updated index, if available. This removes the unfinalized-file failure mode entirely, at a small performance cost.

Keep the recording medium's free space healthy. A full card is a leading cause of abrupt stops, and recorder behavior when full varies: some stop cleanly, some truncate. Letting a card fill to the last percent is a gamble with no upside.

Finally, run a two-minute rehearsal on any new setup. Record a short clip, kill the device or app mid-recording on purpose, and see what happens. You learn whether the format is rescuable, whether the app has a recover function, and where the files land—all before it matters. That test is the cheapest insurance available, and it converts a genuine emergency into a practiced procedure.

Most crashed recordings are recoverable containers waiting for a rebuilt index, and the minority that aren't are usually lost at the edges rather than wholly. Work from a copy, triage before tools, and keep the repairs lossless until you've proven the data can't come back any other way.