Log in

View Full Version : Sharpen error


~ VEGETA ~
8th November 2015, 21:08
Hi there friends, I had this error: http://postimg.org/image/gw0vesl13/

my script is:

SetMemoryMax(512)
SetMTMode(3)

source=ffvideosource("...............")
SetMTMode(2)
edgemask1=mt_edge(source,mode="prewitt",thy1=5,thy2=10).mt_expand.mt_expand.mt_inflate
super = MSuper(source)
backward_vec2 = MAnalyse(super, isb = true, delta = 2, overlap=4)
backward_vec1 = MAnalyse(super, isb = true, delta = 1, overlap=4)
forward_vec1 = MAnalyse(super, isb = false, delta = 1, overlap=4)
forward_vec2 = MAnalyse(super, isb = false, delta = 2, overlap=4)
denoise=MDegrain2(source,super, backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400)

denoise=denoise.limitedsharpenfaster.aaf
mt_merge(source,denoise,edgemask1)
trim(0,700)

of course, I tried it with the normal avs but still gives the same bad frame. It also produces some very strange freezings! like, groups of frames freezes then the video move on then another group freezes... and so on.

I tried other denoisers but still got the same result... I will try to separate denoising from sharpening by making 2 edgemasks... hoping to solve it.

looking forward to your contribution.

~ VEGETA ~
8th November 2015, 21:27
I noticed that the problem is from the denoising... the mask has anything to do with it?

real.finder
8th November 2015, 22:41
the source is BD right? I think it ffms2 seeking issue

try seekmode=-1 in ffvideosource

or try LWLibavVideoSource

~ VEGETA ~
8th November 2015, 22:51
the source is BD right? I think it ffms2 seeking issue

try seekmode=-1 in ffvideosource

or try LWLibavVideoSource

well, that came to my mind... but I saw that it worked before on the same file! never had this issue on other files too.

if this solves the freezing stuff, it is good... but I still need to fix the lines thing. Maybe it is the same issue.

thanks, i will keep you posted.

~ VEGETA ~
10th November 2015, 11:36
the problem was exactly what we expected: FFMS2 seeking problem. I used lsmash and worked nice on .m2ts file... Another solution is to put that .m2ts content into .mkv one, this will work with ffms2... but looks like i will move permanently to lsmash.