Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

3 Answers 3

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.

share|improve this answer

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

share|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

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.

share|improve this answer

Your Answer

 
discard

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.