Copy link to clipboard
Copied
I‘m using C++ and ppro's SDK to write an video filter type plug-in. I need to get the source file address of the selected video material.
Is there any way to get it in the SDK?
Thanks
No.
A video filter is designed to operate on pixel buffers, not source media. Footage interpretation, source settings effects, and video filters earlier in the stack all have the opportunity to modify pixels, before they are sent to your video filter.
Additionally, the source pixels could be coming from a nested sequence (which will not have a path), or a synthetic importer....
No video filter should be relying on a media path.
Copy link to clipboard
Copied
Does this previous post answer the question for you?
Copy link to clipboard
Copied
Thanks for reply:
thist answer is use PPro's ExtendScript js API and I use Premiere Pro CC 12.0 Win SDK C++。
These are two different SDKs?
That's probably not what I want
Copy link to clipboard
Copied
No.
A video filter is designed to operate on pixel buffers, not source media. Footage interpretation, source settings effects, and video filters earlier in the stack all have the opportunity to modify pixels, before they are sent to your video filter.
Additionally, the source pixels could be coming from a nested sequence (which will not have a path), or a synthetic importer....
No video filter should be relying on a media path.
Copy link to clipboard
Copied
You're right, it's just that my plugin's special logic requires it.
Copy link to clipboard
Copied
Even if you somehow obtained the source media path for the trackItem to which your effect is applied, there is a very, very small chance that the source media is what your plugin is actually being asked to operate on.
Copy link to clipboard
Copied
There will not be any operation on the source file, it is just for effect preview. I saw that other plug-ins can be obtained but the API does not