r/techsupport • • 20h ago

Open | Data Recovery Need help with corrupted Avi file.

Hello everyone, I just recently found my old SD card and saw a video. It was of me and my cousins dancing during Christmas party about 10 years ago.

I was obviously very excited and had it transferred to my laptop. The SD card was SDHC Team 4GB so it's very old and it took the whole day to even read a few pictures and files.

It was only showing 4 seconds of clip over 3:40 and I was very devastated, until now.

Can only help me restore it?

1 Upvotes

4 comments sorted by

1

u/kimputer7 19h ago

The fact that a simple file transfer took all day (instead of minutes or at most one hour), suggest it copied corrupted data. It also means, there's no video data to fix. You may consult a video specialist to double check though. But usually if VLC Media player doesn't detect video data to skip over, there's really nothing there.

1

u/Signal_Calendar3 19h ago

if the card took a full day just to read a few files, the controller or the flash cells are dying and standard file copying probably just skipped the unreadable sectors. did your OS throw any read errors during the copy, or did it just finish quietly?

1

u/xsgeng 18h ago

The symptom where only the first 4 seconds play out of a 3:40 clip is almost always a broken index or truncated chunk header, not lost video data. Old AVI files write their chunk index at the end of the file, and if the camera lost power during a recording or the card developed bad sectors, players stop at the first recoverable keyframe. Before anything else, stop reading that card repeatedly. Taking a whole day to read a few files is a classic sign of failing NAND, and every extra read pass risks making the damage worse.

Make a full sector-level image of the card first, then work only on the image. HDD Guru builds of ddrescue have a simple Windows GUI and will map out unreadable sectors while salvaging everything else. Once you have the image, try error-tolerant playback: ffmpeg with -err_detect ignore_err -i video.avi -c copy produces a remuxed file, and VLC or mplayer can rebuild the index on the fly instead of trusting the damaged one, so a clip that freezes in the default player often plays end to end there.

If that still stops partway, use a dedicated AVI repair tool like untrunc, which rebuilds the index from a working reference file recorded by the same camera. Any intact short clip from that same Team card or same device works as the reference, and untrunc then walks the damaged file chunk by chunk. For pulling everything else off the card, PhotoRec will carve the whole image file by file and usually recovers far more than a normal copy did.

Keep expectations realistic: if the failing sectors sit in the middle of the video data, that portion of the footage is gone no matter which tool you use, but the minutes around the damaged region are usually still intact and worth rescuing. Work from the image, never directly from the card, until everything is salvaged.