I've got an AVI several generations removed from the original old TV capture.

One problem is that many scene transitions are scrambled and a bit jarring when viewed.
Eg, this sequence below, frames 3314, 3315, 3316.

I'm using Avisynth to filter and resize, so I'd like to also use it to replace the transition frame with the previous or next one, eg:

FreezeFrame(3315,3315,3314)

This gives a more pleasant viewing experience.

The problem is of course finding all the transition scenes.
If I could get a list of all scene changes by frame number I could quickly review and fix each one if necessary.
Since a lot of encoding software needs to know where scene changes are, it seems to me this problem must have been solved. Is there a way to do it in Avisynth (or VirtualDub)?