Last active
July 6, 2021 22:47
-
-
Save JAgostoni/4135e700672de81d1eab4e08fcd5acf1 to your computer and use it in GitHub Desktop.
Extract NMEA from Blackvue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needs copy of exiftool in a directory.
Usage:
extrach.sh *.mp4
Extracts GPRMC sentences and removes strange timestamp.