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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th September 2003, 15:59   #1  |  Link
primitive
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))
The example in the documentation for the behavior that I want is:

Code:
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:

Code:
clip1 = selectEvery(clip1,11526)
clip1 = selectEvery(clip1,0,11526)
I am using Avisynth 2.5.2.
__________________
xvid + vorbis + ogm = dance all night
primitive is offline   Reply With Quote
Old 4th September 2003, 16:07   #2  |  Link
primitive
Registered User
 
Join Date: Mar 2002
Posts: 130
Nevermind, I am an idiot.

Code:
clip1 = selectEvery(clip1,round(frameCount/numSamples),0)
^^^ works fine.
__________________
xvid + vorbis + ogm = dance all night
primitive is offline   Reply With Quote
Old 4th September 2003, 17:35   #3  |  Link
stickboy
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.
stickboy is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.