Log in

View Full Version : Repair damaged avi file?


Razorblade2000
9th May 2002, 16:16
I've got a CD containing a Rip of the movie "Fightclub" (great movie!!!). So far it's fine, but if watch the movie about 1 hour (total lenght ca. 2 hours) WMP says "Das Dateiformat ist ungültig" which means sth like "The file format is invalid". The CD is Ok!!! I can copy he whole movie to HD without any problems! The avi seems to be damaged. Is there any way to fix it?

Mac Sidewinder
9th May 2002, 18:27
You can try Divx Fix. Get it here in the d/l section.

Mac

bb
9th May 2002, 18:28
Try DivFix 1.07 (called "DivX Fix 1.07" at Doom9's downloads). I used it with success.

bb

Edit: Damn, you were a few seconds faster than me...

DJ Bobo
20th May 2002, 22:04
I have a 134MB file of 20 minutes, it's damaged, I tried VirtualDub 1.4.10 with aggressive mode/rekeying & another time without aggressive mode/rekeying but in compatibility mode and after video -> scan video for errors
In both cases I got after saving an only 80MB file with the first 13 minutes
Same thing after rebuilding index in DivX FiX 1.07

Any other solution to repair that AVI?

N_F
21st May 2002, 08:22
Originally posted by bobotns
I have a 134MB file of 20 minutes, it's damaged, I tried VirtualDub 1.4.10 with aggressive mode/rekeying & another time without aggressive mode/rekeying but in compatibility mode and after video -> scan video for errors
In both cases I got after saving an only 80MB file with the first 13 minutes
Same thing after rebuilding index in DivX FiX 1.07

Any other solution to repair that AVI?

There is probably a few bad frames after ~13 minutes. What you can do is save the first part, skip the bad frames, then you save the second part. So you basically cut out those bad frames. The problem is then to find the bad frames, which can be a little work, but is should be possible.

DJ Bobo
21st May 2002, 10:27
@ N_F
Thanks for the advice, but it doesn't work.
Opening the file in aggressive mode will automatically ignore all frames after Frame 9819 (the video has 12fps)
Opening the file in compatibility mode and trying to go further than frame 9819 ends with a failure (Frame 9820 is corrupted)
Scanning for video erros says that there is 7500 frames that are masked and that can't be decoded.
I think the one that made this file has made only one keyframe at the very beginning of the video, all other ones are delta frames I guess, so that if one frame is corrupt, all following can't be decoded :(

N_F
21st May 2002, 10:35
Well, if you don't find any other solution and the quality isn't a very big issue you can use TMPGEnc to compress it to MPEG (and then back to AVI again if you want). TMPGEnc seems to handle errors much better than VDub.

Ookami
21st May 2002, 11:35
You could also try AviUtl .

DJ Bobo
21st May 2002, 11:48
@ N_F
TMPGEnc encodes the file entirely but all frames after 9816 are black

@ Ookami
AviUtl opens the file and displays just the first 9820 frames.

binky the stunt cat
21st May 2002, 13:54
Originally posted by N_F


There is probably a few bad frames after ~13 minutes. What you can do is save the first part, skip the bad frames, then you save the second part. So you basically cut out those bad frames. The problem is then to find the bad frames, which can be a little work, but is should be possible.
there is a little program called AviDeFreezer (http://www.doom9.org/Soft21/Editing/avidefreezer.zip) that does this, and works quite well. I use it all the time. Its just that as far as i can tell it wont fix VBR MP3 audio containing movies. I have a few of those with errors, so i'm going to empty my HDD out, then dumb an uncompressed WAV out, fix the video, then recompress the Audio and combine it with the video.....so hopefully that will work, but if anyone has a better method i'd like to know.

DJ Bobo
21st May 2002, 14:12
@ binky
AviDeFreezer crashes in the middle of the operation.

binky the stunt cat
21st May 2002, 15:21
have you watched the log of it before it crashes?
if its just after fixing the bad stream its because you havent entered a file extention (eg: .avi)
other than that you most probably have a broken index on the file, and i have absolutly no idea on how to fix those.

DJ Bobo
21st May 2002, 19:07
@ binky
Yes, I entered the extension, and yes, it has a corrupt index :(

QuoVadis
21st May 2002, 23:15
Maybe AviPreview can help you in this case. You can download it from http://www.funkster.org/

(In the "Software" section)

DJ Bobo
22nd May 2002, 11:29
@ QuoVadis
Same thing as VirtualDub & co, AviPreview generates an 80MB AVI with the first 13min39sec, all following frames are ignored