feat: add --version option

dependencies update fix vuln
bump package-lock to v2
This commit is contained in:
Hugo Poissonnet 2023-07-23 13:18:35 +02:00
parent 0e34c10195
commit 3e1c9ca4bf
No known key found for this signature in database
GPG Key ID: E581734975D3836F
3 changed files with 131 additions and 3113 deletions

View File

@ -7,8 +7,12 @@ const goproTelemetry = require(`gopro-telemetry`);
const fs = require('fs');
const minimist = require('minimist');
const _ = require('lodash');
const { version } = require(__dirname + '/../package');
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));
function bufferAppender(path, chunkSize) {

View File

@ -2,8 +2,8 @@
for videoFile in "$@"
do
echo "Extracting gpx for $videoFile"
./gopro-telemetry-exporter --input $videoFile --output "${videoFile%.*}.gpx" --GPS5Fix 3 --preset gpx --groupTimes 200
echo "Extracting gpx for $videoFile"
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"
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"

3236
package-lock.json generated

File diff suppressed because it is too large Load Diff