Skip to content

Instantly share code, notes, and snippets.

@JAgostoni
Last active July 6, 2021 22:47
Show Gist options
  • Save JAgostoni/4135e700672de81d1eab4e08fcd5acf1 to your computer and use it in GitHub Desktop.
Save JAgostoni/4135e700672de81d1eab4e08fcd5acf1 to your computer and use it in GitHub Desktop.
Extract NMEA from Blackvue
#!/bin/bash
rm session.txt
for FILE in "$@"
do
echo $FILE
FILENMEA="$FILE.txt"
echo $FILENMEA
../exiftool -GPSLog -b $FILE | sed '/^.*\$GPRMC.*$/!d;s/\[[[:digit:]]*\]//g' > $FILENMEA
cat $FILENMEA >> session.txt
done
@JAgostoni
Copy link
Author

Needs copy of exiftool in a directory.
Usage:
extrach.sh *.mp4

Extracts GPRMC sentences and removes strange timestamp.

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