Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recorded some video on my PC using a webcam, and got an .avi file. My computer lost power while it was recording, so I can't view the contents of the file.

The file is about 4GB in size. The video players I tried show only a picture when they open it. The video files resulted from using "fix videos software" were similar. Extracting photos using "extract frames software" gives only five frames. Viewing the file as a binary shows (10f695f0)x lines of data each containing 32 hex values, for a total of 9,107,062,272 hex values. The video's frame rate and dimension are known.

How can I restore my video? I would be happy with a programming solution, a software package... anything that works.

share|improve this question

migrated from stackoverflow.com Aug 30 '11 at 11:22

This question came from our site for professional and enthusiast programmers.

    
Look at VLC, it can play prettymuch anything, and can write videos to disk. –  George Duckett Aug 30 '11 at 9:20
add comment

1 Answer 1

Try running it through ffmpeg, making use of the -er flag.

From the man page:

-er n
Set error resilience to n.
1 FF_ER_CAREFUL (default)
2 FF_ER_COMPLIANT
3 FF_ER_AGGRESSIVE
4 FF_ER_VERY_AGGRESSIVE

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.