No description
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| README.md | ||
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)