Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/matiaskorhonen/dji-gps-metadata
- Owner: matiaskorhonen
- License: mit
- Created: 2022-07-10T11:00:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T13:38:38.000Z (7 months ago)
- Last Synced: 2024-10-31T06:41:54.905Z (about 2 months ago)
- Language: Shell
- Size: 682 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
* shellcheckRun `./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.