Skip to main content
Participating Frequently
November 28, 2024
Answered

How to get Source file path in plugin

  • November 28, 2024
  • 2 replies
  • 608 views

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 has been closed for replies.
Correct answer Bruce Bullis

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. 

2 replies

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
November 28, 2024

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. 

Participating Frequently
November 29, 2024

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

Bruce Bullis
Community Manager
Community Manager
December 2, 2024

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. 

Community Expert
November 28, 2024
Participating Frequently
November 28, 2024

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