site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Hi, Kris, Here's some further reading that might be of interest to you: Using C++ with Objective-C: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Article... Final Cut XML: http://developer.apple.com/documentation/AppleApplications/Reference/FinalCu... QuickTime sample code: http://developer.apple.com/samplecode/QuickTime/idxCompressionDecompression-... Hope that helps, - Paul On Feb 7, 2008, at 9:26 AM, Kris van Rens wrote: Hi there, I've built a device driver for MacOS X to be able to read and write bulk video data from/ to a USB device, this all works fine. Now I'd like to write a FxPlug plugin to acquire the video data from my USB device directly into Final Cut Pro. I have read some documentation and came to the conclusion that I will have to write a generator FxPlug plugin, this plugin should then communicate with the device driver. I checked out the examples that come with the FxPlug SDK but as far as I saw there was no example of a plugin that does direct communication with a device driver. Are there specific ways to go about dealing with this plugin to device driver communication? Should I implement the communication with the device driver exactly the way I would when building an user application? Would that have to be done in Objective-C or are there ways to partly implement the plugin in C++? I hope my problem is clear, if not; tell me. Thank you in advance for your time, I really appreciate your help. Greetings, Kris _______________________________________________ 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/pschneider%40apple.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: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... it sounds like you want to write a file importing plugin. FxPlug generators are not really the best choice for that. For one thing, there's no "native format" for generators - they are expected to be able to generate any frame size, frame rate, and field order, and support any duration. If your USB device is exposed as a filesystem to the Mac, the best thing to do would be to write a QuickTime component that allows the video data to be wrapped in a QuickTime movie. If the Mac doesn't have access to the device's filesystem, you could write a standalone application that pulls the video stream from the device and saves it as a QT movie on disk. Your application could then create some XML that references the movie and load that into Final Cut. If neither of those options are available, then you could try the FxPlug generator route. It's straightforward to call C++ code from Objective-C. The easiest thing to do is to write your plugin in Objective-C++. As far as talking to the device from a plugin, I haven't done that myself, so I don't know what obstacles you'll encounter. Your plugin will run inside of Final Cut, so I wouldn't expect it to be too different from the code you'd write in a standalone application, but it really depends on the specifics of your device. This email sent to pschneider@apple.com This email sent to site_archiver@lists.apple.com