Fixing a .avi video file

NomNom

Executive Member
Joined
Oct 23, 2009
Messages
5,018
Reaction score
9
Location
Auckland, New Zealand
So I was recording a game of Battlefield with MSI Afterburner and the server crashed, unfortunately this has damaged the recording.

I have the file it just won't play, what can I use to try and fix it?

The video is recorded using MJPG compression.

:cry:
 
So I was recording a game of Battlefield with MSI Afterburner and the server crashed, unfortunately this has damaged the recording.

I have the file it just won't play, what can I use to try and fix it?

The video is recorded using MJPG compression.

:cry:
VirtualDub should be able to fix that:
http://www.virtualdub.org/
 
Then you need the codecs for it to work. Download and install it and it should work.
IIRC, VirtualDub has a built-in MJPEG decoder.

It says unknown or unsupported file type. :(
It could be that your file doesn't even have an AVI header. If this is the case, it may be possible to copy the working header from a known good file of similar type and then let VirtualDub reconstruct the index, etc. Difficult, but not impossible.

How big is your file?
 
Just open it with VLC, it will then ask you if you want to repair it
 
It could be that your file doesn't even have an AVI header. If this is the case, it may be possible to copy the working header from a known good file of similar type and then let VirtualDub reconstruct the index, etc. Difficult, but not impossible.


I suspect this is what you are faced with if the device shut down before you ended the recording of the video.
 
IIRC, VirtualDub has a built-in MJPEG decoder.


It could be that your file doesn't even have an AVI header. If this is the case, it may be possible to copy the working header from a known good file of similar type and then let VirtualDub reconstruct the index, etc. Difficult, but not impossible.

How big is your file?

1.97GB

Just open it with VLC, it will then ask you if you want to repair it

VLC does nothing and doesn't play it.

I suspect this is what you are faced with if the device shut down before you ended the recording of the video.

I also think this is the case.
 
Last edited:
I saw this at: http://www.virtualdub.org/blog/pivot/entry.php?id=25

""You may find AVIMaster (http://www.thozie.de/avimaster) useful, which focuses on parsing and reconstructing the structure of AVIs (and I'm quite proud what it ingests) and issuing warnings on conformance. So you get a report on the file, statistics and all, and if necessary an as good as possible remake. Warning: command line utility...""

may be worth a try
 
I saw this at: http://www.virtualdub.org/blog/pivot/entry.php?id=25

""You may find AVIMaster (http://www.thozie.de/avimaster) useful, which focuses on parsing and reconstructing the structure of AVIs (and I'm quite proud what it ingests) and issuing warnings on conformance. So you get a report on the file, statistics and all, and if necessary an as good as possible remake. Warning: command line utility...""

may be worth a try

Thanks will give it a shot.

Update: "File not recognized" :(
 
Last edited:
Did you try this to see what the diagnostic result was ?

Sorry took to long to reply:

Repair Score: 95%

MP4Repair.org has identified a media type that is uniformly present in the file, and that can be decoded into Preview images.
Unless the Preview images have defects, the footage contained in the damaged file can be recovered at its original quality.
Media: JPEG
Size: 2025 MB
 
Eish.

If you can use a hex editor and copy the 1st 1MB to a separate file, you can mail it to me and I'll have a look at it.
Also send the 1st 1MB of a working similar AVI.
 
Eish.

If you can use a hex editor and copy the 1st 1MB to a separate file, you can mail it to me and I'll have a look at it.
Also send the 1st 1MB of a working similar AVI.

I would appreciate that thanks, what program do I need to do that, and how do I do it?
 
Last edited:
I would appreciate that thanks, what program do I need to do that, and how do I do it?
In Windows, I would use HIEW. The demo version should be able to do what you need to do.

In Linux or Mac I would use dd. [-]You can try WinDD, although I have never used it myself.[/-]

Edit: Scratch WinDD. It seems to do disk to disk copying only, not file to file like its UNIX namesake.
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X