Log in

View Full Version : MotionMask, also know as mt_motion from MaskTools


jackoneill
19th June 2018, 19:21
It creates a motion mask.

https://github.com/dubhater/vapoursynth-motionmask

ChaosKing
19th June 2018, 21:40
Nice.
But I it seems there is a bug. Sometimes (for 1-2 frames) the mask is only applied to 4px line at the top + I get wrong random frames now and then mostly unmasked.

The source filter is frame accurate! Cpu ryzen 1700, VS R44 x64

Tested with motionmask.MotionMask( th1=[10, 10, 10], th2=[10, 10, 10], tht=10, sc_value=0)

jackoneill
20th June 2018, 10:52
Nice.
But I it seems there is a bug. Sometimes (for 1-2 frames) the mask is only applied to 4px line at the top + I get wrong random frames now and then mostly unmasked.

The source filter is frame accurate! Cpu ryzen 1700, VS R44 x64

Tested with motionmask.MotionMask( th1=[10, 10, 10], th2=[10, 10, 10], tht=10, sc_value=0)

Thanks for testing. I think v2 fixes this bug.

https://github.com/dubhater/vapoursynth-motionmask/releases/tag/v2

ChaosKing
20th June 2018, 11:47
Seems to be fixed. Now I found a scene that is not detected as motion regardless of which th1 and th2 values I set.

In this example it's motionmask.MotionMask( th1=0, th2=1, tht=10, sc_value=0)
But I also tried th1=0, th2=255 or 100 and 10 etc.

https://imgur.com/a/WA9BzLE


EDIT: I missed the tht parameter :D It is detected with a higher tht value.