Log in

View Full Version : Can't get this to deinterlace properly


tomos
21st February 2006, 21:38
trying to sort out a video i have to be able to convert from mpeg to avi (x264)

have done this loads with the same kind of video with the following script (or a variant of it)


Loadplugin("DGDecode.dll")
Loadplugin("C:\Program Files\AviSynth 2.5\plugins\Decomb521.dll")
Loadplugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll")
MPEG2Source("thingy.d2v")
Telecide(order=1)
Decimate()
UnDot()


for some reason, this one just doesnt work on this clip. the picture kinda blends together in a really bad way when anything is done to it.

it does contain 3:2 pulldown, and have checked it in vdub (3p then 2i frames) and it is top field first also.

i tried setting different vthresh values after following this guide
http://neuron2.net/decomb/DecombTutorial.html

all done as this said. found a threshold to seperate progressive from interlaced etc, but i still have no joy. this is the last avs file i tried, and still the same

MPEG2Source("clip.d2v")
Telecide(order=1,guide=1,post=2,vthresh=100)

this is what the end result is :( - thats with both avs scripts. neither has any real effect

http://www.na-nog.demon.co.uk/Image2.jpg

its like part of the last field is overlayed ontop of the next. this only happens on the interlaced scenes. progressive is fine :(

anyone have any suggestions as to what to try next? i'm almost ready to give up on this one now :(

tomos
23rd February 2006, 22:08
anyone?

tried using autoGK to make a script for me as suggested by someone on another forum, but that doesnt fix this either :scared:

Guest
23rd February 2006, 22:20
Post a link to an unprocessed VOB fragment so that we may analyse it.

tomos
24th February 2006, 18:59
any free places to upload to?

scharfis_brain
24th February 2006, 19:04
there are a lot of places to put your files on!

eg.:
rapidshare.de
megaupload.com

communist
24th February 2006, 19:05
http://forum.doom9.org/showthread.php?t=96362

tomos
24th February 2006, 19:24
thanks guys, have a clip here

http://rapidshare.de/files/14041574/bill.ts.html

its just under 15 meg

hopefully someone will have better luck than i have with this :)

tomos
26th February 2006, 16:42
anyone had a chance to check this out?

iv'e tried other deinterlacers but cant get anything better than whats in the pic above

quake74
28th February 2006, 13:17
I downloaded it but cannot process with avisynth. Using mpeg2source("bill.ts") says that there is a mismatch for the dgdecode dll, and trying to opening it with dgdecode it cannot produce a d2v ("No data. Check your PIDS.")

tomos
28th February 2006, 13:42
weird. i can open it no prob at all after running through dgindex

quake74
28th February 2006, 14:23
Ok, when dgindex says "check your pids" one should go into the apppropiate menu and check the pids ;) Now I produces a d2v and feed it into megui which says it's a hybric film/ntsc, majority film, tff (margin 27 to 0). Megui suggests using tfm().tdecimate(hybrid=1) and I also tried something else. I produced the following file using
clip = mpeg2source("bill.d2v")
a = clip.tfm().tdecimate(hybrid=1)
b = clip.tdeint(1,1,mtnmode=3).blendbob()

stackhorizontal(a.lanczosresize(640,480),b.lanczosresize(640,480))

http://rapidshare.de/files/14341427/test.avi.html

I don't see any artifacts as bad as the one you showed in either one of them.

tomos
28th February 2006, 17:48
will give that script a go when i get home (minus the resize :) )

thanks a lot for this :D

tomos
28th February 2006, 22:17
just tried this now, but the tfm bit gives an err

"there is no function named 'tfm'"

had a look on http://www.avisynth.org/warpenterprises/

but cant see the filter there

searched for it here but dont get 'any' search results?

Mr. Brown
28th February 2006, 22:28
TFM is in the TIVTC Filter Packeage !

http://bengal.missouri.edu/~kes25c/

tomos
28th February 2006, 22:53
have all the filters that 'quake74' was using added now so i'm able to open the script fine, except now something really weird is happening

i'm seeing the split screen effect from quakes avi. how do i get the avs to show the video normally?

i guess this is the stackhorizontal part but i cant remove it and still load the avs in vdub.

quake74
28th February 2006, 23:43
have all the filters that 'quake74' was using added now so i'm able to open the script fine, except now something really weird is happening

i'm seeing the split screen effect from quakes avi. how do i get the avs to show the video normally?

i guess this is the stackhorizontal part but i cant remove it and still load the avs in vdub.

Yes, it's the stackhorizontal part. I like it because you can use media player classic and step frame by frame and compare (not so much in this case since the fps are different). The idea is that you look at the avi and choose the one you like, say the right one. Then you create a new avs file which contains just
mpeg2source("bill.d2v")
tdeint(1,1,mtnmode=3).blendbob()
and then open that one with virtualdub. If you like the other one better, use the other lines. People with more knowledge than me will explain you more stuff (a helpful site is http://www.100fps.com). And then there's crop and resize etc etc (but I guess you'll do that in virtualdub)

tomos
28th February 2006, 23:56
ahh, get it now. 1st one seems to handle the awkward scenes better

thanks again m8 :D