I
Immich•2y ago
sircharlo

GPS altitude information is incorrectly parsed

For some (and only some) videos, Immich extracts the wrong GPS info from metadata. Example ffprobe output from one of my videos:
Metadata:
...
location : +56.1509-005.4809+101.580994/
Metadata:
...
location : +56.1509-005.4809+101.580994/
And from exiftool:
GPS Altitude : 101.58 m
GPS Altitude Ref : Above Sea Level
GPS Latitude : 56 deg 9' 3.20" N
GPS Longitude : 5 deg 28' 51.24" W
Rotation : 0
GPS Position : 56 deg 9' 3.20" N, 5 deg 28' 51.24" W
GPS Altitude : 101.58 m
GPS Altitude Ref : Above Sea Level
GPS Latitude : 56 deg 9' 3.20" N
GPS Longitude : 5 deg 28' 51.24" W
Rotation : 0
GPS Position : 56 deg 9' 3.20" N, 5 deg 28' 51.24" W
Typing the latlong coordinates +56.1509 -005.4809 into Google Maps takes me straight to the location where the video was taken (Carnasserie Castle, FWIW). However, Immich displays the location somewhere near Singapore, like this:
-5.4809, 101.580994
-5.4809, 101.580994
It appears that altitude information was incorrectly parsed from the location metadata, which is actually in format [+-]LAT[+-]LON[+-]ALT. Is there already an open issue for this?
No description
7 Replies
jrasm91
jrasm91•2y ago
I believe so, if not you can open one.
sircharlo
sircharloOP•2y ago
Hm. I refreshed metadata for those videos, and now they're tagged correctly. I guess they had been indexed before the fixes from https://github.com/immich-app/immich/pull/2908
GitHub
fix(server): use exiftool decoded values and unify metadata extract...
There was a lot of unnecessary stuff happening which exiftool should have already taken care of. It's been replaced with the values provided by the exiftool package and the code is much cleaner...
jrasm91
jrasm91•2y ago
hey hey, nice You could open a feature request about storing altitude if you wanted though
sircharlo
sircharloOP•2y ago
Im not sure anyone would benefit from that lol Unless we get a 3d view one day, to see an actual map of where and at what height pictures were taken Apple Vision Pro style lol
jrasm91
jrasm91•2y ago
lol nice immich on vr
sircharlo
sircharloOP•2y ago
😆
Alex Tran
Alex Tran•2y ago
It actually can run on Apple Vision

Did you find this page helpful?