Geolocation disappears after video conversion using MacOS 12.6

Geolocation disappears after video conversion using MacOS 12.6. Can you please tell me how to add it manually?



[Re-Titled by Moderator]

Posted on Oct 11, 2022 1:35 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 11, 2022 8:54 AM

You can insert GPS to .mp4, .m4v or .mov with a command like:


exiftool -m -P -n -overwrite_original_in_place -Keys:GPSCoordinates='-36.6101 -66.91515 119.9' movie.mp4

...or with commas:

exiftool -m -P -overwrite_original_in_place -Keys:GPSCoordinates='-36.6101, -66.91515, 119.9' movie.mp4


You can omit the altitude at the end.


Check the result with QuickTime Player or Photos.app or exiftool:


exiftool -a -G1 -s -n -ee -Location:All movie.mp4

...or:

exiftool -a -G1 -s -ee -Location:All movie.mp4


Notice that Google Photos might not show positions in decimal degrees DD with more than 5 decimals after the dot. A value in decimal degrees to an accuracy of 4 decimal places is accurate to 11.1 meters (+/- 5.55 m) at the equator. A value in decimal degrees to 5 decimal places is accurate to 1.11 meter at the equator.

15 replies
Question marked as Top-ranking reply

Oct 11, 2022 8:54 AM in response to Oleg2022

You can insert GPS to .mp4, .m4v or .mov with a command like:


exiftool -m -P -n -overwrite_original_in_place -Keys:GPSCoordinates='-36.6101 -66.91515 119.9' movie.mp4

...or with commas:

exiftool -m -P -overwrite_original_in_place -Keys:GPSCoordinates='-36.6101, -66.91515, 119.9' movie.mp4


You can omit the altitude at the end.


Check the result with QuickTime Player or Photos.app or exiftool:


exiftool -a -G1 -s -n -ee -Location:All movie.mp4

...or:

exiftool -a -G1 -s -ee -Location:All movie.mp4


Notice that Google Photos might not show positions in decimal degrees DD with more than 5 decimals after the dot. A value in decimal degrees to an accuracy of 4 decimal places is accurate to 11.1 meters (+/- 5.55 m) at the equator. A value in decimal degrees to 5 decimal places is accurate to 1.11 meter at the equator.

Oct 14, 2022 9:13 AM in response to Oleg2022

> copy the coordinates to the properties of another video file


Copy all possible metadata tags from .mov to a same name .m4v in the same folder and set file dates:


exiftool -TagsFromFile '%-.0f.mov' -All:All *.m4v -execute '-FileCreateDate<QuickTime:CreateDate' '-FileModifyDate<QuickTime:CreateDate' -common_args -m -P -overwrite_original_in_place .


Fine-tune the command to copy between different file suffixes or to copy only GPS tags.

Oct 11, 2022 6:54 AM in response to Oleg2022

Oleg2022 wrote:

Geolocation disappears after video conversion using MacOS 12.6. Can you please tell me how to add it manually?


Which conversion tool? Which conversion options?


Which source and destination video formats?


Which tagging is needed depends on which video format is in use.


exiftool supports at least some video formats (e.g. MP4) and can manipulate some metadata.


There are other means to geolocate recordings.


Please do not use the code tags <> for text.

Oct 14, 2022 8:48 AM in response to Keith Barkley

The video was originally shot on an iPhone 7 and recorded in a compatible format on a Windows PC.
 ".mov" files with H.264 codec have been received. Some time later, I bought a Mac computer, recorded video files there, 
and converted them to ".mov" HEVC using the built-in program in MacOS (right-click - services - encode selected video files). 
The geolocation data will then disappear. Apple Support was unable to help. This bug will likely be fixed in future macOS updates. 
Therefore, I am looking for a way to manually transfer geolocation data from one video to another. Has anyone encountered such a problem? 
And how did you solve it? Thank you in advance)


Oct 14, 2022 8:49 AM in response to MrHoffman

The video was originally shot on an iPhone 7 and recorded in a compatible format on a Windows PC.

".mov" files with H.264 codec have been received. Some time later, I bought a Mac computer, recorded video files there,

and converted them to ".mov" HEVC using the built-in program in MacOS (right-click - services - encode selected video files).

The geolocation data will then disappear. Apple Support was unable to help. This bug will likely be fixed in future macOS updates.

Therefore, I am looking for a way to manually transfer geolocation data from one video to another. Has anyone encountered such a problem?

And how did you solve it? Thank you in advance)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Geolocation disappears after video conversion using MacOS 12.6

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.