Author Topic: Extracting a .gpx file from a .mp4 gpmd (GoPro) stream  (Read 580 times)

himynamesdave

  • Newbie
  • *
  • Posts: 2
Extracting a .gpx file from a .mp4 gpmd (GoPro) stream
« 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.

Code: [Select]
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...

Code: [Select]
exiftool -ee -p gpx.fmt VIDEO_7152.mp4
and get

Code: [Select]
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!

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 17709
    • ExifTool Home Page
Re: Extracting a .gpx file from a .mp4 gpmd (GoPro) stream
« Reply #1 on: May 15, 2020, 04:00:59 PM »
You're just missing the gpx.fmt file.  It must be in the current directory when you run your command.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

himynamesdave

  • Newbie
  • *
  • Posts: 2
Re: Extracting a .gpx file from a .mp4 gpmd (GoPro) stream
« Reply #2 on: May 15, 2020, 04:28:06 PM »
Doh! Thanks, Phil!

Working perfectly now.