Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.54 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.54 KB

AddGPSDataToMP4

Description

This script reads GPS data from a .txt or .SRV file and copies it to the metadata of the corresponding .mp4 file. Please make sure to save the video and the data file in the same directory. Both must have the same name!

Convention:

  • /path/to/your/videos/nameOfVideo.mp4
  • /path/to/your/videos/nameOfVideo.txt
  • The GPS data has to be saved as the following pattern:
[latitude: 62.471811] [longitude: 23.388790] [rel_alt: 0.000 abs_alt: 117.393]

Installation

  1. Download ExifTool (v12.97) and move it to your PATH, as described in the installation guide on the homepage of Exiftool:

  2. Clone the repository:

    git clone https://github.com/Yoschi95/AddGPSDataToMP4.git
  3. Navigate to the source directory of the repository:

    cd AddGPSDataToMP4/src

Usage

  1. Call the script:
    ./AddGPSDataToMP4.sh /path/to/your/videos

Example

Example CLI output

Contributing

Contributions are welcome! Please open an Issue or submit a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Credits

  • ExifTool - A platform-independent Perl library plus a command-line application for reading, writing and editing meta information.