<p>Completely depends on the video codec and container format, there is no general tool to fix corrupted video files.
Regarding avis with missing headers there is a good answer on this <a href="https://video.stackexchange.com/questions/4202/how-do-i-recover-truncated-avi-dv-video/4216#4216">question</a>.</p>

<p>The info there also helps with recovering other video formats.</p>

<p>To find more info about a certain file I recommend using <a href="http://mediaarea.net/en/MediaInfo" rel="nofollow noreferrer">MediaInfo</a> in addition to <a href="https://www.ffmpeg.org/download.html" rel="nofollow noreferrer">ffprobe</a>. It offers some more info about codecs and container properties than ffprobe and is easier to read.</p>

<p>If chunks in the video stream are corrupt it won't hinder playback of the stream you will just experience artifacts around these chunks.</p>

CC BY-SA 3.0
2014-07-28T22:18:54.860Z
2014-07-28T22:18:54.860Z
2017-04-13T12:46:08.110Z
timonsku
<p>After experimental restauration of btrfs sparse file image, a lot of my video files have missing or added bytes, but only some (file sizes are identical to size of original except &lt; 100 bytes). Is there a program which can </p>

<ol>
<li>recognize the video container and encoding (could may also be done separately with a script)</li>
<li>repair the video file based on eventually existing checksums (I have no idea how popular video formats work)</li>
<li>recognize missing bytes causing the failure of rendering for single images/sequences and replace them with black images</li>
</ol>

<p>(1. is optional, 2. and 3. alternatives for each other)?</p>

<software-recommendation>
Repair corrupted video files
Kalle Richter
# Repair corrupted video files

(Asked by: username_0 on 2014-07-27)

After experimental restauration of btrfs sparse file image, a lot of my video files have missing or added bytes, but only some (file sizes are identical to size of original except < 100 bytes). Is there a program which can

1. recognize the video container and encoding (could may also be done separately with a script)
2. repair the video file based on eventually existing checksums (I have no idea how popular video formats work)
3. recognize missing bytes causing the failure of rendering for single images/sequences and replace them with black images

(1. is optional, 2. and 3. alternatives for each other)?

**Tags:** software-recommendation


---

## 1 answers

### Answer by username_1 on 2014-07-28. Score: 1

Completely depends on the video codec and container format, there is no general tool to fix corrupted video files.
Regarding avis with missing headers there is a good answer on this [question](https://video.stackexchange.com/questions/4202/how-do-i-recover-truncated-avi-dv-video/4216#4216).

The info there also helps with recovering other video formats.

To find more info about a certain file I recommend using [MediaInfo](http://mediaarea.net/en/MediaInfo) in addition to [ffprobe](https://www.ffmpeg.org/download.html). It offers some more info about codecs and container properties than ffprobe and is easier to read.

If chunks in the video stream are corrupt it won't hinder playback of the stream you will just experience artifacts around these chunks.


---

