Compare commits
2 Commits
0e34c10195
...
60bcbc67ac
Author | SHA1 | Date | |
---|---|---|---|
60bcbc67ac | |||
3e1c9ca4bf |
|
@ -7,8 +7,12 @@ const goproTelemetry = require(`gopro-telemetry`);
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const minimist = require('minimist');
|
const minimist = require('minimist');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
const { version } = require(__dirname + '/../package');
|
||||||
|
|
||||||
async function main(options) {
|
async function main(options) {
|
||||||
|
if (options.version) {
|
||||||
|
return console.log(`gopro-telemetry-exporter v${version}`)
|
||||||
|
}
|
||||||
const res = await gpmfExtract(bufferAppender(options.input, 10 * 1024 * 1024));
|
const res = await gpmfExtract(bufferAppender(options.input, 10 * 1024 * 1024));
|
||||||
|
|
||||||
function bufferAppender(path, chunkSize) {
|
function bufferAppender(path, chunkSize) {
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
for videoFile in "$@"
|
for videoFile in "$@"
|
||||||
do
|
do
|
||||||
echo "Extracting gpx for $videoFile"
|
echo "Extracting gpx for $videoFile"
|
||||||
./gopro-telemetry-exporter --input $videoFile --output "${videoFile%.*}.gpx" --GPS5Fix 3 --preset gpx --groupTimes 200
|
gopro-telemetry-exporter --input $videoFile --output "${videoFile%.*}.gpx" --GPS5Fix 3 --preset gpx --groupTimes 200
|
||||||
gpsbabel -i gpx -f "${videoFile%.*}.gpx" -x track,speed -o subrip -F - | grep -v Lat > "${videoFile%.*}.srt"
|
gpsbabel -i gpx -f "${videoFile%.*}.gpx" -x track,speed -o subrip -F - | grep -v Lat > "${videoFile%.*}.srt"
|
||||||
ffmpeg -i "${videoFile%.*}.srt" "${videoFile%.*}.ass"
|
ffmpeg -i "${videoFile%.*}.srt" "${videoFile%.*}.ass"
|
||||||
sed -i 's/^Style: .*/Style: Default,SquareFont,12,\&Hffffff,\&Hffffff,\&H0,\&H0,0,0,0,0,100,100,0,0,1,1,0,1,10,10,10,0/' "${videoFile%.*}.ass"
|
sed -i 's/^Style: .*/Style: Default,SquareFont,12,\&Hffffff,\&Hffffff,\&H0,\&H0,0,0,0,0,100,100,0,0,1,1,0,1,10,10,10,0/' "${videoFile%.*}.ass"
|
||||||
|
|
3238
package-lock.json
generated
3238
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "gopro-telemetry-exporter",
|
"name": "gopro-telemetry-exporter",
|
||||||
"version": "1.1.1",
|
"version": "1.2.0",
|
||||||
"description": "A cli tool to parse telemetry from the GPMF track in GoPro cameras (Hero5 and later).",
|
"description": "A cli tool to parse telemetry from the GPMF track in GoPro cameras (Hero5 and later).",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"GoPro",
|
"GoPro",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user