View Single Post
Old 30th July 2009, 15:21   #10  |  Link
Darkkurama
Registered User
 
Join Date: Sep 2008
Posts: 21
Quote:
Originally Posted by m3mbran3 View Post
Cropping it out is probably the best solution. It's not as if the most critical information is going to be at the bottom of the frame so you are not really losing anything.

You could try playing around with MVTools to see if you can use the information from previous frames, I use something similar to remove dirt from film transfers based on the RemoveGrain and RemoveDirt plugins. My code probably wont work for your situation but you may be able to adapt it.

Code:
function dedirt(clip, int limit)
{
	super = clip.MSuper(pel=2)
	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)
	backward_motion2 = MFlow(clip, super, backward_vec2)
	backward_motion1 = MFlow(clip, super, backward_vec1)
	forward_motion1 = MFlow(clip, super, forward_vec1)
	forward_motion2 = MFlow(clip, super, forward_vec2)
	clp=interleave(forward_motion2, forward_motion1, clip, backward_motion1, backward_motion2)
	#remove dirt here
	clp=clp.RemoveDirt(limit)
	#clp=clp.despot()
	clp=clp.SelectEvery(5,2)
	return clp
}

function RemoveDirt(clip input, int limit)
{
	clensed=Clense(input)
	alt=input.RemoveGrain(mode=2)
	return RestoreMotionBlocks(clensed,input,alternative=alt,pthreshold=4,cthreshold=6, gmthreshold=40,dist=1,dmode=2,debug=false,noise=limit,noisy=16)
}
Thanks for sharing your code! but I'm sure I can't modify or adapt it at the moment: I don't understand anything (sorry xD) of the code. But I would want to understand it, is there any guide or anything that clarify the understanding of those codes and the use of them?. I'm a newbie, sorry

Quote:
Originally Posted by TheRyuu View Post
freezeframe() ?
Thanks, but that would be a hard work, because there are many glitched frames.

, and sorry for my english
Darkkurama is offline   Reply With Quote