Log in

View Full Version : MT & denoising DV


halsboss
30th November 2008, 13:45
Hi, have a PAL DV capture BFF interlaced 720x576 from a Canon MV920 to go onto DVD using HCenc leaving as BFF interlaced. Just wanted to check if there's a easier more more effective way to achieve the same or nicer denoising than this script with MT - Suggestions welcomed including variations in plugins (eg Convolution3d, or say, newer versions of plugins)

SetMTmode(mode=5,threads=4) # start with mode=5 forAVIsource http://forum.doom9.org/showthread.php?p=1067216#post1067216
SetMemoryMax(256)
# snip loaded plugins
AviSource("G:\HDTV\capt\capt-type1.08-11-30_20-39.00.avi", audio=false)
AssumeFPS(25)
AssumeBFF()
Function Do_Stuff_In_MTi(clip "inpclp") {
zMTclp=inpclp
zMTclp=zMTclp.FFT3DFilter(sigma=3, plane=0, sharpen=1.0, degrid=1.0, interlaced=false) # luma first
zMTclp=zMTclp.FFT3DFilter(sigma=5, plane=3, sharpen=1.0, degrid=1.0, interlaced=false) # chromas next with more filtering
zMTclp=zMTclp.HDRAGC(coef_gain=0.1, min_gain=0.1, max_gain=0.5, coef_sat=1.0, corrector=0.8, reducer=2.0, black_clip=1.0)
#zMTclp=zMTclp.HDRAGC(coef_gain=0.1, min_gain=0.2, max_gain=1.0, coef_sat=1.0, corrector=0.8, reducer=2.0, black_clip=1.0)
#zMTclp=zMTclp.LimitedSharpenFaster(smode=4) # ,strength=110
RETURN zMTclp
} # end of function Do_Stuff_In_MTi
MTi("Do_Stuff_In_MTi(LAST)")
Converttoyv12(interlaced=true)
SetPlanarLegacyAlignment(True)
Distributor() # use this when using HC and SetMTmode, per http://forum.doom9.org/showthread.php?p=1063622#post1063622


Here's a clip of an inside scene http://rapidshare.com/files/168841029/cut1.avi (5.7Mb). Outside scenes in the sun aren't a whole lot better with this camera. Subtle HDRAGC seems to do a good job. There's a lot of "ringing" (ghosting?) I think it's called that, suggestions on how to handle that would be welcome.

2Bdecided
30th November 2008, 19:51
It's not that bad. If you normally wobble the camera like that (i.e. you weren't just laughing at that moment or something) then deshaker is needed, which could completely change your workflow.

Bit confused by your use of interlaced=false on an interlaced clip, but haven't actually tried the script yet to see if I've missed something here.

Cheers,
David.

halsboss
30th November 2008, 22:41
OK, thanks for the feedback. Am accepting of all suggestions.

Interlaced=false in the fft3dfilter was because it's inside MTi which separates fields and processes one field in each of the 2 threads.

I'd wondered about HDRAGC on interlaced separated fields and whether there was a more valid way to do that.

Will look into deshaker, but am happy with the clips on the basis the camera (like most now) has a rudimentary inbuilt anti-wobble feature which seems to work for small movements.