Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Question about Transmitter plugin

Explorer ,
Feb 19, 2024 Feb 19, 2024

Hi Aodbe

 

I am testing the transmitter plug-in among the plug-in example sources.

If you look at the Adobe premiere sdk document, it says that the Startup function is called to start the plug-in, and Shutdown is called to release the plugin.

 

But shotdown function of the transmitter plug-in is not called.

 

When developing a transmitter plugin, is there a function that needs to be additionally set or called so that the shutdown function is called?

Or do you need to change any settings in Premiere Pro?

 

Please tell me what I should do.

 

Thanks.!!

 

Best Regards,

Andy Hwang

 

TOPICS
SDK
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Feb 19, 2024 Feb 19, 2024

To get sent Shutdown, the transmitter must have allocated memory during Startup.

Translate
Adobe Employee ,
Feb 19, 2024 Feb 19, 2024

To get sent Shutdown, the transmitter must have allocated memory during Startup.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 19, 2024 Feb 19, 2024

What do you mean by Memory?

Do you mean ioPrivatePluginData in tmStdParams?

 

ioPrivatePluginData is the same as provided in the original sample. New TransmitPlugin class and put it in ioPrivatePluginData.

 

 

[source code]

static tmResult Startup(
       tmStdParms* ioStdParms,
       tmPluginInfo* outPluginInfo)
{
     ioStdParms->ioPrivatePluginData = (void*)new TransmitPlugin(ioStdParms, outPluginInfo);
     return tmResult_Success;
}

 

Please tell me what I should do.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2024 Mar 07, 2024

I have the same issue and I am allocating memory during Startup. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 07, 2024 Mar 07, 2024

I'm creating a plugin for the first time and need help.

How do you allocate memory?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2024 Mar 07, 2024

I tried allocating memory every which way in the constructor(TransmitPlugin::TransmitPlugin()) setting the three places in ioStdParms->  and still no call back in the destructor (TransmitPlugin::~TransmitPlugin()). The destructor never gets called. How do we fix this?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 07, 2024 Mar 07, 2024

With two Sequences loaded in the timeline, I was able to confirm that the TransmitPlugin destructor is called when I select the first and second Sequences one by one.

However, when Premiere exits, the destructor is still not called.

I've contacted Adobe about this and am awaiting a response.

Hope this helps

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 08, 2024 Mar 08, 2024

We haven't forgotten your enquiry; just trying to determine what 'recommended behavior' is. 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 14, 2024 Mar 14, 2024

Any news or updates?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 14, 2024 Mar 14, 2024

None so far.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 08, 2024 Apr 08, 2024

Any news or updates?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 10, 2024 Apr 10, 2024

Update: I'm unable to convince PPro to send the Transmitter sample anything like a Shutdown call. 

I suspect this change may have been made during PPro's "Faster shutdown" work, a few years ago; I've asked all available sources of lore, for specifics around this change; will update the docs accordingly. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 10, 2024 Apr 10, 2024

Please let us know as any information is available at all. This is a show stopper for us. Thanks. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 21, 2024 Apr 21, 2024

Any news yet? Please let us know as any information is available at all. This is a show stopper for us. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 21, 2024 Apr 21, 2024

believe you, and...

How is the inability to know when to properly release memory, a showstopper for you?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 22, 2024 Apr 22, 2024

I have to launch a separate process to encode and send the encoded video and delayed audio with proper timing. This external process also offloads (to separate cores) much burden to Premiere for the stuff Premiere needs to do. I need to kill this process when Premiere exits. That's why I need the exit callback. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 22, 2024 Apr 22, 2024

Understood. 
For now, you may be better off with a "I haven't heard from the plugin in N seconds, so it's time to kill this process" approach. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 26, 2024 Apr 26, 2024

Hi Bruce.

This won’t work for me as my plug-in handshakes with Premiere and if my app quits wrongly then Premiere hangs.

My solution is to send the process ID for Premiere to my application and then check it periodically for exit code.

The exit code I get from Premiere is  0XCCCCCCCC 

Please verify that this exit code is set in stone.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 26, 2024 Apr 26, 2024

We can't promise that PPro will never send a different exit code, but if your testing has shown that to be the common value, that sounds like a workable approach.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 26, 2024 Apr 26, 2024
LATEST

Of course. Thanks. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines