OK, well in brief, look at post linked in post#3.
Use the first script to generate command files with "EXTRA=true" to generate PrePre.txt as well as Pre.txt command file.
Pre.txt would be a list of frames before scene changes, PrePre.txt are the frames before those.
What you could then do is to pull out the PrePre frames (two before scene change) and shove them back into where
the Pre frames are (one before scene change).
eg
Code:
C=AVISource("D:\avs\Source.avi")
PRE=FrameSelect(C,cmd="PrePre.txt",show=false) # pull out frames 2 before scene change
FIXED=FrameReplace(C,PRE,"Pre.txt",show=false) # shove frames 2 before scene change back into frame immediately before scene change
return FIXED
You could also do similar with frames following scene change using same method (using Post.txt & PostPost.txt).