Log in

View Full Version : help needed restoring bad dvd transfer


Takie
10th May 2010, 22:02
I have a series of shortfilms from the BMW "The hire" collection on NTSC DVD that I would like to convert to 24p AVCHD(1280*720). The source is of poor quality, telecined and heavy interlaced. This is the avisynth code I used so far:

LoadPlugin("C:\Program Files (x86)\Megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Chosen.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
#deinterlace + inverse telecine
edeintted = SeparateFields().SelectEven().eedi2(field=-1,pp=3)
tdeintted = TempGaussMC_beta2(edeint=edeintted,tr2=3,EdiMode="nnedi3")
tfm(order=-1,clip2=tdeintted,slow=2,mode=5,PP=7).tdecimate(hybrid=1)
#crop
Crop(2, 104, -2, -104)
#resize
Spline64Resize(1280, 544)
#denoise
MCTemporalDenoise(settings="medium")
#add borders to make AVCHD compliant
AddBorders(0, 88, 0, 88, color=$000000)

I'm not very satisfied with the result, in some frames the interlacing artifacts are still very present(example (http://users.telenet.be/takie/sample.png)). Then again I know very little of IVTC and the proper avisynth code for it. I would like to achieve the best result possible (fps is no issue) so any help is much appreciated. A sample of the source can be found here (http://rapidshare.com/files/385797004/sample.vob).

Thanks!

Dogway
10th May 2010, 22:48
What about vinverse?

TFM(order=1,slow=2)
TDecimate().Vinverse()

or maybe lowering combing detection threshold in tfm?

Audionut
10th May 2010, 23:47
DGDecode_mpeg2source("D:\Chosen.d2v", info=3)
TempGaussMC_beta2()
srestore(frate=23.976)
Crop(2, 104, -2, -104)
Spline64Resize(1280, 544)
AddBorders(0, 88, 0, 88, color=$000000)

http://img63.imageshack.us/img63/9566/samplemc.png

edit: after taking a better look at the sample after posting, there is some ugly lines top and bottom that I personally would crop out, so maybe, Crop(2, 106, -2, -106)

Dogway
11th May 2010, 00:49
Those ugly lines must be flicker because you are bobbing, hence loosing half vertical resolution. For this source you only need a field matcher like tfm.

Takie
15th May 2010, 11:00
Thanks for the advise. I adjusted some tfm parameters and now the interlacing artifacts are gone. This is the script:

MPEG2Source("D:\Temp\Chosen.d2v", cpu=0)
test=TempGaussMC_beta2(tr2=3,EdiMode="nnedi3").selecteven()
tfm(slow=2,MI=15,pp=7,mode=5,clip2=test).tdecimate()
Crop(2, 104, -2, -104)
Spline64Resize(1280, 544)
MCTemporalDenoise(settings="medium")
AddBorders(0, 88, 0, 88, color=$000000)

Output picture quality is very good but I do have heavy judder in some scenes. Anyway to fix that?