FxGenerator determining recording time of video frame
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com User-agent: Laszlo Mail 3 I need the timestamp data so I can: 1. determine which data file mates with the current video. 2. which data entry mates with the current video frame. _______________________________________________ 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: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... This email sent to site_archiver@lists.apple.com Pie in the sky dreaming? All of my recordings will be made via FCPX "Import From Camera..." 1. Any way FCPX could be directed to add ~10 bytes of metadata to each frame, the timestamp? 2. Any way FCPX could be provided a callback function from a plugin, that would allow the plugin to add ~100 bytes to metadata to each frame? Why I ask: my application is a scientific video recorder, where data acquired from a serial port is used to overlay graphs and text. First attempt to make this work: 1. Get my serial data reception program running first. It will display "data being received, ready to record" kind of status. It uses a system wide NSEvent monitor to know when the user presses the "Import" button in FCPX. When the user later presses the "stop import" button the program will save the dataset to file. 2. User starts a new project and fills it with the recording they just made, and adds to it my plugin, stretched to include the whole region of interest. (When the doctor make a recording of 5 minutes duration, he probably only needs overlay data on 30 seconds of it, the part he wants to break out to use at his next medical conference speech). Pie in the sky request #2. It would be incredible if I could store my dataset directly with the video frame. No external data file required! separate problem. While I wait for XML access to FCPX metadata, I could make the rule that the whole video recording is loaded into FCPX, with no cutting/pasting allowed. Then in renderOutput:: I want to ask FCPX the frame# from the beginning of the whole video, so I can determine the index into the overlay data. But all my attempts to learn this number give me the frame# relative to my plugin, not to the whole video. Is there a call I can make to learn this frame# (please see the attached code, SMCGraphPlugin.mm, line 280..) You might say: why don't you make your plugin begin at frame #0, that way your plugin frame# would match the videos' frame #. Too slow: last time I checked, FCPX took ~30 minutes to Render a 1 minute of plugin (when it didn't crash trying) Thanks for reading this. I know you are all very busy, but if you have time, please look over the attached FxGenerator. Maybe I am doing something drastically wrong to make it Render so slowly. SMCGraphPluginSource.zip
participants (1)
-
kosalos@cox.net