Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
4th September 2003, 15:59 | #1 | Link |
Registered User
Join Date: Mar 2002
Posts: 130
|
unrecognized exception with selectEvery()
Jesus, I'm posting a lot today...
The problem is that I'm trying to write a script that will return numSamples frames from the source video spaced equally through the film. I'm getting an invalid arguments error on this line (frameCount was defined previously and is being correctly initialized): Code:
clip1 = selectEvery(clip1,round(frameCount/numSamples)) Code:
SelectEvery(clip,9) # select frames 0,9,18,... (second argument of 0 is assumed) It shouldn't matter, but the expression round(frameCount/numSamples) for this clip evaluates to 11526. The following two expressions don't work either, and give the same errors: Code:
clip1 = selectEvery(clip1,11526) clip1 = selectEvery(clip1,0,11526)
__________________
xvid + vorbis + ogm = dance all night |
4th September 2003, 17:35 | #3 | Link |
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
Yeah, what the documentation says and what AviSynth actually does are different for that case. (I think the documented behavior the way it ought to be.)
Last edited by stickboy; 4th September 2003 at 17:42. |
|
|