Re: getting a filter input's current frame number
Re: getting a filter input's current frame number
- Subject: Re: getting a filter input's current frame number
- From: Peter Litwinowicz <email@hidden>
- Date: Wed, 07 Oct 2009 14:46:25 -0700
- Thread-topic: getting a filter input's current frame number
Title: Re: getting a filter input's current frame number
Paul,
FYI, I’m running into this issue as well (see thread below). And it’s starting to be a major pain as more and more people are starting to use Twixtor within FCP.
See the email I sent you off-line for an FCP project that shows the problem.
Pete
Just to expand on what Darrin said:
There are two concepts at play here: the "start time" and the "in point". "Start time" refers to the start of an item in the timeline; that is, the offset from the start of the timeline to the start of the clip. "In point" refers to the amount that you have trimmed the head of the clip; that is, the offset from the start of the media to the first frame of the clip.
In the timeline, you change the start time by grabbing the middle of the clip and dragging it around. You change the in point by grabbing the left edge of the clip and moving it inward, shortening or lengthening the clip.
-startTimeOfInputToFilter and friends return the "start time", not the "in point". This is what the documentation says they will do, and they function correctly in both Final Cut and Motion. In order to get the "in point", we'd need new API: -inPointOfInputToFilter, most likely.
Unfortunately, we can't add new API in a point release, which is why this will have to wait until our next major release.
- Paul
On Sep 16, 2009, at 9:37 AM, Darrin Cardani wrote:
OK. Paul and I spent some time discussing this, and Paul spent some time writing up a test filter, and we've come to the conclusion that you're right – there is no way to get the in point of a piece of footage, so there's currently no way to do what you want. We won't be able to remedy this in a point release, but hopefully we can get it done for the next major release. Please file a bug describing exactly how you'd like it to work. And anyone else who wants this functionality please do the same.
Thanks,
Darrin
On Sep 11, 2009, at 10:29 AM, Brian Gardner wrote:
Thanks, Darrin.
Please make sure to use the razor tool in FCP, or some equivalent in Motion,
to Cut the clip in half. Since that is the real test of -startTimeOfInputToFilter.
-- Brian
On Sep 11, 2009, at 9:02 AM, Darrin Cardani wrote:
Brian,
That sounds like the right thing to do. I'll see if I can figure out why it's not working for you. I'm not working a full day today, so it will probably be sometime next week before I have an answer.
Darrin
On Sep 8, 2009, at 1:26 PM, Brian Gardner wrote:
In a FxFilter, at the currentTime, I want to know
how many frames I am from the start of the Input image video.
How can I get that?
Not the current frame in the Clip, nor Timeline.
But the current frame in the Input video.
I've read through all the docs I can find.
The docs for timing API's "-startTimeOfInputToFilter"
seems to say this is what it does.
But, in practice, it seems to return same results as -startTimeOfEffect,
which is the number of timeline frames to the start of the Clip (not Input).
But, so far, nothing seems to work.
Everything looks good, until I cut a clip in half.
Then the 2nd half of the FxFilter is giving numbers
that seems to measure frames from start of clip...
not the frame number of the input video the FxFilter
is operating on.
This seems to be true for all the API calls that I've tried.
(And I've tried a lot.)
Could you please tell me which API call is supposed to return
the current frame number of the Input video?
-- Brian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Darrin Cardani
email@hidden
--
Darrin Cardani
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden