View Full Version : Filter trimmed video parts then joining them
adyga
6th January 2006, 16:49
Hi,
I read most of the Avisynth manual, but a little help in here is appreciated:)
I want to filter differently each segment of trimmed frames of a clip.
I guess I have to do:
AVISource("clip.avi")
Trim(0,100)
#Convolution3D filter settingsNR1
Trim(101,200)
#Convolution3D filter settingsNR2
if I am doing that I will end up on the last segment being filtered with Convolution3D about the number of segments.
any help?
Richard Berg
6th January 2006, 17:58
Avisource("clip.avi")
part1 = Trim(0,100).Convolution3D(asdf1)
part2 = Trim(101,200).Convolution3D(asdf2)
part1 + part2
adyga
6th January 2006, 18:23
Thanks a lot Richard Berg, I noticed that dot (.) is used to separate different progressive filters in chain, but what to do for an interlaced input ?
convolution3d filter for an interlaced single clip is:SeparateFields()
odd=SelectOdd.Convolution3D(0, 32, 128, 16, 64, 10, 0) #VHS BQ
evn=SelectEven.Convolution3D(0, 32, 128, 16, 64, 10, 0) #VHS BQ
Interleave(odd,evn)
Weave()
what would your script look like then ?
Richard Berg
6th January 2006, 18:51
function MyC3D (clip c, string p)
{
SeparateFields(c)
odd=SelectOdd.Convolution3D(preset=p) #VHS BQ
evn=SelectEven.Convolution3D(preset=p) #VHS BQ
Interleave(odd,evn)
return Weave()
}
Avisource("clip.avi")
part1 = Trim(0,100).MyC3D("vhsbq")
part2 = Trim(101,200).MyC3D("dvd")
part1 + part2
(all examples untested -- may have slight syntax errors)
adyga
6th January 2006, 19:55
Thank you Richard Berg :)
now I now how to manipulate with Function, cause I did not understand it well from the manual, I will make my own functions.avs and import it when neccessary.
GREAT !!
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.