Compare commits
No commits in common. "60bcbc67ac55836ce0b76090fa988a6cd67ee35a" and "0e34c10195d22125ec04f281dff581b493a352c7" have entirely different histories.
60bcbc67ac
...
0e34c10195
|
@ -7,12 +7,8 @@ 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"
|
||||||
|
|
3236
package-lock.json
generated
3236
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.2.0",
|
"version": "1.1.1",
|
||||||
"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