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

Get Footage Size metadata

Explorer ,
Jul 18, 2018 Jul 18, 2018

Hey there,

I have been trying to access the metadata section under "File Properties" to see the source size of an individual piece of footage. This information will help while generating a report about the Premiere Project through a panel.

I have tried accessing this through XML and XMP, but I am somewhat new to using these, and can't find the access I need. Any insights?

Thanks

Screen Shot 2018-07-18 at 2.52.16 PM.png

TOPICS
SDK
1.3K
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

Explorer , Jul 19, 2018 Jul 19, 2018

In case anyone needs this information in the future, I ended up gathering file size by looking at the footage item's filepath. You can then throw the path in a file object and calculate the size in bytes. Hopefully it'll be useful for someone, someday.

                 var target  = File ( path ); 

           

                if(target.length){

                    size = (target.length / 1000000000);

                    }

Translate
Adobe Employee ,
Jul 18, 2018 Jul 18, 2018

That's all from the OS; I don't think we preserve that info, but I'll have a look...

Confirmed, we don't store that info in either the XMP, or the projectItem's private metadata.

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 ,
Jul 19, 2018 Jul 19, 2018

In case anyone needs this information in the future, I ended up gathering file size by looking at the footage item's filepath. You can then throw the path in a file object and calculate the size in bytes. Hopefully it'll be useful for someone, someday.

                 var target  = File ( path ); 

           

                if(target.length){

                    size = (target.length / 1000000000);

                    }

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 ,
Jul 19, 2018 Jul 19, 2018
LATEST

Embarrassed that I didn't think of that; the JavaScript Tools Guide (that ships with ESTK) is a wealth of information, and covers the File object.

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