Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matiaskorhonen/dji-gps-metadata

Write GPS location metadata to video files in a way that Photos.app knows how to parse
https://github.com/matiaskorhonen/dji-gps-metadata

Last synced: 7 days ago
JSON representation

Write GPS location metadata to video files in a way that Photos.app knows how to parse

Awesome Lists containing this project

README

        

# DJI GPS Metadata

Write GPS location metadata to video files from a DJI drone in a way that Apple's Photos.app knows how to parse.

The GPS location is extracted from the original MP4 files using exiftool and the MP4 files are converted to QuickTime videos (`.mov`) *without* re-encoding them. Subtitles are preserved, if present.

*Note: this has only been tested using recordings from a DJI Mini 2 as that's the only drone I have access to*

## Dependencies

* bash
* exiftool (`brew install exiftool`)
* ffmpeg (`brew install ffmpeg`)
* avmetareadwrite (from `xcode-select --install` or from Xcode)

### Development dependencies

* Docker
* argbash
* shfmt
* shellcheck

Run `./scripts/check-and-format` before committing changes.

## Usage

```
» ./dji-gps-metadata.sh -h
DJI GPS Metadata for Photos.app
Usage: ./dji-gps-metadata.sh [-m|--make ] [-d|--model ] [-r|--(no-)remove-original] [-h|--help] [] ... [] ...
: source MP4 file
-m, --make: Device make (default: 'DJI')
-d, --model: Device model (default: 'Mini 2')
-r, --remove-original, --no-remove-original: Remove original MP4s after processing (off by default)
-h, --help: Prints help
```

## MIT License

Copyright (c) 2022 Matias Korhonen. See LICENSE for details.