neebis said:
I wasn't really sure about all the values to control the level or noise reduction and sharpness. I tried lowering the sigma to 3 then 4, which is what I'm using. Is that the right variable to lessen the degrain effect?
What about the values below:
source.MVDegrain2 thSAD=400
last.MVDegrain2 thSAD=300,thSCD1=150,thSCD2=75
Will these or other values in that section of the script allow me to fine tune the degrain effect? I plugged in different values (mainly higher), but I didn't get much of an effect that I wanted, so in the end I left them as is.
I also see that Contra is used in the sharpening stage. I really couldn't figure out how to tweak that one, so I didn't touch it. Can you give me a hint about which values to change to increase or lessen the sharpening filter?
Changing the settings in the FFT filter won't have as much effect as you are hoping for. The FFT filter is not "really" used, it is for finding the motion vectors, and then as a check against errors. I would suggest NOT chaging that. Changing the values in MVDegrain2 won't do what you want either. They are also used for error prevention.
Okay, as far as the degrain goes, If you want less, change both the lines with MVDegrain2 to the following respectively:
source.MVDegrain1(bw_vec1,fw_vec1,thSAD=400,idx=2)
last.MVDegrain1(bw_vec1,fw_vec1,thSAD=300,thSCD1=150,thSCD2=75,idx=3)
This will use less mo-comped frames for the degraining. Unfortunately, I've found that if you remove less grain, what remains is too temporally stable (probably from the DVD compression) and tends to look less like real random grain, and more like a "veil" of grain that slowly waves. Also, you will not get rid of as much "local motion", meaning that objects that should be stationary will seem to move in relation to the rest of the frame. Try it out, and see what you think. I'm definitely open to making this thing run faster, which reducing the MVDegrain radius would do.
Okay, if you want more or less sharpening, the best way would be to change the function "contra".
this line:
MT_MakeDiff(last,last.RemoveGrain(12,-1).RemoveGrain(12,-1))
for more sharpening would change to:
MT_MakeDiff(last,last.RemoveGrain(12,-1).RemoveGrain(12,-1).RemoveGrain(12,-1))
or less sharpening to:
MT_MakeDiff(last,last.RemoveGrain(12,-1))
If those don't get you where you want, then I would start changing the "sharpen" value in the FFT.
Let me know what works best for you.
-G