Compare commits

..

2 Commits

Author SHA1 Message Date
60bcbc67ac
1.2.0 2023-07-23 13:19:47 +02:00
3e1c9ca4bf
feat: add --version option
dependencies update fix vuln
bump package-lock to v2
2023-07-23 13:18:35 +02:00
4 changed files with 133 additions and 3115 deletions

View File

@ -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) {

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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",