Log in

View Full Version : Interlaced material and how to script correctly?


lrosado
22nd March 2004, 17:44
I am capturing a VHS movie. Interlaced. Now I want to crop the top and bottom and resize it to 16:9 ratio. but when I do this in CCE I get the combing effect. How do I script this to get it to encode correctly. I read something about separating fields and then weaving them back after resize. And should I use Lancosresize instead of bicubicresize?

Hear is How I scripted it, please correct me where I went wrong. I am so use to IC8 and DVDShrink that I have lost knowledge on how to use Avisynth.


LoadPlugin("D:\mpeg2dec3_25\MPEG2Dec3.dll")
LoadPlugin("D:\decomb510\Decomb510.dll")
mpeg2source("D:\Capture\DEADLY_FRIEND.d2v")
cROP(16,62,-16,-62)
BicubicResize(720,480,0.0,0.6)
AddBorders(0,0,0,0)
Telecide(0)
Decimate(cycle=5)
ConvertToYUY2(interlaced=true)
AddAudio()

Ark
22nd March 2004, 18:17
You have to run Telecide() BEFORE resize(and crop, for safety), or it'll fail to correctly recognise fields. So:

LoadPlugin("D:\mpeg2dec3_25\MPEG2Dec3.dll")
LoadPlugin("D:\decomb510\Decomb510.dll")
mpeg2source("D:\Capture\DEADLY_FRIEND.d2v")
Telecide(0)
Decimate(cycle=5)
cROP(16,62,-16,-62)
BicubicResize(720,480,0.0,0.6)
AddBorders(0,0,0,0)
ConvertToYUY2(interlaced=true)
AddAudio()

For Bicubic/Lanczos, Bicubic gives less sharpness but better compressibility, Lanczos is only a shorthand for Bicubicresize with high level of "sharpening"(the second value after width.height, but I don't know the value...)

Anyway, you can find all of these informations by simply reading the Avisynth Documentation, and (in this case) the Decomb package documentation

I've a doubt about AddBorders(0,0,0,0), that used in this mode does nothing, like Addaudio() without an argument (I guess, I've never used it), and the ConvertToYUY2(interlaced=true): after decomb, the material is progressive, not interlaced (if you want it to be interlaced you have to add a line Weave() after Bicubicresize())

lrosado
22nd March 2004, 18:21
Thanks for your help will try. I've been reading the avisynth docs but It doesnt explain the order it goes in. That's why I asked but thanks again for helping me out. hopefully this will do the trick. I'll repost on my results

mf
22nd March 2004, 18:41
Originally posted by Ark
For Bicubic/Lanczos, Bicubic gives less sharpness but better compressibility, Lanczos is only a shorthand for Bicubicresize with high level of "sharpening"(the second value after width.height, but I don't know the value...)
Wrong. You're right that Bicubic with 0, 0.75 as coefficients is very similar to Lanczos, but the actual kernel is different. Also, with Lanczos4 kernel added to the latest CVS version, the resize should be even more different.

Ark
22nd March 2004, 18:58
Originally posted by mf
Wrong. You're right that Bicubic with 0, 0.75 as coefficients is very similar to Lanczos, but the actual kernel is different. Also, with Lanczos4 kernel added to the latest CVS version, the resize should be even more different.

Ooops...

Hehe, I've much to learn...

...but i remember that in the Avisynth doc. there is this information ("Lanczos is a shorthand for bicubic with high value of "sharpening"")

...no the doc. says that it's an "alternative", so similar but not the same thing...

Ok, i'm totally wrong :D