Skip to content

Instantly share code, notes, and snippets.

@leeogrady
Created September 9, 2018 06:41
Show Gist options
  • Save leeogrady/2993e95135427b06b5f8ffad001dbf31 to your computer and use it in GitHub Desktop.
Save leeogrady/2993e95135427b06b5f8ffad001dbf31 to your computer and use it in GitHub Desktop.
Script to scan directories and tag (macOS) indicating telemetry present.

GoPro search for GPMF data - telemetry

Script to scan directories and tag (macOS) indicating GoPro telemetry present.

Requires

Usage

tag -r GPMF $(exiftool -FileName -ext MP4 -if '$GPSPosition =~ / [E,W]/i' -T .) &&tag -a GPMF $(exiftool -FileName -ext MP4 -if '$GPSPosition =~ / [E,W]/i' -T .)

Why

tag is used to add the string GPMF to the tags column in finder, this is fed by exif; ExifTool searches the current directory for MP4 file that have a GPSPosition containing ' E' or ' W' (a guaranteed string in a valid position), prints out only the filename in tabular form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment