I have an Auto-Vox X2 dashcam that encodes GPS information as part of its video recordings.
I'm running version 12.40 of ExifTool, on Ubuntu 22.04.
(My video file is called: 'V0299B.MOV', but it's 24 MB and the attachment file size limit is 12 MB, so I cannot attach it)
If I run:
exiftool -ee -G3 V0299B.MOV
I see numerous rows of GPS information displayed. Here's a sample output (there is much more, I'm only showing a few rows)
[Main] GPS Position : 34 deg 38' 48.45" N, 120 deg 28' 13.55" W
[Doc1] Sample Time : 0.30 s
[Doc1] GPS Date/Time : 2022:03:17 22:03:38Z
[Doc1] GPS Latitude : 34 deg 38' 48.45" N
[Doc1] GPS Longitude : 120 deg 28' 13.55" W
[Doc1] GPS Speed : 0
[Doc1] GPS Track : 0
However, when I try to extract this information, by running this command:
exiftool -ee -p "GPS $gpslatitude $gpslongitude" V0299B.MOV
I don't get any of the GPS Latitude or Longitude information -- all I see is:
GPS
GPS
GPS
GPS
GPS
The file clearly has GPS Latitude and GPS Longitude information present, and it seems to be valid -- does anyone have any clues as to why it's not being exported correctly? Any help is appreciated.
Your shell is interpreting the "$" variables in the double quotes. Use single quotes to protect against shell interpolation. (See my signature below.)
- Phil