Compare commits
3 Commits
60bcbc67ac
...
3049dd3c51
| Author | SHA1 | Date | |
|---|---|---|---|
| 3049dd3c51 | |||
| 0b266cdcdf | |||
| 5040803ae5 |
@@ -19,10 +19,14 @@ geojson, csv, mgjson, virb, and other format that can be supported by
|
||||
* All other options will be pass directly to [GoPro Telemetry](https://www.npmjs.com/package/gopro-telemetry), you
|
||||
can check the list
|
||||
|
||||
### Example CSV export of GPS5 stream
|
||||
### Export as csv the GPS5 stream
|
||||
|
||||
`gopro-telemetry-exporter --input GPX010001.MP4 --output test.csv --GPS5Fix 3 --preset csv --groupTimes 200 --stream GPS5`
|
||||
|
||||
### Export as gpx
|
||||
|
||||
`gopro-telemetry-exporter --input GH010263.MP4 --output test.gpx --GPSFix 3 --preset gpx --groupTimes 200 --GPSPrecision 500`
|
||||
|
||||
## TODO
|
||||
|
||||
* Check all the presets
|
||||
|
||||
@@ -3,10 +3,13 @@
|
||||
for videoFile in "$@"
|
||||
do
|
||||
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" --GPSFix 3 --preset gpx --groupTimes 200 --GPSPrecision 500
|
||||
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"
|
||||
# For h264
|
||||
ffmpeg -i $videoFile -vcodec h264_nvenc -vf subtitles="${videoFile%.*}.ass" -preset bd -b:v 20M "${videoFile%.*}.with_speed_overlay.mp4"
|
||||
# For dnxhr 4k https://askubuntu.com/questions/907398/how-to-convert-a-video-with-ffmpeg-into-the-dnxhd-dnxhr-format
|
||||
# ffmpeg -i $videoFile -c:v dnxhd -vf "scale=3840:2160,fps=30000/1001,format=yuv422p,subtitles=${videoFile%.*}.ass" -profile:v dnxhr_lb -b:v 44M -c:a pcm_s16le ${videoFile%.*}.mov
|
||||
done
|
||||
|
||||
|
||||
1620
package-lock.json
generated
1620
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -27,13 +27,14 @@
|
||||
"homepage": "https://home.hugopoi.net/gitea/hugopoi/gopro-telemetry-exporter",
|
||||
"bin": "./bin/gopro-telemetry-exporter.js",
|
||||
"files": [
|
||||
"./bin"
|
||||
"./bin",
|
||||
"./examples"
|
||||
],
|
||||
"dependencies": {
|
||||
"gopro-telemetry": "^1.1.35",
|
||||
"gpmf-extract": "^0.1.23",
|
||||
"lodash": "^4.17.20",
|
||||
"minimist": "^1.2.5"
|
||||
"gopro-telemetry": "^1.2.11",
|
||||
"gpmf-extract": "^0.3.2",
|
||||
"lodash": "^4.17.21",
|
||||
"minimist": "^1.2.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"npm-package-json-lint-config-default": "^3.0.0"
|
||||
@@ -45,5 +46,8 @@
|
||||
"name": "HugoPoi",
|
||||
"url": "https://blog.hugopoi.net/"
|
||||
},
|
||||
"license": "GPL-3.0-or-later"
|
||||
"license": "GPL-3.0-or-later",
|
||||
"peerDependencies": {
|
||||
"egm96-universal": "^1.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user