Video corrupted because of force restart when capturing
Don't panic
Download virtualdub and try to open in it. Try select "direct stream copy" and save new file. AVI container very easy to fix.
If you using h264 codec inside, you can try to use my tool https://github.com/bookkojot/mp4fixer