Ask a Question
GoPro Support Hub Find a solution. Share a solution. Ask a question. Stay stoked.
Announcements
Is your GoPro gear up to date? Check to see If it is on our Update page.
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.
Tourist
Posts: 8
Re: Extracting the metadata in a useful format

>I didn't end up using any code from your repo, as the project is in Python. I'm not really sure a PR would make sense given that, but the >code I'm using is this:

 

>https://pastebin.com/mqbKKeSn

 

>It's a very stripped down version of what you're doing, as I'm only pulling out the data points/types I care about for my specific application >rather than parsing all the GoPro data.

 

>Thanks, Tom

 

python code - it is good.

run it with python3 interpreter on macos, with extracted MET stream, but in output get 39 bytes file with content:

 

 

timestamp,latitude,longitude,speedmps

 

 

 

 

Nomad
Posts: 146
Re: Extracting the metadata in a useful format
@drago76 My repo is compiled as a bundle that allows you to export the gpx files by just dropping your video files (windows only): https://tailorandwayne.com/gpmd2csv/
Tourist
Posts: 8
Re: Extracting the metadata in a useful format

Ok, get it, windows is not interesting - thanks to god, i get off of microsoft nightmare about since 2006.

 

there is a solution for mac / linux?

Nomad
Posts: 146
Re: Extracting the metadata in a useful format

@drago76 You will then have to do manually the steps that the batch script does. Everything is included here: https://github.com/JuanIrache/gopro-utils

- Extract the binafy with ffmpeg

- Convert to GPX with the gopro2gpx tool (you will have to compile it with GO first, or run the .EXE one if you can do that on your Mac)

Tourist
Posts: 8
Re: Extracting the metadata in a useful format

try to process MET stream as described, import that .gpx file to garmin virb edit - yes, visually

route was right on map.

 

but virb edit telemetry do not show speed, only bearing and distance.

speed stays 0, gravity indicator too.

 

ok, gravity not very important there, but speed was important, why it stays zero?

 

PS and why there is no python script to convert .bin file to gpx?

it was much more handy, because of python was in default in almost any linux distro, for example.

 

also sadly, in readme file was no any info, how to use gopro2gpx.go script - it takes a time to get, i must run

 

go run  gopro2gpx.go -i input -a 500 -f 2 -o filename

 

and also must have a 

bash-3.2$ go run  gopro2gpx.go -i out-0001.bin -a 500 -f 2 -o gopro1.gpx

gopro2gpx.go:14:2: cannot find package "github.com/JuanIrache/gopro-utils/telemetry" in any of:

/usr/local/Cellar/go/1.11.4/libexec/src/github.com/JuanIrache/gopro-utils/telemetry (from $GOROOT)

/Users/john/go/src/github.com/JuanIrache/gopro-utils/telemetry (from $GOPATH)

 

so, i must install it by

 

go get github.com/JuanIrache/gopro-utils/telemetry

 

yes, python script may be much, much better alternative, i suppose... :\

 

PS do anyone use a garmin virb cameras? how is it, comparing with gopro in general?

i know, it is very hard to make product worse than gopro, but anyway.... its soft and UI / firmware is better, not such murky and buggy?

Tourist
Posts: 8
Re: Extracting the metadata in a useful format

if there is any programmer, may it take a look in moviepy?

 

it looks lika a python script, who allow to place various overlays over a video.

i start to investigate it, and it looks very promising at start...

 

https://github.com/Zulko/moviepy/issues/222

 

https://zulko.github.io/moviepy/getting_started/getting_started.html

 

https://www.youtube.com/watch?v=Fg8Sf4fPCwY

 

 

Muchas veces hacemos videos montando en bici y nos gustaría saber ¿ a cuanto pasé por aquí ? ¿ que pendiente tenía esta rampa ? ¿ Cuantos Watios meto subiendo? Pues este programita te muestra la información que puedas extraer de tu grabación del ejercicio, y te la pinta como tu quieras en la ...
Highlighted
Sightseer
Posts: 1
Re: Extracting the metadata in a useful format

I just hacked together a python3 implemention of the entire process based on the pastebin script a few posts back. I wanted it simple to use and able to process multiple videos at once into once track. I tested it with strava and it looks to be working OK.

 

https://github.com/krisp/gopro2gpx/blob/master/gopro2gpx.py

 

usage: python3 gopro2gpx.py GP010010.MP4 GP020010.MP4 GP030010.MP4 out.gpx

 

probably works on windows and mac, linux is tested. if ffmpeg is somewhere other than /usr/bin/ffmpeg, edit the script accordingly.

Nomad
Posts: 146
Re: Extracting the metadata in a useful format

That's fantastic, thanks for sharing