View Full Version : deinterlacing 1080i with eedi2 and tdeint errors
nomis1804
27th June 2007, 13:07
I am trying to deinterlace a 50fps h264 1080i broadcast to 25fps using eedi2 and tdeint. Here is my avs script:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TIVTC.dll")
LoadPlugin("DGAVCDecode.dll")
AVCSource("lcd.dga")
trim(378, 388)
edeintted = last.AssumeTFF().SeparateFields().SelectEven().EEDI2()
TDeint(edeint=edeintted)
Crop(4,0,-4,-2)
BicubicResize(960, 544)
The problem I'm having is only on a few frames with lots of motion but it's very noticeable when watching. Here is one of the frames with errors:
http://img227.imageshack.us/img227/898/framezn3.jpg
I'm really not sure what's going on here any help would be appreciated.
scharfis_brain
27th June 2007, 14:09
this is due to motionmasking artifacts.
you may use yadif or securebob.
but as you are halving the resolution anyway there is no need for high quality interpolation methods.
so you could be fully satisfied with separatefields().selecteven() and horizontal ONLY resizing (do not alter the vertical pixelcount!)
also be sure to crop 1088 lines to 1080 lines before any processing!
nomis1804
27th June 2007, 14:21
I tried separatefields().selecteven() but I was getting annoying horizontal lines which were eliminated with eedi2 + tdeint.
I will give yadif and securebob a try.
Thanks for the help :)
scharfis_brain
27th June 2007, 14:28
provide an unprocessed sample clip (the demuxed h264 suffices).
normally there cannot occur lines after separatefields().selecteven()!
nomis1804
27th June 2007, 14:45
This is the part where the lines are most noticeable, it usually seems to happen when there are flashes or lots of movement. I can give you a longer clip if you need.
http://rapidshare.com/files/39646464/test.ts.html
scharfis_brain
27th June 2007, 14:49
how can I demux that without much hassle?
nomis1804
27th June 2007, 14:58
easiest thing to do would be ffdshow libavc for decoding and haali (http://haali.cs.msu.ru/mkv/) for demuxing then DirectShowSource in the .avs. Is that what you were after?
scharfis_brain
27th June 2007, 15:15
my h.264 directshow chain currently is broken (I am not able to even watch h.264 contents)
nomis1804
27th June 2007, 15:17
OK thanks anyway. Yadif is just what I was after it looks great for the stuff I've tried it on so far :)
nomis1804
27th June 2007, 15:33
This was the kind of thing I was talking about in that clip, this is after Yadif(). I'm thinking it might just be the way it was encoded though?
http://img297.imageshack.us/img297/213/untitled1sd2.jpg
Atak_Snajpera
27th June 2007, 21:57
try to use
tdeint(mthreshL=0)
halsboss
28th June 2007, 02:10
Yadif is just what I was after it looks great for the stuff I've tried it on so far :)
Doing a search but lots of posts top trawl for the link to it ... any hint as to where you scored it ?
nomis1804
28th June 2007, 14:11
Doing a search but lots of posts top trawl for the link to it ... any hint as to where you scored it ?
Yeah the link is tucked away right at the bottom of the page it's: http://avisynth.org.ru/yadif/yadif08.zip and you need to use Load_Stdcall_plugin("yadif.dll") to load it (had me stumped for a while).
I've just tried tdeint(mthreshL=0) and it's looking good, don't know whether to use that or Yadif now :). Thanks
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.