Lightroom: Fails to import the GPS co-ordinates of many (but not all) of the movie files from my iPhone 7

  • 2
  • Problem
  • Updated 2 years ago
  • Solved
  • (Edited)
When I import video files from my iPhone 7, LR fails to import the GPS co-ordinates for many of them.  It does import the co-ordinates for *some* of them.  A simple ExifTool command easily extracts the co-ordinates for all the files, regardless of whether LR failed or succeeded.  There does not seem to be any obvious difference between the files that succeeded and the ones that failed.  

I am using LR 6.10.1 on Mac Sierra 10.12.5 and my iPhone is running 10.3.2.
Photo of Mark L

Mark L

  • 36 Posts
  • 2 Reply Likes
  • exasperated

Posted 3 years ago

  • 2
Photo of Smit K

Smit K, Employee

  • 266 Posts
  • 136 Reply Likes
Official Response
Hi Mark,

Thanks for reporting. We are working on this.

Thanks,
Smit Keniya
Adobe Lightroom Team
Photo of Mark L

Mark L

  • 36 Posts
  • 2 Reply Likes
Thanks Smit - I look forward to the fix.  
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 16406 Posts
  • 2615 Reply Likes
Hi Mark - We'd like to invite you to our prerelease if you're interested in evaluating a fix for this issue. Let us know and we'll get you added.
Photo of Mark L

Mark L

  • 36 Posts
  • 2 Reply Likes
Hi Jeffrey,

Thanks for your note - yes I am interested, please add me.

Regards,
Mark.
Photo of Rikk Flohr

Rikk Flohr, Official Rep

  • 6682 Posts
  • 1507 Reply Likes
Official Response
Lightroom CC2015.12/6.12 was released today and should address this issue.  Please update your Lightroom to the latest version and let us know if you continue to see the issue. Thank you for your patience.

http://blogs.adobe.com/lightroomjournal/2017/07/lightroom-cc-2015-12-now-available.html
Photo of Ray Toscano

Ray Toscano

  • 12 Posts
  • 7 Reply Likes
Rikk,

What's the best way to correct this for video files already imported? Re-import them? Searching the forums I see lots warnings against re-importing files that have already been imported but perhaps that's not an issue for non-editable video files??

Thanks

-Ray
Photo of Thomas Carruthers

Thomas Carruthers

  • 5 Posts
  • 2 Reply Likes
Ray,

You don't need to re-import:

You need the latest ExifTool (available for most platforms)
ExifTool by Phil Harvey

I use Jeffrey Friedl's geoencoding support plugin to get the info back in Lightroom, but you may be able to do it with Lightroom's built-in geotrack tools:

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

Copy this text into a file named "gpx.fmt" (or whatever) somewhere you can easily find it (I save it in ~/Movies/gpx.fmt)

#------------------------------------------------------------------------------
# File:         gpx.fmt
#
# Description:  Example ExifTool print format file for generating GPX track log
#
# Usage:        exiftool -p gpx.fmt -d %Y-%m-%dT%H:%M:%SZ FILE [...] > out.gpx
#
# Requires:     ExifTool version 8.10 or later
#
# Revisions:    2010/02/05 - P. Harvey created
#
# Notes:     1) All input files must contain GPSLatitude and GPSLongitude.
#            2) The -fileOrder option may be used to control the order of the
#               generated track points.
#------------------------------------------------------------------------------
#[HEAD]<?xml version="1.0" encoding="utf-8"?>
#[HEAD]<gpx version="1.0"
#[HEAD] creator="ExifTool $ExifToolVersion"
#[HEAD] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
#[HEAD] xmlns="http://www.topografix.com/GPX/1/0";
#[HEAD] xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">;
#[HEAD]<trk>
#[HEAD]<number>1</number>
#[HEAD]<trkseg>
#[BODY]<trkpt lat="$GPSLatitude#” lon="$GPSLongitude#”>
#[BODY]  <ele>$GPSAltitude#</ele>
#[BODY]  <time>$CreateDate</time>
#[BODY]  <tnc_dummy>$FileName</tnc_dummy>
#[BODY]</trkpt>
#[TAIL]</trkseg>
#[TAIL]</trk>
#[TAIL]</gpx>

In the Terminal (Mac) or command line (Windows), go to the directory where your movie files are located, and type the following (replace ~/Movies/gpx.fmt with the path to the file you saved in the step above).

exiftool -q -m -p ~/Movies/gpx.fmt -d %Y-%m-%dT%H:%M:%SZ -r -if 'index($model, "iPhone") != -1 || index($model, "iPad") != -1' . > iOS_GPS.gpx
You then have a GPS track log that can be used to retag the videos in Lightroom.  As mentioned, I use Jeffrey Friedl's plugin (once installed, go to Plugin Extras -> Geoencode -> TrackLog).  I will leave it to his documentation on how exactly to use it.  Alternatively, you may be able to use the "Load Tracklog" function available from the button at the bottom of the map in the Map module, but I've never used it myself.

Hope this helps,

Nick
Photo of Ray Toscano

Ray Toscano

  • 12 Posts
  • 7 Reply Likes
Nick,

I have dozens of videos with this problem and they are scattered in many different directories, I'm not convinced your method is easier than just re-importing the files, if that's even a good method to correct the problem.  Although even re-importing one at a time would be more time consuming then I'd like.

Thanks for pointing out these tools. Even if I don't use them to correct this issue, I believe I have other uses for them.

-Ray

Photo of Thomas Carruthers

Thomas Carruthers

  • 5 Posts
  • 2 Reply Likes
I just realized that the '-r' option on the exiftool command tells it to run recursively through all the subdirectories.  So if you run it at the root of where you store your video files (e.g. ~/Movies on Mac or C:/Users/yourname/Videos on Windows), it will find all the files, and only extract GPS info from videos taken with an iPad or iPhone.

Then in Lightroom, you could go to 'All Photographs', Filter by attribute 'Videos', Select all, and run the Friedl plugin to match the geotrack with the videos.

I agree, it's a bit painful.  I'm glad they fixed the problem, anyway.

Cheers!

Nick
Photo of Thomas Carruthers

Thomas Carruthers

  • 5 Posts
  • 2 Reply Likes
Nice!  I was running an ExifTool script to create a GPS track, then using Jeffrey Friedl's geoencoding plugin to import the track back to the videos.  It will be nice to be able to skip that step.  Thanks!
Photo of Mark L

Mark L

  • 36 Posts
  • 2 Reply Likes
Thanks Rikk, Jeffrey and Smit - I will try this and get back to you as soon as possible.  Just going through a very busy period at the moment.
Photo of Thomas Carruthers

Thomas Carruthers

  • 5 Posts
  • 2 Reply Likes
FYI - I still have the same problem with GoPro videos. My exiftool workaround works, but it would be nice if this were fixed for GoPro videos too.
Photo of Mark L

Mark L

  • 36 Posts
  • 2 Reply Likes
All, after a bit of a hiatus, I have been able to test this now, and it appears that at least for my latest import the GPS data is being imported correctly now!  Thanks for the fix - much appreciated :)