ExifTool Forum

ExifTool => Newbies => Topic started by: himynamesdave on May 15, 2020, 03:48:21 PM

Title: Extracting a .gpx file from a .mp4 gpmd (GoPro) stream
Post by: himynamesdave on May 15, 2020, 03:48:21 PM
Hi all,

I've got an .mp4 video from a GoPro Fusion with GPS measurements recorded on a gpmd track.

exiftool -ee -G3 VIDEO_7152.mp4 > VIDEO_7152_track_metadata.txt

Validates that GPS is logged.

So now I want to extract the gpmd track as a properly formatted gpx file.

To try this I run...

exiftool -ee -p gpx.fmt VIDEO_7152.mp4

and get


gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt


Interestingly, the lines correspond to the count of [DocN]'s (0-16) returned using the first command.

Video file is here: https://drive.google.com/open?id=1XspMMI4Vd4eX4yLJ-FAwKOadhYzmjxH1

I feel I'm close to cracking this... or maybe not! Perhaps you can help point me in the right direction?

As a side note, I found this as an alternative (https://github.com/juanmcasillas/gopro2gpx), though it appears based on the docs, Exiftool could also produce the same sort of output, which would be perfect for me.

Thank you!
Title: Re: Extracting a .gpx file from a .mp4 gpmd (GoPro) stream
Post by: Phil Harvey on May 15, 2020, 04:00:59 PM
You're just missing the gpx.fmt file (https://raw.githubusercontent.com/exiftool/exiftool/master/fmt_files/gpx.fmt).  It must be in the current directory when you run your command.

- Phil
Title: Re: Extracting a .gpx file from a .mp4 gpmd (GoPro) stream
Post by: himynamesdave on May 15, 2020, 04:28:06 PM
Doh! Thanks, Phil!

Working perfectly now.