ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: freyer on April 07, 2015, 11:50:10 AM

Title: Trying to add markers in an XMP-file
Post by: freyer on April 07, 2015, 11:50:10 AM
I used Adobe's Prelude to enter markers into an XMP-file ('aaa', 'bbb', 'ccc' and 'ddd') and got the attached result:

I would like to mimic this with EXIFTOOL, but I'm not able to figure out how to formulate the command line to get the same structure (marker name and timestamp).

Any ideas?
Title: Re: Trying to add markers in an XMP-file
Post by: Phil Harvey on April 07, 2015, 12:00:13 PM
Sure, try this:

exiftool -TracksMarkersComment=aaa -TracksMarkersComment=bbb -TracksMarkersComment=ccc -TracksMarkersComment=ddd -TracksMarkersStartTime=87 -TracksMarkersStartTime=129 -TracksMarkersStartTime=204 -TracksMarkersStartTime=334 FILE

Adding the CuePointParams is much trickier.  Because they are a nested list, they would have to be added as structures.  Let me know if you need to add these too.

- Phil

Edit: Here is a command that will also add the CuePointParams:

exiftool -tracksmarkers="{Comment=aaa,CuePointParams=[{Key=marker_guid,Value=9de7da77-5680-416e-9c1c-cf765ff86e23}],StartTime=87}" -tracksmarkers="{Comment=bbb,CuePointParams=[{Key=marker_guid,Value=8c140182-9ec1-4d5e-9d76-f112e979e3b6}],StartTime=129}" -tracksmarkers="{Comment=ccc,CuePointParams=[{Key=marker_guid,Value=e1a1f5bc-2ac5-4011-9f8d-b0309561ca07}],StartTime=204}" -tracksmarkers="{Comment=ddd,CuePointParams=[{Key=marker_guid,Value=ca36a36d-2da9-4317-a447-b5d99b570040}],StartTime=334}" FILE

(It is sometimes necessary to write in structured form like this to get the desired associations for complex structures.)

And for complex commands like this, I would put the arguments in an argfile, ie)


-tracksmarkers={Comment=aaa,CuePointParams=[{Key=marker_guid,Value=9de7da77-5680-416e-9c1c-cf765ff86e23}],StartTime=87}
-tracksmarkers={Comment=bbb,CuePointParams=[{Key=marker_guid,Value=8c140182-9ec1-4d5e-9d76-f112e979e3b6}],StartTime=129}
-tracksmarkers={Comment=ccc,CuePointParams=[{Key=marker_guid,Value=e1a1f5bc-2ac5-4011-9f8d-b0309561ca07}],StartTime=204}
-tracksmarkers={Comment=ddd,CuePointParams=[{Key=marker_guid,Value=ca36a36d-2da9-4317-a447-b5d99b570040}],StartTime=334}
Title: Re: Trying to add markers in an XMP-file
Post by: freyer on April 08, 2015, 08:13:14 AM
Brilliant! Thanks.