Inc
12th August 2004, 18:46
Hi,
I looked for this in here but nothing found for my needing, so I do ask now ...
I do know that there does exist a conditional filtering routine which does base on YdifferenceToNext...
clip = ImportingSource("XXXXXXXXXXX.xxx")
ScriptClip(clip, "diff = YDifferenceToNext?()"+chr(13)+"diff > 2.5 ? Filter(amount=diff) : FilterTwo(amount=diff)")
But that one dos only inspect the diff of luma change as a whole to the followed frame. Also AverageLuma() inspects the whole present frame.
What I need is a routine like -LumaComplexityToNext()-, means that one should be able to check out how much Luma complex "living" to the next frame is given.
As we know, such complex Luma Parts "Changing/Flickering/flashing" Scenes do rise up the quantisation of an encoder ... like rain, shiny sun reflections on watersurfaces, sparkling diamonts. So I would like to build a routine where such special scenes could be seen by an avisynth function where a filter gets startet when such a -complex Luma uneasy parts- scene will be detected.
Well I think it should work like YDifferenceToNext but not on the whole frame whrer its luma change is detected BUT a Luma difference/complexity out of a 16x16 Matrix of that frame or so similair.
Get my Point? I do hope so .. :)
Thanks in advance!
I looked for this in here but nothing found for my needing, so I do ask now ...
I do know that there does exist a conditional filtering routine which does base on YdifferenceToNext...
clip = ImportingSource("XXXXXXXXXXX.xxx")
ScriptClip(clip, "diff = YDifferenceToNext?()"+chr(13)+"diff > 2.5 ? Filter(amount=diff) : FilterTwo(amount=diff)")
But that one dos only inspect the diff of luma change as a whole to the followed frame. Also AverageLuma() inspects the whole present frame.
What I need is a routine like -LumaComplexityToNext()-, means that one should be able to check out how much Luma complex "living" to the next frame is given.
As we know, such complex Luma Parts "Changing/Flickering/flashing" Scenes do rise up the quantisation of an encoder ... like rain, shiny sun reflections on watersurfaces, sparkling diamonts. So I would like to build a routine where such special scenes could be seen by an avisynth function where a filter gets startet when such a -complex Luma uneasy parts- scene will be detected.
Well I think it should work like YDifferenceToNext but not on the whole frame whrer its luma change is detected BUT a Luma difference/complexity out of a 16x16 Matrix of that frame or so similair.
Get my Point? I do hope so .. :)
Thanks in advance!