Re: Building a generator FxPlug that reads from a device driver...
Re: Building a generator FxPlug that reads from a device driver...
- Subject: Re: Building a generator FxPlug that reads from a device driver...
- From: Paul Schneider <email@hidden>
- Date: Thu, 7 Feb 2008 16:05:27 -0500
Hi, Kris,
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.
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/Articles/chapter_12_section_1.html
Final Cut XML:
http://developer.apple.com/documentation/AppleApplications/Reference/FinalCutPro_XML/AboutThisDoc/chapter_1_section_1.html
QuickTime sample code:
http://developer.apple.com/samplecode/QuickTime/idxCompressionDecompression-date.html
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 (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