ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: luizacortez on March 14, 2024, 03:10:27 PM

Title: GPS Location (Tracking) on videos
Post by: luizacortez on March 14, 2024, 03:10:27 PM
Hi. I am submitting a video (.mp4 and .mov) on the exiftool so I can extract a kind of gps tracking, having the location for each second of my video. The problem that I'm having is that when I compile the program with my video (that was recorded with an iphone or samsung), the software shows me the others metadata, like the gps location for ONE point, not the whole video divided by seconds.

I wanted to know if this is a problem that Iphone videos don't have the tracking metadata so i can do a kind of tracking or it was my mistake with some installation. I saw a video on youtube of a guy that did this thing (the GPS tracking) but with his dashcam records, but i don't have a dashcam.

Do i need to reinstall? Or there's an specific command that i forgot to use? (I am using this video as a tutorial: https://www.youtube.com/watch?v=Uje5si23lBk&t=495s )

Thanks!
Title: Re: GPS Location (Tracking) on videos
Post by: StarGeek on March 14, 2024, 03:57:24 PM
Did you grab the GPX or KML format file from GitHub (https://github.com/exiftool/exiftool/tree/master/fmt_files) or the archive on the main page?

What is the exact command you used and the exact output?

Can you share a sample video?

I don't recall problems with iPhone videos before but I don't use one to know for certain.
Title: Re: GPS Location (Tracking) on videos
Post by: luizacortez on March 15, 2024, 09:30:22 AM
Hi,

I copied the file from the guy of the video. My problem is that I can't find the location for each second, not even in the terminal.


C:\Users\franc>"C:\Luiza\teste_localizacao\exiftool-12.78 (2)\exiftool.exe" -p "C:\Luiza\teste_localizacao\gpx.fmt" -ee "C:\Luiza\teste_localizacao\IMG_8176.MOV"

<?xml version="1.0" encoding="utf-8"?>
<gpx version="1.0"
 creator="ExifTool 12.78"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://www.topografix.com/GPX/1/0"
 xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<trk>
<number>1</number>
<trkseg>
<trkpt lat="56.9219" lon="14.5671">
  <ele>159.205</ele>
</trkpt>
Warning: [Minor] Tag 'Main:gpsdatetime' not defined - C:/Luiza/teste_localizacao/IMG_8176.MOV
</trkseg>
</trk>
</gpx>

this is my input and output...
I don't know if this is because the Iphone doesn't have the gpsdatetime for each second or I had a problem when I was sending the file from my cellphone to my computer.
Title: Re: GPS Location (Tracking) on videos
Post by: Phil Harvey on March 19, 2024, 07:50:28 AM
It looks like the phone isn't storing timed GPS.  I don't think iPhones store this.

- Phil