Hi there,
I've been trying to apply GPS to a Panorama shot taken from iphone, converted to mp4 as a still video. I've found a bunch of threads discussing a bunch of variations. I was successful with a jpeg format reading in windows. I can't seem to get windows or google street view to recognize the GPS data added. Recently found specs the video format should be at for street view. Not Sure if the still image is affecting the additional data needed? Is there somewhere specific I should be applying additional information to simulate a real video?
https://developers.google.com/streetview/ready/specs
All codes I've used working from top to bottom. It shows it applied in Light Room but not in Windows or when uploading: (Obviously changing coordinates with 3 and 1)
-GPSLatitude= -GPSLatitudeRef= -GPSLongitude= -GPSLongitudeRef= -overwrite_original
33°33'33.3"N 11°11'11.1"W
33.3333, -11.1111
exiftool -GPSLatitude="33 33 33.3" -GPSLatitudeRef=N -GPSLongitude="11 11 11.1" -GPSLongitudeRef=W -overwrite_original
exiftool -Keys:GPSCoordinates="33 33 33.3 N, 11 11 11.1 W, 600 H" -Userdata:GPSCoordinates="33 33 33.3 N, 11 11 11.1 W, 600 H" -Itemlist:GPSCoordinates="33 33 33.3 N, 11 11 11.1 W, 600 H"
exiftool -Userdata:GPSCoordinates="33°33'33.3 N" 11°11'11.1 W", 600 H" -overwrite_original
exiftool -Userdata:GPSCoordinates="33.333 N, -11.111 W, 600 H"
exiftool -All:GPSCoordinates="33.333 N, -11.111 W, 600 H"
exiftool -m -p -overwrite_original_in_place -Keys:GPSCoordinates="33.3333, -11.1111"
exiftool -a -G1 -s -n -ee -Location:all
exiftool -m -p -overwrite_original -XMP-exif:GPSLatitude=33.3333 -XMP-exif:GPSLongitude=-11.1111
Thanks so much!
I used this command on a standard MP4 file and the location showed up correctly on Google Photos
exiftool -P -overwrite_original "-Keys:GPSCoordinates=-36.6101,-66.91515,119.9" file.mp4
But things might be different for a panorama file. I don't have one to work with, so I can't test.
Do you have one that already works? If so, what is the output of this command
exiftool -G1 -a -s "-GPS*" /path/to/files/
Thanks for the reply!
I'm having trouble viewing it in windows? When I use the commands it seems to work and applies, according to exiftool, but when I try to view it in windows it doesn't seem to show up in a GPS section. Right click file -> Properties -> Details. So I'm wondering if this may be the same issue why street view says there is no GPS attached because its not registering in the correct section for even windows to find it?
I've converted the Panorama shot to be an mp4 of 7460 x 3730 ratio 5seconds of a still panorama shot. Due to the ratio the photo would be split into 2 files (separate videos) -Not really relevant but just an FYI
Quote from: Blue on March 09, 2025, 07:17:33 PMI'm having trouble viewing it in windows? When I use the commands it seems to work and applies, according to exiftool, but when I try to view it in windows it doesn't seem to show up in a GPS section. Right click file -> Properties -> Details.
Windows isn't the greatest when it comes to reading metadata. For example, it only reads one metadata tag in PNG files (though this might have changed with Win11). On my system (Win10), Windows doesn't even show a GPS section under the Details tab for videos. See the Windows Metadata thread (https://exiftool.org/forum/index.php?msg=32875) for what tags will be read to fill Windows properties.
Ahh, so I suppose that would explain windows not reading it. I wouldn't know how to feed the correct information to street view then, or at least have a method of "trouble shooting it". The fact that it is a still photo into an mp4 alone might be reason enough the GPS info wouldn't be formatted correctly? It does ask for the XMP file (I believe), to correct it. I suppose I could try creating an XMP file an uploading it. I'm not really sure what the file should read though or the best way to make one?
Quote from: Blue on March 09, 2025, 09:30:43 PMThe fact that it is a still photo into an mp4 alone might be reason enough the GPS info wouldn't be formatted correctly?
Extremely unlikely that there's a formatting issue.
You can try this. Save the attached file into the same directory as exiftool. Then run this command
exiftool -@ gps.args file.mp4Upload the file and then see if any coordinates show up. Check the file to see what tag the coordinates match.
The gps.args is a text file that will set a large number of GPS tags. At that points it's simply checking what google says vs the data in the args file.