-
Extracting embedded GPS Data
The K7 embeds GPS data within the video: seems like time, lat, long, speed (km/hr), track (bearing/direction) every 1 second.
One way to extract this data to a GPX file is using the very excellent exiftool utility – the Swiss army knife of image and video metadata: https://exiftool.org/geotag.html#Inverse
Exiftool has a little “format plugin” to extract to GPX format, you’ll need to download that separately to exiftool itself: https://github.com/exiftool/exiftool/blob/master/fmt_files/gpx.fmt
Once you have this gpx.fmt file, run exiftool over your K7 videos:
exiftool -m -ee -p gpx.fmt *.MP4 > out.gpx
And then view the resulting GPX file, e.g. in the GPXsee app.
Speed and track aren’t part of (standard) GPX format; instead gpx apps usually calculate speed from position data. GPXsee supports the non-standard speed tag, and I found minor variations between recorded and calculated speeds, it seems the K7 applies some filtering to the speed data as recorded as there were fewer spikes.
To have exiftool add the speed to the GPX, add the following line to the gpx.fmt file, within trkpt, after the time line:
#[BODY] <speed>${gpsspeed#;$_ /= 3.6}</speed>
(the calculation is required to convert from the K7’s km/hr to the “standard” m/s)
Unfortunately, acceleration data does NOT appear to be recorded as meta-data.
-
This discussion was modified 5 months, 2 weeks ago by
Ben.
-
This discussion was modified 5 months, 2 weeks ago by
Ben. Reason: forum formatting is borked
-
This discussion was modified 5 months, 2 weeks ago by
Log in to reply.