Log in

View Full Version : selecting frames for specific filters


rvas18
28th January 2003, 19:49
I am ripping Raging Bull. It is a black n white movie whit a few color scenes in the middle. i am gonna resize, crop, convolution3d, and temporal smooth (should i use spatial?) the whole movie. BUT i would like to know a way to script the avs so that lets say frames 0-1500 use greyscale() then 1501-2000 are as is, then use greyscale again for 2001-3000. i have no idea how to approach this dueto limited avisynth sciptng knowlege.

thanks, any suggestions appreciated

rvas18 ~~Raśl

Manao
28th January 2003, 20:13
something like :

video = mpeg2source("video.d2v")

color_clip = trim(video,1501,3000)
bw_clip_1 = trim(video,0,1500)
bw_clip_2 = trim(video,3001,100000)

end_color_clip = color_clip.crop(a,b,c,d).lanczosresize(e,f).fluxsmooth(x,y)
end_bw_clip_1 = ...
end_bw_clip_2 = ...

end_clip = end_bw_clip_1 + end_color_clip + end_bw_clip_2

return end_clip


For more information about the avisynth's syntax, read the docs in the avisynth directory.

E-Male
28th January 2003, 20:16
try something like this

a = trim(0,1500)
b = trim(1501,2000)
c = trim(2001,3000)
a = a.greyscale()
c = c.greyscale()
movie = a+b+c
return movie

good luck
E-Male

EDIT: the first reply wasn“t there when i staretd writing, it“s better than mine, so you can ignore this one

hakko504
28th January 2003, 20:19
color=aviSource(clip.avi)

color=color.crop(8,0,-8,0)
color=color.Lanczosresize(512,384)
BW=color.greyscale()
BW=BW.Convolution3d(preset="movieLQ")
total=color.trim(0,1500)+BW.trim(1501,2000)+color.trim(2001,0)


This script will add greyscale and C3D to frame 1501 to 2000. A better solution have been discussed here. (http://www.avisynth.org/forum/viewtopic.php?p=25)