Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

GPS location metadata format in movies for import into LR classic

Community Beginner ,
Dec 27, 2023 Dec 27, 2023

Movies shot with an iPhone contain the GPS location in a format that LR classic can understand when importing these files.

 

Movies shot with a "normal" camera do not contain GPS data. I wan't to add a GPS location to movies before importing them into LR (e.g., with `exiftool`), because LR is not able to save GPS locations to movies.

 

Some research suggested to use "Keys:GPSCoordinates" for exiftool (`exiftool -Keys:GPSCoordinates="{latitude},{longitude} {path}`).  When I add GPS coordinates this way, macOS and the Photos.app show that location. However, when I import the same file into LR classig, no GPS coordinates are shown. It works as expected with iPhone movies, so I don’t think it’s an issue with the import settings (and I also made sure to have no import/metadata preset enabled).

 

I compared the metadata of an iPhone movie an a "camera" movie with `ffprobe` and `exiftool` but I don’s see any obvious differences.  The major exception is the missing altitude in the "camera" movie, but passing "0" as altitude in the `exiftool` command shown above doesn’t change anything.

 

In which format does LR expected GPS coordinates in movies to be in order to properly import them?

TOPICS
Experiment , macOS
890
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 27, 2023 Dec 27, 2023

I too observe that GPS coordinates set with "exiftool -keys:gpscoordinates=..." on MP4 videos aren't imported by LR, though they are with Quicktime videos. (DSLRs and other cameras typically produce MP4s, while Apple devices produce Quicktime.)

 

I haven't dug deeply into the issue, but there are two possible explanations: 

 

- LR could be handling Apple videos specially (it does this with capture date, for example).

 

- Though the two formats are nearly identical, perhaps LR is treating them differen

...
Translate
Community Expert ,
Dec 27, 2023 Dec 27, 2023

I use Jeffrey Friedl's 'Geoencoding Support' plugin (http://regex.info/blog/lightroom-goodies/gps). It saves GPS location data to movies just fine if you have a GPX tracklog. Make sure you check the capture date of the videos and change them if needed. Lightroom often reads these wrongly because of poor specification of these data.

 

-- Johan W. Elzenga
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 28, 2023 Dec 28, 2023

The link seems to be broken, unfortunately.  I only get a "Not found".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 28, 2023 Dec 28, 2023

Friedl's web site is arguing with some web browsers, including Chrome, about the use of HTTPS.  Copy/paste this exact link, rather than clicking on it:

 

http://regex.info/blog/lightroom-goodies/gps

 

If that doesn't work, switching to another browser (e.g. Firefox or Safari) usually does.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 27, 2023 Dec 27, 2023

I too observe that GPS coordinates set with "exiftool -keys:gpscoordinates=..." on MP4 videos aren't imported by LR, though they are with Quicktime videos. (DSLRs and other cameras typically produce MP4s, while Apple devices produce Quicktime.)

 

I haven't dug deeply into the issue, but there are two possible explanations: 

 

- LR could be handling Apple videos specially (it does this with capture date, for example).

 

- Though the two formats are nearly identical, perhaps LR is treating them differently with respect to GPS coordinates.

 

It's not likely Adobe would fix LR to handle this better -- Adobe effectively abandoned further support for video after LR 4.

 

A workaround is to use the XMP metadata fields rather than the Quicktime fields:

 

exiftool -xmp:gpslatitude="36 deg 22' 0.48\" N" -xmp:gpslongitude="121 deg 15' 47.52\" W" -xmp:gpsaltitude="354.89 m" MVI_0514.MP4

 

 

I've successfully tested this with a few MP4s in my LR 13.1. Beware that fewer apps will recognize the XMP GPS fields than the Quicktime GPS fields.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 28, 2023 Dec 28, 2023

This works! 🙂  You can only use decimal coordinates:

 

exiftool -xmp:gpslatitude=53.21 -xmp:gpslongitude=8.7654 PATH_TO_MP4
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 28, 2023 Dec 28, 2023

"You can only use decimal coordinates:"

 

I'm able to use degrees/minutes/seconds, e.g. 

 

$ exiftool -xmp:gpslatitude="36 22 0.48 N" -xmp:gpslongitude="121 15 47.52 W" -xmp:gpsaltitude="354.89 m" MVI_0514.MP4
    1 image files updated
$ exiftool -gpsposition MVI_0514.MP4
GPS Position: 36 deg 22' 0.48" N, 121 deg 15' 47.52" W

$ exiftool -xmp:gpslatitude="36 deg 22' 0.48\" N" -xmp:gpslongitude="121 deg 15' 47.52\" W" -xmp:gpsaltitude="354.89 m" MVI_0514.MP4
    1 image files updated
$ exiftool -gpsposition MVI_0514.MP4
GPS Position: 36 deg 22' 0.48" N, 121 deg 15' 47.52" W

 

But you've got to be careful about quoting the command line.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 29, 2023 Dec 29, 2023
LATEST

Oh, my bad.  I ment "also" – you can also use decimal numbers 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines