Selur's Little Message Board
[HELP] Cropped area must have Mod2 offset - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: [HELP] Cropped area must have Mod2 offset (/thread-2272.html)



Cropped area must have Mod2 offset - Miranda - 12.02.2022

I'm trying to run a Temporal DeNoise filter in Vapoursynth, but I am getting "Python exception: Cropped area must have Mod2 offset". How do I fix this?

I just tried re-exporting the clip with a Mod2 slight resize, but I still get the same error.

It also would not run in Avisynth.

Hybrid_2021.12.12.1


RE: Cropped area must have Mod2 offset - Selur - 12.02.2022

F i l e   " C : \ P r o g r a m   F i l e s \ H y b r i d \ 6 4 b i t \ v s s c r i p t s \ h a v s f u n c . p y " ,   l i n e   3 3 2 1 ,   i n   M C T e m p o r a l D e n o i s e
         r e t u r n   s m P . s t d . C r o p ( * * c r o p _ a r g s )
Okay, seems like MCTemporalDenoise requires content to be mod4, your input is 774x576 where the 774 is only mod2.
(really strange input resolution)
I'll look into it and will write a workaround for it.

Quote:It also would not run in Avisynth.
MCTemporalDenoise is only available in Vapoursynt in Hybrid. -> confused

Cu Selur

Ps.: as a workaround you could crop the source by 2 pixel in width before applying MCTemporalDenoise.


RE: Cropped area must have Mod2 offset - Selur - 12.02.2022

Send you a link to a dev version which adds the mod4 requirement for Avisynth TTempsmooth and Vapoursynth MCTemporalDenoise.

Cu Selur