Hi there
I’m trying to get the duration of a clip from an exported finalcut pro xml out of premiere pro cc. Somehow it seems my following calculation is wrong. TICKS_PER_SECOND is 254,016,000,000 (Source Post).
TimeInSec = (pproTicksOut / TICKS_PER_SECOND) – (pproTicksIn / TICKS_PER_SECOND)
With example data attached that results in TimeInSec = 37.32. Adobe Premiere shows duration for that clip of “00:00:36:20” (920 Frames).
Is someone able to explain, how to calculate the same duration as premiere with the data given from an exported finalcut pro xml?
Thanks a lot
JW
Example ClipItem Node from exported xml:
<clipitem id="clipitem-13051" frameBlend="FALSE" premiereChannelType="stereo">
<masterclipid>masterclip-4999</masterclipid>
<name>Test_audio.wav</name>
<enabled>TRUE</enabled>
<duration>3750</duration>
<rate>
<timebase>25</timebase>
<ntsc>FALSE</ntsc>
</rate>
<start>82</start>
<end>-1</end>
<in>0</in>
<out>933</out>
<pproTicksIn>0</pproTicksIn>
<pproTicksOut>9479877120000</pproTicksOut>
<file id="file-4999"/>
<sourcetrack>
<mediatype>audio</mediatype>
<trackindex>1</trackindex>
</sourcetrack>
<filter>
<effect>
<name>Audio Levels</name>
<effectid>audiolevels</effectid>
<effectcategory>audiolevels</effectcategory>
<effecttype>audiolevels</effecttype>
<mediatype>audio</mediatype>
<parameter authoringApp="PremierePro">
<parameterid>level</parameterid>
<name>Level</name>
<valuemin>0</valuemin>
<valuemax>3.98109</valuemax>
<value>0.530654</value>
</parameter>
</effect>
</filter>
<link>
<linkclipref>clipitem-13051</linkclipref>
<mediatype>audio</mediatype>
<trackindex>5</trackindex>
<clipindex>1</clipindex>
<groupindex>1</groupindex>
</link>
<link>
<linkclipref>clipitem-13063</linkclipref>
<mediatype>audio</mediatype>
<trackindex>6</trackindex>
<clipindex>1</clipindex>
<groupindex>1</groupindex>
</link>
<logginginfo>
<description></description>
<scene></scene>
<shottake></shottake>
<lognote></lognote>
</logginginfo>
<labels>
<label2>Caribbean</label2>
</labels>
</clipitem>
<transitionitem>
<start>990</start>
<end>1015</end>
<alignment>center</alignment>
<cutPointTicks>121927680000</cutPointTicks>
<rate>
<timebase>25</timebase>
<ntsc>FALSE</ntsc>
</rate>
<effect>
<name>Cross Fade (+3dB)</name>
<effectid>KGAudioTransCrossFade3dB</effectid>
<effecttype>transition</effecttype>
<mediatype>audio</mediatype>
<wipecode>0</wipecode>
<wipeaccuracy>100</wipeaccuracy>
<startratio>0</startratio>
<endratio>1</endratio>
<reverse>FALSE</reverse>
</effect>
</transitionitem>
<!-- Further clipitems -->