No description
Find a file
2025-11-29 21:55:11 +01:00
.gitignore Initial Prototype 2025-11-29 21:55:02 +01:00
go.mod Initial Prototype 2025-11-29 21:55:02 +01:00
go.sum Initial Prototype 2025-11-29 21:55:02 +01:00
main.go Initial Prototype 2025-11-29 21:55:02 +01:00
README.md Add Readme 2025-11-29 21:55:11 +01:00

go-drone-cam-gps

Write GPS data from ardupilot logs to Images / Videos for WebODM

Requirements

  • mavlogdump.py
  • exiftool
  • ffmpeg

Usage

  • mavlogdump.py --format json ardupilot-dataflash-log.bin > log.json
  • Get the Timestamp off the takeoff event in your Videos
  • Trim the beginning and combine all video files: ffmpeg -ss 00:02:48 -f concat -safe 0 -i <(for f in ./*.MP4; do echo "file '$PWD/$f'"; done) -c copy combined.mp4

Seperate Images

  • Export a frame every 4 seconds: ffmpeg -i combined.mp4 -r 0.25 images/output_%04d.png
  • Write the GPS data to EXIF: ./go-drone-cam-gps -l=log.json -i=images
  • Upload the Images to WebODM

SRT File (TODO)

  • Write the GPS data to EXIF: ./go-drone-cam-gps -l=log.json -s=combined.srt
  • Upload the Video and SRT file to Webodm (they need to have the same name)