View Full Version : MVDegrain Help
egrimisu
28th June 2008, 11:51
Can't get mvdegrain to work, i don't understand how shall i use this MVDegrain(?)
What is the diference between mvdegrain 1,2,3?
jeffy
28th June 2008, 12:27
Read the documentation included with MVTools, look here if you don't have it:
http://avisynth.org.ru/mvtools/mvtools.html
Example from the documentation:
backward_vec2 = source.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = source.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = source.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = source.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
source.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)
MVDeGrain1 has temporal radius 1 (uses vectors of previous mvfw and next mvbw frames).
MVDeGrain2 has temporal radius 2 (uses vectors of two previous mvfw2, mvfw and two next mvbw,mvbw2 frames).
MVDeGrain3 has temporal radius 3 (uses vectors of three previous mvfw3, mvfw2, mvfw and three next mvbw, mvbw2, mvbw3 frames). It is slower, but produces a little better results (more strong denoising).
jeffy
28th June 2008, 12:29
Adding what MVDegrain does (again from the docs):
Makes a temporal denoising with motion compensation. Blocks of previous and next frames are motion compensated and then averaged with current frame with weigthing factors depended on block differences from current (SAD). Functions support overlapped blocks mode.
egrimisu
30th June 2008, 15:39
Good results ony that the first couple of frames of the result are green + i get articats here and there trough the movie, WHY?
Can't get mvdegrain3 to work, because i don't know what those clip means
IVTC should be used after or befor mvdegrain, if before what should be the soruce = , because if the source is the d2v file then is no ivtc'ing.
Blue_MiSfit
30th June 2008, 17:56
IVTC should happen before everything :) Except dot crawl / interference / rainbow removal.
I think the artifacts you're experiencing may be due to an outdated version of MVTools and / or AviSynth. I suggest running the latest MVTools from avisynth.org.ru and AviSynth 2.5.7 from the official page.
Post your script :)
~MiSfit
egrimisu
30th June 2008, 19:03
No, the green screen it's steel there
Code:
DGDecode_mpeg2source("D:\Work Hanbun no Tsuki ga Noboru Sora\Hanbun_no-Tsuki_ga_Noboru_Sora_01.DVD(MPEG2.WAV)[Misu]_Track1.d2v",info=3)
source = DGDecode_mpeg2source("D:\Work Hanbun no Tsuki ga Noboru Sora\Hanbun_no-Tsuki_ga_Noboru_Sora_01.DVD(MPEG2.WAV)[Misu]_Track1.d2v",info=3)
backward_vec2 = source.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = source.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = source.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = source.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
source.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)
#limitedsharpenfaster()
#animeivtc(mode=1, aa=2)
ttempsmooth()
fft3dfilter(sigma=0.6, bt=5, bw=32, bh=32, ow=16, oh=16, plane=4, dehalo=0, ncpu=2)
How shall i put animeivtc before mvdegrain?
Blue_MiSfit
30th June 2008, 19:14
Hmmm... try it like this (not sure if it will actually help)
mpeg2source("D:\Work Hanbun no Tsuki ga Noboru Sora\Hanbun_no-Tsuki_ga_Noboru_Sora_01.DVD(MPEG2.WAV)[Misu]_Track1.d2v",info=3)
animeivtc(mode=1, aa=2)
source=last
backward_vec2 = source.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = source.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = source.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = source.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
source.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)
~MiSfit
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.