feat: add --version option
dependencies update fix vuln bump package-lock to v2
This commit is contained in:
parent
0e34c10195
commit
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) {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
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"
|
||||||
|
|
3234
package-lock.json
generated
3234
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user