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.
Sightseer
Posts: 6
Re: Extracting the metadata in a useful format

Kajuna's GoPro utilities has recently been update with a new batch script "Metadata Copier.bat". This has the capability to copy the metadata from a source video file to a post processed video file that lacks the metadata of the original.

 

I post process and color corect my GoPro files using DaVinci Resolve. The problem I had is when exporting video from DaVinci Resolve, the metadata and timestamp information was being stripped out, so all of my GPS data was lost. I developed this script to copy all of that useful metadata from the original GoPro files to the post-processed files. This script just copies the data, so the source file length and framerate should be the same as the original, or you might have issues.

 

To run the script, you'll want to have your input files (original GoPro files with metadata) and corrected files (with the edits, color corrections, etc.) organized correctly. Drag an original GoPro source file onto the script and it will process all of the source .MP4 files in that directory that correspond to a corrected file in the "EditedVideoPath".

 

You may edit the top portion of the batch file to change the default settings, if necessary. The script will look at the source GoPro .MP4 files and use the settings chosen to search for a corresponding edited file to process. You may change which folder edited files are in, and anything you have prepended or postpended to the file name (the base filename needs to remain intact). You may also edit the batch file to change which folder the script will output files to and any prepended or postpended text to the filename.

 

Tip: Use Bulk Rename Utility to easily manage file naming:

https://www.bulkrenameutility.co.uk/Download.php

 

Example (using defaults):
Original GoPro files (source files for metadata): "C:\Source Files\GoPro Video 1.mp4"
Edited (color corrected files, source for video/audio): "C:\Source Files\Edited Video\GoPro Video 1.mp4"
The metadata corrected files will export to: "C:\Source Files\Metadata Fix\GoPro Video 1_MDF.mp4"

The options you can edit in the batch file:

 

:: This is the name of the nested directory that contains the edited/color corrected video files.
set EditedVideoPath=Edited Video

:: Edit this to tell the script anything that has been prepended to the filename of the edited/color corrected video files.
set EditedPrepend=

:: Edit this to tell the script anything that has been postpended to the filename of the edited/color corrected video files.
set EditedPostpend=

:: Directory to export the processed files to (nested under source file directory).
set ExportVideoPath=Metadata Fix

:: Optional text to postpend to the exported video files (with the correct video/metadata)
set MetadataFixedPostPend=_MDF

 

FYI, I mostly used this process to color correct my video files. Credit to "The Loam Ranger" for the awesome process:
Part 1: https://www.youtube.com/watch?v=2YEePcJZcFI
Part 2: https://www.youtube.com/watch?v=NXnBCkF9jUQ&t=633s

It's the ultimate action cam / GoPro tutorial. HERES PART 2: https://youtu.be/NXnBCkF9jUQ No BS, all solid info. Professional videographer and photographer Ryan Kelly from The Loam Ranger walks through the essential steps to getting pro quality action camera footage. Let's do this. Yes I bought a
Part 2/2 from my GoPro and action cam series is here! In this tutorial video, I cover exactly how I take my raw, unprocessed GoPro footage and turn it into sharp, vibrant video, ready to share with friends around the world. For me, it's all about creating action cam video that is as close to the ...
Tourist
Posts: 8
Re: Extracting the metadata in a useful format

bash-3.2$ python3 gopro2gpx.py GH010001.MP4 01.gpx

  File "gopro2gpx.py", line 149

    print(

         ^

TabError: inconsistent use of tabs and spaces in indentation

bash-3.2$ 

Tourist
Posts: 4
Betreff: Extracting the metadata in a useful format

Hello, 

 

Is there a similar way to extact the metadata of the accelerometer of a H7 or is there a simple way to see the data in gopro quik?

Or is this method compatible also with H7?

 

Thank you 

Nomad
Posts: 148
Betreff: Extracting the metadata in a useful format

@bluecreek74714 It's compatible! Just drag and drop your files on the batch script (for Windows)  

 

https://tailorandwayne.com/gpmd2csv/

Sightseer
Posts: 1
Re: Extracting the metadata in a useful format
Hi,

I'm reading through all postos but still I have an issue. I use BAT script to extract GPX data. But When i load that data into VIRB edit, my speed value isnt correct. I ride my bike 140 km/h and speedometer says 7 Km/h. Only correct value is when I'm standing still, than both speed are at 0 :)

I have tried to correct
SET AccuracyFilter=500
SET FixFilter=3

Vithout success. If I use file in GoPro Quick than speed is shown correctly. ALTitude, Time and other values are shown correct.

I use GH5Black, sw. 2.60

I like this VIRB app a lot, but without speedometer it is useles to me. I tried with calculated speed, measured speed, ...

Here is some data from extract:
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="https://github.com/tkrajina/gpxgo">
<trk>
<name>C:\Users\ivank\Desktop\GPMD2CSV\\GoPro Metadata Extract\GOPR0510\GPMD2CSV</name>
<trkseg>
<trkpt lat="45.8046646" lon="16.2435384">
<ele>151.984</ele>
<time>2019-03-09T14:35:00.715Z</time>
<cmt>GpsAccuracy: 194; GpsFix: 3</cmt>
</trkpt>
<trkpt lat="45.8046638" lon="16.2435428">
<ele>151.979</ele>
<time>2019-03-09T14:35:00.770Z</time>
<cmt>GpsAccuracy: 194; GpsFix: 3</cmt>
</trkpt>
<trkpt lat="45.804663" lon="16.2435473">
<ele>151.968</ele>
<time>2019-03-09T14:35:00.825Z</time>
<cmt>GpsAccuracy: 194; GpsFix: 3</cmt>
</trkpt>
<trkpt lat="45.8046622" lon="16.2435518">
<ele>151.958</ele>
<time>2019-03-09T14:35:00.880Z</time>
<cmt>GpsAccuracy: 194; GpsFix: 3</cmt>
</trkpt>
<trkpt lat="45.8046614" lon="16.2435562">
<ele>151.961</ele>
<time>2019-03-09T14:35:00.935Z</time>
<cmt>GpsAccuracy: 194; GpsFix: 3</cmt>
</trkpt>
<trkpt lat="45.8046606" lon="16.2435606">
<ele>151.97</ele>
<time>2019-03-09T14:35:00.990Z</time>
<cmt>GpsAccuracy: 194; GpsFix: 3</cmt>
</trkpt>
<trkpt lat="45.8046598" lon="16.2435651">
<ele>151.97</ele>
<time>2019-03-09T14:35:01.045Z</time>
<cmt>GpsAccuracy: 194; GpsFix: 3</cmt>
</trkpt>
<trkpt lat="45.8046589" lon="16.2435696">
<ele>151.976</ele>
<time>2019-03-09T14:35:01.100Z</time>
<cmt>GpsAccuracy: 194; GpsFix: 3</cmt>
</trkpt>


If I use same GPX data on this web site (https://tailorandwayne.com/dji-srt-viewer/), a get correct speed values

Any idea?
Tourist
Posts: 4
Re: Extracting the metadata in a useful format

Im having the exact same problem with Virb edit not showing my speed :(.  It even shows the track correctly, but speeds wont display.  Just swaps betwen 0, 1 and 2 mphs.  Speed displays fine in dashview or quik.

Sightseer
Posts: 7
Re: Extracting the metadata in a useful format
Same here.
While Virb Edit fills the need of having a good desktop application that can render GPS overlay videos, it’s not the ideal solution for non Garmin stuff. And I suppose that’s to be expected - why should they care about non Garmin nuances?
We’re just lucky some stuff works.

Go pro needs to seriously write a desktop application that can handle the data overlays of their cameras.

(Go pro quik is rubbish, absolute trash)
Nomad
Posts: 148
Re: Extracting the metadata in a useful format
Does anyone have a GPS file that works in Virb Edit so that I can compare them? If it's a formatting issue I should be able to adjust the GPMD2CSV tool