My conjectures have been comfirmed.
I completely removed the Motion Adaptive Part from the Script and made a test encode. The Result showed no ghosting, no flashing and no jittering at all. The Picture is totally fine. That means, the Motion Adaptive Part is the Mischief Maker.
Code:
## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= 2 ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,0, 2) ")
Kwag, It looks like there's a bug in the Motion Adaptive Part and I discovered it
By the way:
I'm using the very latest script...