logo Sign In

Post #74550

Author
Laserschwert
Parent topic
.: The Zion DVD Project :. (Released)
Link to post in topic
https://originaltrilogy.com/post/id/74550/action/topic#74550
Date created
30-Oct-2004, 8:13 AM
Oops, my mistake... I meant "SangNom for AviSynth"... it was late. I've tried to do as much processing in AviSynth as possible... this spares me some uneccessary further inbetween steps. I didn't use the antialiasing-script from Doom9... I've started with it, but it was slow as hell. So I've tried using SangNom alone, and that's the result you see above. Here's the script:

    LoadPlugin("E:\Programme\AviSynth2\plugins\bak\MaskTools.dll")

    v1=AviSource("e:\zion_rec.avi").SeparateFields.SelectEvery(10,0,1,2,3,4,5,6,9).Weave.AssumeFPS(23.976)
    v2=AviSource("e:\zion_rec.avi").SeparateFields.SelectEvery(10,0,1,2,3,4,5,6,9).Weave.AssumeFPS(23.976).crop(4,0,0,0).AddBorders(0,0,4,0, color=$FFFFFF).blur(.5)

    v3 = overlay(v1,v2, opacity=0.2, mode="Darken")

    v4 = v3.Crop(0,102,-0,-102).Lanczos4Resize(720,600)

    v4a=v4.SangNom(order=0)
    v4b=v4.SangNom(order=1)

    v5 = v4a.ConvertToYV12.overlay(v4b, opacity=0.5).LimitedSharpen
    v6 = v5.Levels(0,1.236,224,0,255).Lanczos4Resize(720,376).AddBorders(0,52,0,52)

    Return v6


The steps until v3 are necessary for my "bright ghost"-removal, so the script gets a little big there (strange enough the Telecide filter, which worked well in the past, now gets me one double frame every 5 or so frames... that's why I've returned to my manual IVTC-method using SelectEvery).

v4 is used to cut off the black bars from the capture, and to provide some extra resolution for SangNom to work with. Now, you can see that I've used two instances of SangNom, resulting in v4a and v4b. The reason is, SangNom was developed as a deinterlacing filter, so it is used to work with "bobbing" footage (footage, that is deinterlaced, and therefore alternates, "bobs", between the two fields), so it needs some info on the footage's field-order. In this case though there is no field order, since the jaggy lines are not resulting from deinterlacing anything.

So, we'll use SangNom for both possible field-orders (v4a and v4b), and blend the two results in v5. I am also adding the LimitedSharpen script (which I might post or link to on request), to compensate for any blurring caused by SangNom, and since that script needs the MaskTools-package, I've loaded it in the first line (it causes some trouble when being autoloaded from the AviSynth plugin directory, so you have to put it in some other directory and load it manually).

v6 doesn't do too much... some little contrast correction (I guess this could be left out when you do the color correction in Premiere afterwards), the image get's resized to the anamorphic size, and the black bars are added to give the image the full resolution of 720x480.

I hope this helps.