Is there a filter (for virtualdub or avisynth) that can find "black frames" in an AVI and log the frame numbers?

Frank