ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: daae on May 12, 2015, 11:57:01 PM

Title: Problem with writing framerate in XMP
Post by: daae on May 12, 2015, 11:57:01 PM
Hi

I am trying to use exiftool to generate markers in video files that shows up in Adobe Premiere.

I use the following string to generate the XMP file:
exiftool.exe -TracksTrackType="Comment" -TracksFrameRate="f30000s1001" -tracksmarkers={name="Marker #06",startTime=118,duration=100,type="Chapter"} filename

When opening the file in Adobe Premiere, the markers are not displayed properly. Instead of having the tags show up where they should be, tags are moved to the start of the file.

After som trial and error it seems that the reason is the way that the framerate is generated. Exiftool writes it above the <xmpDM:markers> tag in the tag <xmpDM:framerate>.

     <xmpDM:frameRate>30000s1001</xmpDM:frameRate>
     <xmpDM:markers>
      <rdf:Seq>
       <rdf:li rdf:parseType='Resource'>
        <xmpDM:duration>100</xmpDM:duration>
        <xmpDM:name>Marker #06</xmpDM:name>
        <xmpDM:startTime>118</xmpDM:startTime>
        <xmpDM:type>Chapter</xmpDM:type>
       </rdf:li>
      </rdf:Seq>
     </xmpDM:markers>
     <xmpDM:trackType>Comment</xmpDM:trackType>


To get it to work i edited the file manually to write the framerate to this, which is how Adobe Premiere formats the xmp when you make markers manually:
       <rdf:Description xmpDM:frameRate="f30000s1001" xmpDM:trackType="Comment">
        <xmpDM:markers>
         <rdf:Seq>
          <rdf:li>
           <rdf:Description xmpDM:duration="100" xmpDM:name="Marker #06" xmpDM:startTime="118" xmpDM:type="Chapter" />
         </rdf:li>
        </rdf:Seq>
       </xmpDM:markers>
      </rdf:Description>


Now the markers are nested within the description tag with the framerate.

I have added whole files of example of the exiftool file that doesn't work and a file that does work.
Hope anyone have any tips to make this work.
Title: Re: Problem with writing framerate in XMP
Post by: daae on May 13, 2015, 12:06:12 AM
It appears there was a typo in my code where i forgot the trailing f in the framerate. It all works great now.
Thanks for an awesome application!
Title: Re: Problem with writing framerate in XMP
Post by: Phil Harvey on May 13, 2015, 07:18:44 AM
I think you mean the leading "f" in the TracksFrameRate value.  I'm glad you found it!

- Phil