i will try to explain
i got the frame count from avisynth AND
for avi -> i open input file with ffmpegsource
for d2v -> i open input file with mpeg2source
for dga-> i open input file with avcsource
for all other (mpeg too) -> i use directshowsource
x264 will show a number detected by mpeg2source, since before encoding i will "dgindex" (or dgavcdec) the source file
thanks SMD for testing my application!
BHH