phlogiston
19th July 2003, 05:52
Hi!
I've got a weird avisynth problem. I have an anime video with a perfectly good opening sequence, but after that sequence, the animators must have slacked off and the quality of the video starts to turn bad. It can be fixed by tweaking the levels argument, but it then craps up the perfectly good opening sequence.
Now I do know the lazy way out of it: cut the sequences, use levels appropriately, then splice them up together later. What bugs me is that it is not exactly the solution I had in mind. I reading the avisynth documentation and trying to get a sort of IF-THEN thing going on. Yes, I am a programming newb and can't figure it out. :(
Say I note that the crappy video starts coming at frame 100, and I am trying to create a function that starts the levels filter after that 100th frame. How do I do that?
My current AVS has this function (which doesn't work :mad: )
function FIXIT()
{
return mpeg2source("kknjda.d2v")
clip.framecount>=100
levels(45,55,200,0,160)
}
What I'm trying to do is something that goes like this :
return mpeg2source("kknjda.d2v")
if clip.framecount>=100,
then levels(45,55,200,0,160)
I've got a weird avisynth problem. I have an anime video with a perfectly good opening sequence, but after that sequence, the animators must have slacked off and the quality of the video starts to turn bad. It can be fixed by tweaking the levels argument, but it then craps up the perfectly good opening sequence.
Now I do know the lazy way out of it: cut the sequences, use levels appropriately, then splice them up together later. What bugs me is that it is not exactly the solution I had in mind. I reading the avisynth documentation and trying to get a sort of IF-THEN thing going on. Yes, I am a programming newb and can't figure it out. :(
Say I note that the crappy video starts coming at frame 100, and I am trying to create a function that starts the levels filter after that 100th frame. How do I do that?
My current AVS has this function (which doesn't work :mad: )
function FIXIT()
{
return mpeg2source("kknjda.d2v")
clip.framecount>=100
levels(45,55,200,0,160)
}
What I'm trying to do is something that goes like this :
return mpeg2source("kknjda.d2v")
if clip.framecount>=100,
then levels(45,55,200,0,160)