Author Topic: Create new tags/fields & data type in .mp4 quicktime  (Read 2047 times)

FloridaRoadie

  • Jr. Member
  • **
  • Posts: 10
Create new tags/fields & data type in .mp4 quicktime
« 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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16698
    • ExifTool Home Page
Re: Create new tags/fields & data type in .mp4 quicktime
« Reply #1 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
...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 ($).

FloridaRoadie

  • Jr. Member
  • **
  • Posts: 10
Re: Create new tags/fields & data type in .mp4 quicktime
« Reply #2 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.


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16698
    • ExifTool Home Page
Re: Create new tags/fields & data type in .mp4 quicktime
« Reply #3 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
...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

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3791
Re: Create new tags/fields & data type in .mp4 quicktime
« Reply #4 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.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

FloridaRoadie

  • Jr. Member
  • **
  • Posts: 10
Re: Create new tags/fields & data type in .mp4 quicktime
« Reply #5 on: March 18, 2015, 01:18:00 PM »
Thanks that worked.