ExifTool Forum

ExifTool => Newbies => Topic started by: FloridaRoadie on March 13, 2015, 12:33:09 PM

Title: Create new tags/fields & data type in .mp4 quicktime
Post by: FloridaRoadie on March 13, 2015, 12:33:09 PM
Hello,
Is there away to create custom tags/fields and data type in quicktime .mp4 using exiftools? 
I want to create the following tags/fields 
GPSLatitudeRef
GPSlatitude
GPSLongitudeRef
GPSlongitude

Example of tag and data
GPSLatitudeRef=North
GPSlatitude=12°07'02.6040"
GPSLongitudeRef=West
GPSlongitude=-068°14'04.5600"

Thanks for your assistance
Gregory
Title: Re: Create new tags/fields & data type in .mp4 quicktime
Post by: Phil Harvey on March 13, 2015, 12:42:38 PM
Hi Gregory,

You can already do exactly this by writing these XMP tags to MP4 files.  The only difference is that with XMP the reference directions are combined into the lat/long values, so the command would be:

exiftool -GPSlatitude=12°07\'02.6040\"N -GPSlongitude=068°14\'04.5600\"W file.mp4

(here I have escaped the quotes for Mac/Linux.  On Windows, I'm not sure how to do this, so it may be easier to just drop the special characters.)

- Phil
Title: Re: Create new tags/fields & data type in .mp4 quicktime
Post by: FloridaRoadie on March 13, 2015, 03:33:30 PM
I am getting an error
1 image file read
1 files could not read

I also tried


exiftool -v2 -GPSlatitude=12°07\'02.6040\"N -GPSlongitude=068°14\'04.5600\"W file.mp4

I get the same error.

Now I did run a program called MetaX which added a number of tags/fields to the quicktime area.  I do not think it would be causing a program because exiftools gui is able to read all the tags with out a problem.

Title: Re: Create new tags/fields & data type in .mp4 quicktime
Post by: Phil Harvey on March 13, 2015, 06:30:32 PM
Since you use ExifToolGUI I assume you are on Windows.  As I said, try dropping the special characters.  Try this:

exiftool -v2 -GPSlatitude=12d07m02.6040N -GPSlongitude=068d14m04.5600W file.mp4

If you get errors this time, please paste them into your post.

- Phil
Title: Re: Create new tags/fields & data type in .mp4 quicktime
Post by: StarGeek on March 13, 2015, 07:12:05 PM
Using this under windows worked for me:
exiftool "-GPSlatitude=12°07'02.6040\"N" "-GPSlongitude=068°14'04.5600\"W"

Including double quotes works weird under Windows.  You can usually escape it with a backslash, but there's seems to be a limit of some sort.  Sometimes my command lines fail if I have a lot included.  I've never been able to narrow it down exactly and I'm pretty sure it's Windows getting in the way.
Title: Re: Create new tags/fields & data type in .mp4 quicktime
Post by: FloridaRoadie on March 18, 2015, 01:18:00 PM
Thanks that worked.