Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)?

share|improve this question

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.

The info there also helps with recovering other video formats.

To find more info about a certain file I recommend using MediaInfo in addition to ffprobe. 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.