Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th June 2014, 09:53   #1  |  Link
franketto
Registered User
 
Join Date: May 2014
Posts: 74
recalculate Msuper after MDegrain3?

I make a denoise with MDegrain3 and after it I want to remove scratches using the vectors just calculated, like this:

Code:
	
	super = MSuper(source, hpad=32, vpad=32,pel=2)
	bks = 8
	ov = 4
	bvec3  = MAnalyse(super, isb=true,  blksize=bks, delta=3,  overlap=ov) 
	bvec2  = MAnalyse(super, isb=true,  blksize=bks, delta=2,  overlap=ov)
	bvec   = MAnalyse(super, isb=true,  blksize=bks, delta=1,  overlap=ov)
	fvec   = MAnalyse(super, isb=false, blksize=bks, delta=1,  overlap=ov)
	fvec2  = MAnalyse(super, isb=false, blksize=bks, delta=2, overlap=ov)
	fvec3  = MAnalyse(super, isb=false, blksize=bks, delta=3,  overlap=ov)

	clp = source.MDegrain3(super,bvec,fvec,bvec2,fvec2,bvec3,fvec3,thSAD=400)
	
# HERE, after Mdegrain3  should Msuper be remaked?               super = MSuper(clp, hpad=32, vpad=32,pel=2)
	
	backw  = MCompensate(clp, super, bvec)
	forw   = MCompensate(clp, super, fvec)
	backw2 = MCompensate(clp, super, bvec2)
	forw2  = MCompensate(clp, super, fvec2)
	backw3 = MCompensate(clp, super, bvec3)
	forw3  = MCompensate(clp, super, fvec3)

	#removeDirt:
	_grey  = false
	limit  =30
	clipa  = interleave(backw3, backw2, backw, clp, forw, forw2, forw3)
	clipb1   = RemoveDirtJ(clipa,limit, _grey)
	V1  = SelectEvery(clipb1, 7, 3)

Should I redo Msuper just after the Mdegrain3, before Mcompensate? As the vectors are the same from Manalyse, but the clip is the one denoised.
franketto is offline   Reply With Quote
Old 28th June 2014, 15:04   #2  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 586
It's for scenarios like this that MRecalculate() was provided, to refine motion vectors (possibly using smaller blocks) to capture fine motion detail, edges and more complex motion. As to whether you should insert this step at all, perhaps compare with and without. In that case you might as well compare results with a second MSuper() instead.

Cheers,
Francois
fvisagie is offline   Reply With Quote
Old 28th June 2014, 15:29   #3  |  Link
Bloax
The speed of stupid
 
Bloax's Avatar
 
Join Date: Sep 2011
Posts: 318
To keep the MDegrain3 results for additional MVTools2 processing you would have to make another Super clip from the MDegrain3 results, yes.
Code:
	super = MSuper(source, hpad=32, vpad=32,pel=2)
	bks = 8
	ov = 4
	bvec3  = MAnalyse(super, isb=true,  blksize=bks, delta=3,  overlap=ov) 
	bvec2  = MAnalyse(super, isb=true,  blksize=bks, delta=2,  overlap=ov)
	bvec   = MAnalyse(super, isb=true,  blksize=bks, delta=1,  overlap=ov)
	fvec   = MAnalyse(super, isb=false, blksize=bks, delta=1,  overlap=ov)
	fvec2  = MAnalyse(super, isb=false, blksize=bks, delta=2, overlap=ov)
	fvec3  = MAnalyse(super, isb=false, blksize=bks, delta=3,  overlap=ov)

	clp = source.MDegrain3(super,bvec,fvec,bvec2,fvec2,bvec3,fvec3,thSAD=400)
	
# HERE, after Mdegrain3  should Msuper be remaked?
# Yes it should:               
super2= MSuper(clp, hpad=32, vpad=32,pel=2)
	
	backw  = MCompensate(clp, super2, bvec)
	forw   = MCompensate(clp, super2, fvec)
	backw2 = MCompensate(clp, super2, bvec2)
	forw2  = MCompensate(clp, super2, fvec2)
	backw3 = MCompensate(clp, super2, bvec3)
	forw3  = MCompensate(clp, super2, fvec3)
Bloax is offline   Reply With Quote
Old 28th June 2014, 19:55   #4  |  Link
franketto
Registered User
 
Join Date: May 2014
Posts: 74
Thank you.
Now I 'll do the extra MSuper.

But I tried also without and the result seems good anyway. It's not easy to see well the difference, because it's removing scratches and in fact it removes them but probably the edges aren't perfect because it refers to the clip before Mdegrain3.
franketto is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.