7 Replies Latest reply on Jun 19, 2013 11:29 AM by Zac Lam

    CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)

    nvenc4everyone Level 1

      I want to make my (Windows) exporter-plugin compatible with Premeire Elements 11.

       

      So far, I have been gotten my exporter-plugin to appear in Adobe Premiere Pro CS6 and Media Encoder CS6, and the plugin runs there correctly.

       

      I then followed the directions for running Premeire CS6 to create an export a preset file (*.epr).  I copied copied  that exported *.epr file to "OTHERS/MyCompany/MyPreset.epr" in my Premere 11 [App installation folder].  (As well as copying the plugin-binary *.prm to Plug-ins/common

       

      In the <Publish:Share> tab, when I use the mouse to highlight 'OTHERS', I receive an error-dialog-box :

       

      "Premiere Elements has encountered an error.

      [..\..\Src\Exporter_Accessors.cpp-213]"   [Continue]

       

      After I click continue, I don't get the dialog-box for my exporter-plugin.  In the <Publish:Share> tab, I now see the warning-triangle and some text next to it: "Export Settings Invalid"

        • 1. Re: CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)
          Zac Lam Adobe Employee

          I'm checking on this for you.  At first glance, it looks like it may be related to your exporter's implementation of exSelQueryExportFileExtension.

           

          Zac

          • 2. Re: CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)
            nvenc4everyone Level 1

            Hmm, I forgot about using Visual Studio's debugger.  After some debugging, the error was triggered the first time the SDK_Exporter plugin called anything involving the <exportParamSuite>.

             

            After a little more digging, I found that Adobe Premiere Elements 11 doesn't support the latest version of the exportParamSuite (kPrSDKExportParamSuiteVersion4).

             

            In the CS6 SDK sample project SDK_Exporter, the function exSDKBeginInstance() grabs all of the suiteAPIs.  The following call fails:

             

                 spError = spBasic->AcquireSuite(

                     kPrSDKExportParamSuite,

                     kPrSDKExportParamSuiteVersion, // CS6 supports v4,  but crashes in Premiere Elements 11

                     const_cast<const void**>(reinterpret_cast<void**>(&(mySettings->exportParamSuite))));

             

            The original-call returns an spError code of <kSPSuiteNotFoundError>, which is actually misleading. I changed the version-argument to v3, and the error-call went away.

             

                 spError = spBasic->AcquireSuite(

                     kPrSDKExportParamSuite,

                     kPrSDKMemoryManagerSuiteVersion3, // compatible with Premiere Elements 11

                     const_cast<const void**>(reinterpret_cast<void**>(&(mySettings->exportParamSuite))));

             

            ...

             

            so it looks like Premiere Pro CS6 SDK's sample SDK_Exporter project requires a few tweaks to run with Premiere elements 11.

            • 3. Re: CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)
              Zac Lam Adobe Employee

              Thanks for the feedback there!  I've passed it along to the Premiere Elements team.  Although the PPro SDK sample projects are not written specifically for Premiere Elements, ideally they should work without modification.

               

              Zac

              • 4. Re: CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)
                Zac Lam Adobe Employee

                The Premiere Elements team notes that Premiere Elements 11 is based on the CS5.5 version of MediaCore.  So using the CS5.5 SDK is probably the best way to build plug-ins to specifically target Prem El 11.

                • 5. Re: CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)
                  nvenc4everyone Level 1

                  Thank you,

                   

                  one more question ... is there an API-call for plugins that will report information about the running host Adobe-app?  Like whether it is Premiere Pro, Media Encoder, or Premiere Elements?  And what version-API the host app supports?

                  • 6. Re: CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)
                    Rallymax-forum Level 3

                    It's in the StdParams.interfaceVer struct passed to the plugin.

                     

                    Headers\PrSDKExport.h

                     

                    #define prExportVersion100  1     // 9.00

                    #define prExportVersion101  2     // 9.0.1

                    #define prExportVersion200  3     // CS5

                    #define prExportVersion250  4     // CS5.5

                    #define prExportVersion300  5     // CS6

                    #define EXPORTMOD_VERSION  prExportVersion300 // current version

                     

                    typedef struct

                    {

                    csSDK_int32     interfaceVer; // version # of interface (currently EXPORTMOD_VERSION)

                    plugGetSPBasicSuiteFunc  getSPBasicSuite;

                    } exportStdParms;

                     

                    I don't trust it though and do it by trial and error

                     

                         spError = spBasic->AcquireSuite(

                             kPrSDKExportParamSuite,

                             kPrSDKMemoryManagerSuiteVersion4, // aka kPrSDKExportParamSuiteVersion, // CS6 supports v4

                             const_cast<const void**>(reinterpret_cast<void**>(&(mySettings->exportParamSuite))));

                         if ( spError )

                         {

                         // Try again with the next version back...

                         spError = spBasic->AcquireSuite(

                             kPrSDKExportParamSuite,

                             kPrSDKMemoryManagerSuiteVersion3, // compatible with Premiere Elements 11

                             const_cast<const void**>(reinterpret_cast<void**>(&(mySettings->exportParamSuite))));

                         }

                    1 person found this helpful
                    • 7. Re: CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)
                      Zac Lam Adobe Employee

                      The App Info Suite lets you know the host application and version number of the application.  As Rallymax points out, the exporter API version is passed in.

                      1 person found this helpful