Skip to main content
Adobe Photoshop Family

36 Messages

 • 

458 Points

Sat, Jun 3, 2017 3:04 PM

Solved

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

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.

Responses

Official Solution

Employee

 • 

291 Messages

 • 

7.8K Points

3 years ago

Hi Mark,

Thanks for reporting. We are working on this.

Thanks,
Smit Keniya
Adobe Lightroom Team

Official Solution

Adobe Administrator

 • 

7.9K Messages

 • 

115.1K Points

3 years ago

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

Adobe Photography Products

Quality Engineering - Customer Advocacy 

12 Messages

 • 

354 Points

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

5 Messages

 • 

144 Points

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

12 Messages

 • 

354 Points

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


5 Messages

 • 

144 Points

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

36 Messages

 • 

458 Points

3 years ago

Thanks Smit - I look forward to the fix.  

Adobe Administrator

 • 

14.7K Messages

 • 

283.8K Points

3 years ago

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.

Sr. Product Manager, Adobe Digital Imaging

36 Messages

 • 

458 Points

3 years ago

Hi Jeffrey,

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

Regards,
Mark.

5 Messages

 • 

144 Points

3 years ago

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!

36 Messages

 • 

458 Points

3 years ago

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.

5 Messages

 • 

144 Points

3 years ago

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.

36 Messages

 • 

458 Points

3 years ago

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 :)