PDA

View Full Version : avisyth script with staxrip


duncanvdlinden
24th May 2006, 00:50
I use staxrip to easely add filters and settings to a avisynth script but some points i can't change. That's not really a problem but i need to change the avisyth code a bit.

the first line stax automaticly and not edittable insert is:

MPEG2Source("%source_file%")
this cannot be change, or delete.

i want a logo overlay and a delogo filter,
so my script look like this:

MPEG2Source("D:\ned3\jib.001.d2v") #not edittable
Import("d:\dekafka.avsi") #delogo script

clip=FieldDeinterlace() #identify actual clip for delogo script
maskclip = ImageReader("d:\mask.bmp") #define mask delogo
maskclip = Loop(maskclip, Framecount(clip))
dekafka(clip, maskclip, 627, 43, maskclip.width, maskclip.height, 256) #delogo script
logo = ImageSource("d:\logo.bmp")
Overlay (logo, 627, 43,mask=logo, opacity=0.6) #overlay logo
Crop(0,2,-0,-2)
BicubicResize(608,336,0,0.5)
Trim(15405,53014)
(i've add some comment to it)

This works nice but,
How can i make it possible to make the script work whitout FieldDeinterlace()?

this is possable with:
clip=MPEG2Source("%source_file%") (staxrip fill in the source name automaticly.
But in this situation i've:

MPEG2Source("%source_file%") #not deletable in staxrip
clip=MPEG2Source("%source_file%")

that's two times the same source,
it works but i've encounter it takes more time to rip.

2 questions:
have sombody a idea to make it possible to give the clip variable the actual clip without a filter like FieldDeinterlace?

is there some point to speed up the conversion?

berrinam
24th May 2006, 01:01
2 questions:
have sombody a idea to make it possible to give the clip variable the actual clip without a filter like FieldDeinterlace?clip = last

duncanvdlinden
24th May 2006, 01:14
Thnx! :) works nice,
now my script look likes this whitout deinterlace and with the bold text with deinterlace:

MPEG2Source("D:\ned3\jib.001.d2v")
FieldDeinterlace()
Import("d:\dekafka.avsi")
clip= last
X=627
Y=40
maskclip = ImageReader("d:\mask.bmp")
maskclip = Loop(maskclip, Framecount(clip))
dekafka(clip, maskclip, X, Y, maskclip.width, maskclip.height, 256)

logo = ImageSource("d:\logo.bmp")
Overlay (logo, X, Y,mask=logo, opacity=0.6)
Crop(0,2,-0,-2)
BicubicResize(608,336,0,0.5)
Trim(15405,53014)


is there a way to make my script rip faster?