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]
Geolocation disappears after video conversion using MacOS 12.6. Can you please tell me how to add it manually?
[Re-Titled by Moderator]
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.
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.
> 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.
Skip to the line beginning "Using exiftool via the command line..." in this page:
Movie dates and Photos.app - Apple Community
Matti Haveri already supplied the solution with exiftool. (Exiftool is not supplied with Macos, you will have to download it.)
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.
In general, exif data - such as gps coordinates - is not handled well in video files. You should just plan to re-save the coordinates when you convert.
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)
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)
"Maybe you can somehow copy the coordinates
to the properties of another video file without using commands?"
You can wish it so, but I doubt that will do anything.
You could probably write a script to do it.
And please don't paste your text in code tags.
Can you please tell me how exactly this can be done? How to learn it? Unfortunately, I'm not computer savvy at all and I don't know anything about commands. Do you think Apple Support can help implement your advice?
Can you please tell me how exactly this can be done?
How to learn it? Unfortunately, I'm not computer savvy at all and
I don't know anything about commands.
Do you think Apple Support can help implement your advice?
Your sentence got cut off.
Can you provide more details? What apps are you using?
Thanks for the answer. I now think that maybe there are simpler solutions.
Maybe you can somehow copy the coordinates to the properties of another video file without using commands?
Right now I'm thinking about how to do it in the simplest way.)
Thanks, I'll figure it out 😊
Geolocation disappears after video conversion using MacOS 12.6