Skip to main content
Participating Frequently
Nov 28, 2024 5:46 AM UTC
Answered

How to get Source file path in plugin

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

This topic is closed to new replies. Start a new post to keep the conversation going.
Bruce Bullis
Bruce BullisCorrect answer
Legend
Nov 28, 2024 1:30 PM UTC

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. 

6 replies

Bruce Bullis
Bruce BullisCorrect answer
Legend
Nov 28, 2024 1:30 PM UTC

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. 

Translate
Participating Frequently
Nov 29, 2024 2:07 AM UTC

You're right, it's just that my plugin's special logic requires it.

Translate
Bruce Bullis
Legend
Dec 2, 2024 10:20 PM UTC

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. 

Translate
Community Expert
Nov 28, 2024 8:40 AM UTC
Participating Frequently
Nov 28, 2024 9:58 AM UTC

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

Translate