I have some .avi's with corrupt frames (you can see garbage in some frames due to a bad card reader).
There are just a number of bad frames and it seems nothing can help.

DivX repair crashes. I've tried the -idx and -forceidx options using mencoder in linux and it just stops 4 seconds into the movie as if it believes the movie is over.

Is there a simple and automated way to remove these bad frames using the Linux command line?

Thanks guys