DivFix++ is a program designed to repair broken AVI file streams by rebuilding index part of the file.
This is very useful when trying to preview movies which has no index part, like some files are currently downloading from ed2k or bittorent networks. DivFix++ has support for CLI tools, this means you can fix a file to temporary location, preview with a player, than delete temporary movie file after preview automatically via script by using argument parameters.