4 Replies Latest reply: Jun 18, 2012 5:25 PM by U ch RSS

    How to recieve the frame number in turn?

    U ch

      How to recieve the frame number in turn?

       

       

      Hi.

       

      using Video Filters, i'm developping a plug-in.

       

      According to the SDK doc page 310,

       

      fsExecute

      ...

      The video your filter receives may be interlaced, in the field order determined by the project settings.

      ...

       

      I want to receive the frame number in turn.

       

      How to recieve the frame number in turn, When exporting or rendering the work area?

       

      Thank you.

        • 1. Re: How to recieve the frame number in turn?
          Zac Lam Employee Hosts

          Hi there,

           

          We strongly recommend you use the After Effects API to develop video effects for Premiere Pro.  Have you looked at the After Effects SDK?  Or are there any reasons why the Premiere filter API might be a better fit?

           

          For the filter API, you can get the frame number in VideoRecord.part.  You can get the video timebase in VideoRecord.tdb, which will help you interpret VideoRecord.part.

           

          Regards,

           

          Zac

          • 2. Re: How to recieve the frame number in turn?
            U ch Community Member

            Hi Zac.

             

            Although I have not seen the After Effects SDK yet,

            I want to make a plug-in to apply video effects to get the frame back and forth based on the current frame passed from the Premiere.

            Therefore, I hope that is passed from Premiere in the order of the small number of the field.

             

            I have obtained as follows: the number of fields that are passed from Premiere.

             

            a number of field = part ÷ sampleSize

             

            ※ "part" is from the beginning until the end of the video number (0 ~ n)

            ※ "sampleSize" is a number that represents the length of the field

             

            ex)

            10 = 10010 ÷ 1001

             

            However, the number of fields that will be passed from Premiere is passed to the random.

             

            What this specification?

            How can I receive the order of the number of field?

            • 3. Re: How to recieve the frame number in turn?
              Zac Lam Employee Hosts

              You can look in VideoRecord.sizeFlags to determine which field is being processed.  There is some documentation in the SDK Guide PDF on page 314 (CS6 release 1 version), under sizeFlags and, Fields and Field Processing.  Also be sure to check out the Field-Aware Video Filter sample.

              • 4. Re: How to recieve the frame number in turn?
                U ch Community Member

                Hi

                 

                premiere when to call the xFilter method,

                Do you have kept of the order of the fields?

                 

                I have tried several, but

                the beginning of the video, the field is passed to the random coming.

                 

                Why?.