I know how to repair "broken" AVI files in VLC: How can I repair a broken AVI file?

But how can I detect that an AVI file is broken if I have thousands of AVI files, and I don't want to open them 1 by 1? I'm using Ubuntu, so are there any CLI methods to find them?

Thanks!

enter image description here

link|improve this question

62% accept rate
feedback

3 Answers

up vote 1 down vote accepted

DivFix++ does something similar that could solve your problem.

DivFix++ -w *

This just "fixes" the file regardless of their sanity and overwrites the originals with the fixed ones.

link|improve this answer
feedback

This might be exactly what you are looking for: http://606u.dir.bg/avicheck/

link|improve this answer
I didn't downvote, but one link answers are discouraged here. Why not write about how to use that tool? – slhck Jun 7 '11 at 15:25
@slhck It's not a tool, it is a tutorial, describing how to detect avi corruption using ffmpeg. – Let_Me_Be Jun 7 '11 at 15:30
feedback

Typically when I was using Windows this error was present it was due to the file not being complete. I would assume the message with Ubuntu as well. I am currently using Ubuntu, but I do not have any .avi's to test with at the moment. I would check file sizes to make sure that it is the full .avi.

If you click "don't repair", it still should load and play but it'll most likely be incomplete.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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