Log in

View Full Version : Script for interlaced material


Glebix
13th January 2005, 23:36
Hi, I could use some help in turning my included script into more interlace compatible. I guess it's not enough if i just put the SeparateFields() right after avisource and Weave there after undot(), right? Isn't there something "special" you gotta do with that convolution3d for example? I remember seeing something like that...


AVISource("D:\file.avi")
SeparateFields()
Convolution3d(preset="movieLQ")
LanczosResize(496,224,0,0,640,240)
undot()
Weave()
AddBorders(24,16,24,16)
ConvertToRGB24(interlaced=true)

stickboy
14th January 2005, 01:12
See this thread:
How to process interlaced and the final result to be interlaced (http://forum.doom9.org/showthread.php?s=&threadid=86394)

Glebix
14th January 2005, 17:23
Ok so I checked that thread and I came out with this..

AVISource("D:\file.avi")
SeparateFields()
odd=SelectOdd.Convolution3d(preset="movieLQ")
even=SelectEven.Convolution3d(preset="movieLQ")
LanczosResize(496,224,0,0,640,240)
odd=SelectOdd.undot()
even=SelectEven.undot()
Weave()
AddBorders(24,16,24,16)
ConvertToRGB24(interlaced=true)

Did I do it right? :rolleyes:

scharfis_brain
14th January 2005, 17:30
no.


AVISource("D:\file.avi")
SeparateFields()
odd=SelectOdd.Convolution3d(preset="movieLQ").undot()
even=SelectEven.Convolution3d(preset="movieLQ").undot()
interleave(even,odd)
LanczosResize(496,224,0,0,640,240)
Weave()
AddBorders(24,16,24,16)
ConvertToRGB24(interlaced=true)

btw. I would recommend the bob()-filter()-reinterlace() approach.

Glebix
14th January 2005, 18:58
Ok so now I read the thread a little more carefully and your bob()-filter()-reinterlace() method sure does seem the best way to do this..

:) like this? :

AVISource("D:\file.avi")
assumebff()
bob()
Convolution3d(preset="movieLQ")
LanczosResize(496,448,0,0,640,480)
undot()
AddBorders(24,16,24,16)
ConvertToRGB24(interlaced=false)
assumebff()
separatefields().selectevery(4,0,3).weave()

troy
15th January 2005, 04:48
what about this script. Is this a good way to do interlaced material also.

AVISource("D:\file.avi")
JDL_UnfoldFieldsVertical(true)
Convolution3d(preset="movieLQ")
Undot()
JDL_FoldFieldsVertical(true)

stickboy
15th January 2005, 09:15
Well, I certainly think so, but I'm biased. :)

Boulder
15th January 2005, 10:47
Originally posted by Glebix
Ok so now I read the thread a little more carefully and your bob()-filter()-reinterlace() method sure does seem the best way to do this..

:) like this? :

AVISource("D:\file.avi")
assumebff()
bob()
Convolution3d(preset="movieLQ")
LanczosResize(496,448,0,0,640,480)
undot()
AddBorders(24,16,24,16)
ConvertToRGB24(interlaced=false)
assumebff()
separatefields().selectevery(4,0,3).weave()
You're even better off using a smart bob, like the one included in TDeint:
AVISource("D:\file.avi")
assumebff()
TDeint(mode=1,tryweave=false)
Convolution3d(preset="movieLQ")
LanczosResize(496,448,0,0,640,480)
undot()
AddBorders(24,16,24,16)
ConvertToRGB24(interlaced=false)
assumebff()
separatefields().selectevery(4,0,3).weave()

Glebix
15th January 2005, 12:52
Thx for that Boulder. And thx to all I appreciate the help I've been given. :p

North2Polaris
16th January 2005, 01:09
What is the purpose of the resize and add borders step?

LanczosResize(496,448,0,0,640,480)
undot()
AddBorders(24,16,24,16)

Thanks.

Glebix
16th January 2005, 01:33
Not sure what you mean by that but it doesn't have anything to do with the -interlacing- things in my script if that's what you thought..??

I just have them in my script to resize the video and add some overscan..

North2Polaris
16th January 2005, 02:15
@Glebix,

Sorry, I wasn't clear. Your script yields a 544 x 480 frame size. I was trying to figure out what your target output is.

North

Glebix
16th January 2005, 10:06
Oooh ok.. The target output will be a non-standard DVD.