primitive
4th September 2003, 15:59
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):
clip1 = selectEvery(clip1,round(frameCount/numSamples))
The example in the documentation for the behavior that I want is:
SelectEvery(clip,9) # select frames 0,9,18,... (second argument of 0 is assumed)
When I change this line to explicitly give the second argument of 0 as the documentation says, I get "Evaluate: Unrecognized exception!
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:
clip1 = selectEvery(clip1,11526)
clip1 = selectEvery(clip1,0,11526)
I am using Avisynth 2.5.2.
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):
clip1 = selectEvery(clip1,round(frameCount/numSamples))
The example in the documentation for the behavior that I want is:
SelectEvery(clip,9) # select frames 0,9,18,... (second argument of 0 is assumed)
When I change this line to explicitly give the second argument of 0 as the documentation says, I get "Evaluate: Unrecognized exception!
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:
clip1 = selectEvery(clip1,11526)
clip1 = selectEvery(clip1,0,11526)
I am using Avisynth 2.5.2.