Compare commits
No commits in common. "484e3d050df1268361f356dd66741648bb7e589e" and "32481eb4ae770f730c309e95995197145abd50d8" have entirely different histories.
484e3d050d
...
32481eb4ae
13
README.md
13
README.md
|
@ -2,12 +2,6 @@
|
|||
|
||||
A cli tool to export GoPro metadatas from video files.
|
||||
|
||||
## Install
|
||||
|
||||
`npm install -g gopro-telemetry-exporter`
|
||||
|
||||
or just prefix command `npx`
|
||||
|
||||
## Usage
|
||||
|
||||
`gopro-telemetry-exporter --input GPX010001.MP4 --output GPX010001.gpx --GPS5Fix 3 --preset gpx --groupTimes 200`
|
||||
|
@ -16,15 +10,12 @@ or just prefix command `npx`
|
|||
* `--output` is the path to metadatas output file ( can be gpx, kml,
|
||||
geojson, csv, mgjson, virb, and other format that can be supported by
|
||||
[GoPro Telemetry Presets](https://www.npmjs.com/package/gopro-telemetry#user-content-presets))
|
||||
* All other options will be pass directly to [GoPro Telemetry](https://www.npmjs.com/package/gopro-telemetry), you
|
||||
* All other options will be pass directly to [GoPro Telemetry](), you
|
||||
can check the list
|
||||
|
||||
### Example CSV export of GPS5 stream
|
||||
|
||||
`gopro-telemetry-exporter --input GPX010001.MP4 --output test.csv --GPS5Fix 3 --preset csv --groupTimes 200 --stream GPS5`
|
||||
|
||||
## TODO
|
||||
|
||||
* Check all the presets
|
||||
* Implement progress
|
||||
|
||||
https://www.npmjs.com/package/gopro-telemetry
|
||||
|
|
|
@ -28,14 +28,8 @@ async function main(options) {
|
|||
};
|
||||
}
|
||||
|
||||
goproTelemetry(res, _.omit(options, ['_', 'input', 'output']), telemetryData => {
|
||||
if (options.preset === 'csv') {
|
||||
telemetryData = _.values(telemetryData)[0];
|
||||
} else if (!_.isString(telemetryData)) {
|
||||
telemetryData = JSON.stringify(telemetryData);
|
||||
}
|
||||
|
||||
fs.writeFileSync(options.output, telemetryData);
|
||||
goproTelemetry(res, _.omit(options, ['_', 'input', 'output']), telemetry => {
|
||||
fs.writeFileSync(options.output, telemetry);
|
||||
});
|
||||
|
||||
}
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gopro-telemetry-exporter",
|
||||
"version": "1.1.0",
|
||||
"version": "1.0.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gopro-telemetry-exporter",
|
||||
"version": "1.1.0",
|
||||
"version": "1.0.1",
|
||||
"description": "A cli tool to parse telemetry from the GPMF track in GoPro cameras (Hero5 and later).",
|
||||
"keywords": [
|
||||
"GoPro",
|
||||
|
|
Loading…
Reference in New Issue
Block a user