Log in

View Full Version : Help writting an avisynth script in one line


cerncern
3rd February 2008, 20:21
Hi everyone. I have a doubt about avisynth usage.

I have the need of writing all filtering process in one line like this example(this one works):

video= Mpeg2Source("D:\Anime\DVD 1.d2v").tweak(hue=1,sat=1.3,cont=1.15, bright=-5).Deen("a3d",1,10,10).FFT3DFilter(sigma=2,plane=4,bt=2,sharpen=.5).hqdering().crop(4,4,-8,-4).lanczosresize(640,480).limiter().LUMAFILTER().dup(threshold=0.5,blend=true)

The reason is that after that I make an overlay with a mask video.

The problem occurs when I try to make something similar with this script:

degrainmedian(mode=1)
dx = 640
dy = 480
dull = last.Spline36Resize(dx,dy)
sharp = dull.LimitedSharpenfaster(Smode=3,strength=100,ss_x=2.0,ss_y=2.0,overshoot=1,dest_x=dx,dest_y=dy)
Soothe(sharp,dull,20)

When I try to write everything in one line I always get syntax error. Any help will be welcome. Thanks in advance.

Didée
3rd February 2008, 20:44
Your "reason" for the need to everything in one line is a non-reason. Please make more clear what exactly you want to achieve. I can almost guarantee you that having everything in one line is not needed for that.

Just for fun:

Soothe(last.Spline36Resize(640,480) .LimitedSharpenfaster(Smode=3,strength=100,ss_x=2.0,ss_y=2.0,overshoot=1,dest_x=640,dest_y=480), last.Spline36Resize(640,480),20)

leoenc
3rd February 2008, 20:59
Why not simply import the first script to a second script for overlay?

cerncern
3rd February 2008, 21:28
Your "reason" for the need to everything in one line is a non-reason. Please make more clear what exactly you want to achieve. I can almost guarantee you that having everything in one line is not needed for that.

Just for fun:

Soothe(last.Spline36Resize(640,480) .LimitedSharpenfaster(Smode=3,strength=100,ss_x=2.0,ss_y=2.0,overshoot=1,dest_x=640,dest_y=480), last.Spline36Resize(640,480),20)

Thanks Didee,

I realized by myself that it could be done without a single line, the thing is that since I started to do overlays all the filtering was on a single line.

Investigating a bit, I got the solution.

Thanks a lot to everyone.