<ol>
<li><p>Don't panic</p></li>
<li><p>Download virtualdub and try to open in it. Try select "direct stream copy" and save new file. AVI container very easy to fix.</p></li>
<li><p>If you using h264 codec inside, you can try to use my tool <a href="https://github.com/bookkojot/mp4fixer" rel="nofollow noreferrer">https://github.com/bookkojot/mp4fixer</a></p></li>
</ol>

CC BY-SA 3.0
2017-11-18T07:30:52.610Z
It doesn't work, it says **"the file is of an unknown or unsupported file type"** when I tried to open it.
Risal Fajar Amiyardi
CC BY-SA 3.0
2017-11-19T11:35:59.540Z
VirtualDub -> tools -> hex editor -> open file -> post screenshot here
bukkojot
CC BY-SA 3.0
2017-11-20T00:10:38.793Z
Ok, I've posted it in my question. I can't screenshot all of them though, I think it have million lines of hexadecimals.
Risal Fajar Amiyardi
CC BY-SA 3.0
2017-11-20T01:17:18.850Z
Ok, things goes worse than expected. Try to scroll down, you see anything other, than zeros?
bukkojot
CC BY-SA 3.0
2017-11-20T05:25:08.270Z
Yes, the zeros stop at line 1F6E0
Risal Fajar Amiyardi
CC BY-SA 3.0
2017-11-20T09:08:18.863Z
Very good. You posted piece of uncompressed sound. Now, can you record few seconds /using Vmix Live Video Streaming & Video Mixer Software/ and save it in proper way? May be you have some old files? I need only small piece of working file with exactly same parameters.
bukkojot
CC BY-SA 3.0
2017-11-24T06:05:27.533Z
Where a you? You don't need help anymore?
bukkojot
CC BY-SA 3.0
2017-11-25T08:23:17.693Z
I'm very sorry for my very slow response, it has been a very busy week. However I still really need your help and very glad to have it, I've added new screenshot of a working file. Thanks.
Risal Fajar Amiyardi
CC BY-SA 3.0
2017-11-26T10:29:23.610Z
Excellent! Copy your damaged file (all experiments done only on copy!) and paste header of healtly file in it (0...0x150, before zeros starts). Try to open in VirtualDub.
bukkojot
CC BY-SA 3.0
2017-11-26T10:51:11.847Z
Also, you can try this: https://expirebox.com/download/4338e9acafa820fc55a521c280afca21.html (pass: 123), just drop broken file over avi.exe and wait some time. This is bad method, as it uses reencoding in process. But you will see content of your file, what can be restored.
bukkojot
CC BY-SA 3.0
2017-11-26T11:55:03.120Z
How to copy and paste the header?? In hex editor I can only view them but not edit them.
Risal Fajar Amiyardi
CC BY-SA 3.0
2017-11-26T12:48:15.313Z
Try winhex. Or app on my link.
bukkojot
CC BY-SA 3.0
2017-12-03T07:38:03.187Z
I've replaced the header but it didn't work, but now in virtualdub it says **"The main movi block is missing"**
Risal Fajar Amiyardi
CC BY-SA 3.0
2017-12-03T10:05:39.597Z
Okay, but copy a little more. Find on good file a small string "movi", skip 16 bytes and copy all header, including "movi" and 16 bytes to copy of the broken file.  Also, you tried tool on my link, may be it will be easier?
bukkojot
CC BY-SA 3.0
2017-12-04T17:46:01.323Z
How your progress?
bukkojot
CC BY-SA 3.0
2017-12-06T01:09:56.020Z
I've copied the movi block, and opened it in Virtual Dub, now I can play it :)
.
Although there's some warning:
_[!] AVI: Index not found or damaged -- reconstructing via file scan.

[!] AVI: Invalid chunk detected at 96740. Enabling aggressive recovery mode.

[!] AVI: Keyframe flag reconstruction was not specified in open options and 
    the video stream is not a known keyframe-only type.  Seeking in the video 
    stream may be extremely slow._

But still, the video can be played now, I will click save as AVI now. Thanks for your help, really appreciate it :)
Risal Fajar Amiyardi
CC BY-SA 3.0
2017-12-06T16:16:21.323Z
It's very good. Thanks!! Of course, you could just use a ready tool, which I uploaded for you.
bukkojot
CC BY-SA 3.0
2017-12-09T07:53:54.943Z
Yes, i want to try that but when i want to download the app, the link has been expired. I would be glad if you could re-upload it, thanks.
Risal Fajar Amiyardi
CC BY-SA 3.0
2017-12-09T14:07:58.410Z
Actually, you don't need it anymore, as you can open your file
bukkojot
CC BY-SA 4.0
2019-04-14T02:48:18.373Z
You can also use an ffmpeg copy command. Usually fixes this kind of thing, and no quality loss.
user3643
CC BY-SA 3.0
2017-11-17T08:17:19.687Z
2017-11-17T08:17:19.687Z
bukkojot
<p><a href="https://i.sstatic.net/dPrWG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dPrWG.png" alt="Video corrupted"></a></p>

<p>I was capturing my video using <strong>Vmix Live Video Streaming &amp; Video Mixer Software</strong> when suddenly my computer restart itself. The file was saved with size of 3GB in my local drive. I used AVI format.</p>

<p>But when I try to open the video file, it looks like the file is corrupted and couldn't be opened. What can I do to fix this??</p>

<p>Any help would be very appreciated, thanks.</p>

<p><strong>UPDATE:</strong>
This is the screenshot when I open the file in VirtualDub Hex editor
<a href="https://i.sstatic.net/s6PKk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/s6PKk.png" alt="Using Hex Editor"></a></p>

<p><strong>UPDATE:</strong>
This is the screenshot again where the zeros end.
<a href="https://i.sstatic.net/UYdad.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UYdad.png" alt="Zeros end"></a></p>

<p><strong>UPDATE:</strong>
This is the screenshot of a working file.
<a href="https://i.sstatic.net/q2DNk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/q2DNk.png" alt="Screenshot of a working file"></a></p>

<video-recording><capturing><avi><mixer>
Video corrupted because of force restart when capturing
Risal Fajar Amiyardi
# Video corrupted because of force restart when capturing

(Asked by: username_0 on 2017-11-17)

[![Video corrupted](https://i.sstatic.net/dPrWG.png)](https://i.sstatic.net/dPrWG.png)

I was capturing my video using **Vmix Live Video Streaming & Video Mixer Software** when suddenly my computer restart itself. The file was saved with size of 3GB in my local drive. I used AVI format.

But when I try to open the video file, it looks like the file is corrupted and couldn't be opened. What can I do to fix this??

Any help would be very appreciated, thanks.

**UPDATE:**
This is the screenshot when I open the file in VirtualDub Hex editor
[![Using Hex Editor](https://i.sstatic.net/s6PKk.png)](https://i.sstatic.net/s6PKk.png)

**UPDATE:**
This is the screenshot again where the zeros end.
[![Zeros end](https://i.sstatic.net/UYdad.png)](https://i.sstatic.net/UYdad.png)

**UPDATE:**
This is the screenshot of a working file.
[![Screenshot of a working file](https://i.sstatic.net/q2DNk.png)](https://i.sstatic.net/q2DNk.png)

**Tags:** video-recording, capturing, avi, mixer


---

## 1 answers

### Answer by username_1 on 2017-11-17. Score: 2 | Accepted answer

1. Don't panic
2. Download virtualdub and try to open in it. Try select "direct stream copy" and save new file. AVI container very easy to fix.
3. If you using h264 codec inside, you can try to use my tool <https://github.com/bookkojot/mp4fixer>

> **Comments:**
> **username_0**: It doesn't work, it says **"the file is of an unknown or unsupported file type"** when I tried to open it.  
> **username_1**: VirtualDub -> tools -> hex editor -> open file -> post screenshot here  
> **username_0**: Ok, I've posted it in my question. I can't screenshot all of them though, I think it have million lines of hexadecimals.  
> **username_1**: Ok, things goes worse than expected. Try to scroll down, you see anything other, than zeros?  
> **username_0**: Yes, the zeros stop at line 1F6E0  
> **username_1**: Very good. You posted piece of uncompressed sound. Now, can you record few seconds /using Vmix Live Video Streaming & Video Mixer Software/ and save it in proper way? May be you have some old files? I need only small piece of working file with exactly same parameters.  
> **username_1**: Where a you? You don't need help anymore?  
> **username_0**: I'm very sorry for my very slow response, it has been a very busy week. However I still really need your help and very glad to have it, I've added new screenshot of a working file. Thanks.  
> **username_1**: Excellent! Copy your damaged file (all experiments done only on copy!) and paste header of healtly file in it (0...0x150, before zeros starts). Try to open in VirtualDub.  
> **username_1**: Also, you can try this: https://expirebox.com/download/4338e9acafa820fc55a521c280afca21.html (pass: 123), just drop broken file over avi.exe and wait some time. This is bad method, as it uses reencoding in process. But you will see content of your file, what can be restored.  
> **username_0**: How to copy and paste the header?? In hex editor I can only view them but not edit them.  
> **username_1**: Try winhex. Or app on my link.  
> **username_0**: I've replaced the header but it didn't work, but now in virtualdub it says **"The main movi block is missing"**  
> **username_1**: Okay, but copy a little more. Find on good file a small string "movi", skip 16 bytes and copy all header, including "movi" and 16 bytes to copy of the broken file.  Also, you tried tool on my link, may be it will be easier?  
> **username_1**: How your progress?  
> **username_0**: I've copied the movi block, and opened it in Virtual Dub, now I can play it :) . Although there's some warning: _[!] AVI: Index not found or damaged -- reconstructing via file scan.  [!] AVI: Invalid chunk detected at 96740. Enabling aggressive recovery mode.  [!] AVI: Keyframe flag reconstruction was not specified in open options and      the video stream is not a known keyframe-only type.  Seeking in the video      stream may be extremely slow._  But still, the video can be played now, I will click save as AVI now. Thanks for your help, really appreciate it :)  
> **username_1**: It's very good. Thanks!! Of course, you could just use a ready tool, which I uploaded for you.  
> **username_0**: Yes, i want to try that but when i want to download the app, the link has been expired. I would be glad if you could re-upload it, thanks.  
> **username_1**: Actually, you don't need it anymore, as you can open your file  
> **username_2**: You can also use an ffmpeg copy command. Usually fixes this kind of thing, and no quality loss.  

---

