Xplatforms / gpmfstream

Extract data from videos containing GPMF metadata (e.g. GoPro Hero 5 and onwards)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GPMF Streams

This package was created to extract sensor data from files containing GPMF telemetry. It has so far only been tested with the IMU data provided by GoPro Hero 5 and Hero 6 cameras.

Example

Extract all streams and then plot the gyroscope data

streams = Stream.extract_streams(path)
gyro = streams['GYRO']
plt.plot(gyro.timestamps, gyro.data)

Timestamps

Since the sensor does not provide per-sample timestamps, we must compute them explicitly. Currently, we assume a fixed sample rate, and compute it by simple linear interpolation.

License

This software is released under the GNU GPL version 3 and later.

Dependencies

The code depends on https://github.com/gopro/gpmf-parser. To install the correct version, run 'git submodule update --init' from within this git repo before compiling.

About

Extract data from videos containing GPMF metadata (e.g. GoPro Hero 5 and onwards)

License:GNU General Public License v3.0


Languages

Language:C++ 53.0%Language:Python 47.0%