Due to continual spamming, forum registrations are now by Invitation Only. Hopefully this will be only a temporary measure to combat spammers.

If you want an invitation contact forumapplication @ camstudio . org

Sorry for the inconvenience.

How to repair this corrupt .avi file from BSoD?


I'm trying to repair a corrupt .avi file. It was produced after a Blue Screen of Death while recording using CamStudio v2 (using CamStudio Lossless Codec v1.5). The temporary .avi file remained on disk. It is not recognised by any of my media players (or video editors- I've tried VirtualDub, VirtualDubMod, DivFix and VLC).

I inspected it with a Hex editor. It appears to be missing the index at the end, and all of the header apart from the 00dc hex video frame tag (judging by this description of avi video frame tags http://www.virtualdub.org/blog/pivot/entry.php?id=25).

I think the information is there to reconstruct the file. The file is of the right size and not empty. I can see the colour scheme is correct when I open a hex-edited version of the avi in VirtualDub (I made a hex-edited version of the video by inserting a header and index from a reference avi video recorded in CamStudio. The reference used the same codec but had different dimensions and length, since I do not know those). It displays the pixels in the correct order but wrong frame size and frame rate and is therefore unrecognisable. Each frame looks like many hundreds of frames put into one.

I imagine it is possible to calculate more header and index information (like frame size) and reconstruct the file, by putting that information into the header and footer, but I just do not know how. If I could get the RGB of some pixels I could at least figure out the frame size of the video.

I would appreciate any thoughts on this. For example, is it possible to get the rgb information of pixels from the hex file? Any suggestions of how to proceed who would be great.

Sign In or Register to comment.