Write QuickTime:GPSCoordinates

Started by Fulco, April 18, 2020, 06:42:01 PM

Previous topic - Next topic

Fulco

In my configuration file I added these lines:


use Image::ExifTool::QuickTime;
$Image::ExifTool::QuickTime::Keys{PREFERRED} = 2;


With level 2 ItemList:GPSCoordinates and Keys:GPSCoordinates are created. How can UserData:GPSCoordinates and Keys:GPSCoordinates be written at the same time? I tried level 1 but that didn't work.

Thanks in advance.

- Fulco

Phil Harvey

Hi Fulco,

You write both like this:

exiftool -UserData:GPSCoordinates=SOME_VALUE -Keys:GPSCoordinates=SOME_VALUE FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Fulco

Thanks for your help. I write the metadata tags using CSV. With the -GPScoordinates=SOME_VALUE command in combination with the config file exiftool writes the value to ItemList and Keys group. I thought the same was possible for UserData en Keys. As I understand now I need two columns of the same GPS coordinates in the CSV to write to two different locations and don't need config file for this purpose.

- Fulco

Phil Harvey

If you don't specify a group, then this is what you get:

> exiftool -gpscoordinates="1, 1" -v3 a.mov
Writing Keys:GPSCoordinates if tag exists
Writing UserData:GPSCoordinates if tag exists
Writing ItemList:GPSCoordinates
...


It only creates a new tag in ItemList, but writes to the others if they already exist.

The config file just changes where a new tag would be added, but only one location takes priority.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

You could always create a shortcut tag in your config file to write multiple tags at the same time.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Fulco

Thanks StarGeek for pointing me in the right direction. I made a short cut tag as you suggested. It is working as intended now.

- Fulco