Re: FxPlug Filter - Play to Analyze
No, there’s no way to ensure that. We hope to create an API for frame analysis in the future, but we do not have anything available at this time. Darrin
On Jun 7, 2016, at 4:12 PM, Andrew Santa Maria <asantamaria.pfs@gmail.com> wrote:
Hi all,
The FxFilter that I'm developing requires data from a range of frames in a video. Analyzing a whole range of frames at once takes too long and makes Motion/FCPX temporarily unresponsive (I originally accomplished this all in renderOutput), so I decided to have the user simply start at the beginning of the video and press play (hit spacebar) to sequentially process the frames. This way, the user has an idea of the progress that the FxFilter is making, and Motion is still relatively responsive.
I click a toggle to enable "frame analysis mode" then press play. The first few frames play slowly reflecting that the processing actually happens, but then the playback speeds up, and frames skip as shown in the debug log below: (I have an NSLog( @"Processing frame %f", renderInfo.time.frame ) in renderOutput)
2016-06-07 16:06:15.808 Motion[15401:5271444] Processing frame 0.000000 2016-06-07 16:06:15.813 Motion[15401:5271445] Processing frame 1.000000 2016-06-07 16:06:16.040 Motion[15401:5271444] Processing frame 2.000000 2016-06-07 16:06:16.231 Motion[15401:5271445] Processing frame 13.000000 2016-06-07 16:06:16.529 Motion[15401:5271444] Processing frame 25.000000 2016-06-07 16:06:16.553 Motion[15401:5271445] Processing frame 43.000000 2016-06-07 16:06:16.558 Motion[15401:5271444] Processing frame 44.000000 2016-06-07 16:06:16.576 Motion[15401:5271444] Processing frame 45.000000 2016-06-07 16:06:16.579 Motion[15401:5271445] Processing frame 46.000000 2016-06-07 16:06:16.590 Motion[15401:5271445] Processing frame 48.000000 2016-06-07 16:06:16.592 Motion[15401:5271444] Processing frame 47.000000 2016-06-07 16:06:16.613 Motion[15401:5271444] Processing frame 49.000000 2016-06-07 16:06:16.616 Motion[15401:5271445] Processing frame 50.000000 2016-06-07 16:06:16.632 Motion[15401:5271444] Processing frame 51.000000 2016-06-07 16:06:16.649 Motion[15401:5271444] Processing frame 52.000000
Is there a way to ensure renderOutput runs on every frame during playback?
Thanks,
Andrew Santa Maria _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/dcardani%40apple.com
This email sent to dcardani@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Darrin Cardani