I've been capturing AVI for almost 2 hour and suddenly the power plug was kicked off. When I turn it on again, all I got is a 2.5 Gb ~temp.avi file. Is there any way to retrieve the workable AVI?
You might be able to import the temp AVI file into VirtualDub and re-save it.
NOTE: AVI Format 1.0 files (which CamStudio creates) are limited to 2GB. VirtualDub is able to save AVIs using OpenDML (Format 2.0) which has a significantly higher limit.
I've heard that both of these are sometimes successful in opening corrupt AVIs.
Failing that there is another possible solution - albeit a bit "techie" which you have to rebuilt the corrupted AVI header using an uncorrupted AVI as the "blueprint".