Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-28T22:18:54.860Z
Answers.LastActivityDate: 2014-07-28T22:18:54.860Z
Answers.LastEditDate: 2017-04-13T12:46:08.110Z
Answers.UserDisplayName: timonsku
Body: <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>
  
Tags: <software-recommendation>
Title: Repair corrupted video files
UserDisplayName: Kalle Richter
ThreadText: # 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.
  
  
  ---
  
  