ExifTool Forum

ExifTool => Newbies => Topic started by: DataMark on April 17, 2023, 08:12:36 AM

Title: Can't seem to get long / lat from any video regardless of format
Post by: DataMark on April 17, 2023, 08:12:36 AM
Hi there, I've been trying to get data out of a few different videos that I've shot on different devices but I'm having no luck and despite reading the FAQ's I still can't seem to get it to work. I know it'll be something silly I'm missing so I thought I'd ask otherwise I'll lose the rest of my remaining hair. Hope someone can help

This is what I've been using in Terminal on my 2023 Macbook.

This is from an Insta360 one rs camera

exiftool -api largefilesupport -ee3 -p /Users/mark/Documents/folderabc/gpx.fmt /Users/mark/Documents/folderabc/VID_20230417_113842_00_013.mp4 > /Users/mark/Documents/folderabc/out.gpx

But it gives me this:

<?xml version="1.0" encoding="utf-8"?>
<gpx version="1.0"
 creator="ExifTool 12.60"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://www.topografix.com/GPX/1/0"
 xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<trk>
<number>1</number>
<trkseg>
</trkseg>
</trk>
</gpx>

Here's the data that I can pull from the file
Dict: SourceFile = /Users/mark/Documents/folderabc/VID_20230417_113842_00_013.mp4
Dict: ExifTool:ExifToolVersion = 12.6
Dict: ExifTool:Warning = [minor] The ExtractEmbedded option may find more tags in the media data
Dict: File:FileName = VID_20230417_113842_00_013.mp4
Dict: File:Directory = /Users/mark/Documents/folderabc
Dict: File:FileSize = 1384477462
Dict: File:FileModifyDate = 2023:04:17 11:41:00+01:00
Dict: File:FileAccessDate = 2023:04:17 12:48:17+01:00
Dict: File:FileInodeChangeDate = 2023:04:17 12:44:35+01:00
Dict: File:FilePermissions = 100777
Dict: File:FileType = MP4
Dict: File:FileTypeExtension = MP4
Dict: File:MIMEType = video/mp4
Dict: QuickTime:MajorBrand = avc1
Dict: QuickTime:MinorVersion = 0.0.0
Dict: QuickTime:CompatibleBrands = ['avc1', 'isom']
Dict: QuickTime:MediaDataSize = 1365999474
Dict: QuickTime:MediaDataOffset = 48
Dict: QuickTime:MovieHeaderVersion = 0
Dict: QuickTime:CreateDate = 2023:04:17 10:38:33
Dict: QuickTime:ModifyDate = 2023:04:17 10:38:33
Dict: QuickTime:TimeScale = 48000
Dict: QuickTime:Duration = 136.402916666667
Dict: QuickTime:PreferredRate = 1
Dict: QuickTime:PreferredVolume = 1
Dict: QuickTime:PreviewTime = 0
Dict: QuickTime:PreviewDuration = 0
Dict: QuickTime:PosterTime = 0
Dict: QuickTime:SelectionTime = 0
Dict: QuickTime:SelectionDuration = 0
Dict: QuickTime:CurrentTime = 0
Dict: QuickTime:NextTrackID = 4
Dict: QuickTime:TrackHeaderVersion = 0
Dict: QuickTime:TrackCreateDate = 2023:04:17 10:38:33
Dict: QuickTime:TrackModifyDate = 2023:04:17 10:38:33
Dict: QuickTime:TrackID = 1
Dict: QuickTime:TrackDuration = 136.402916666667
Dict: QuickTime:TrackLayer = 0
Dict: QuickTime:TrackVolume = 0
Dict: QuickTime:ImageWidth = 3840
Dict: QuickTime:ImageHeight = 2160
Dict: QuickTime:GraphicsMode = 0
Dict: QuickTime:OpColor = 0 0 0
Dict: QuickTime:CompressorID = avc1
Dict: QuickTime:SourceImageWidth = 3840
Dict: QuickTime:SourceImageHeight = 2160
Dict: QuickTime:XResolution = 72
Dict: QuickTime:YResolution = 72
Dict: QuickTime:CompressorName = Ambarella AVC encoder
Dict: QuickTime:BitDepth = 24
Dict: QuickTime:PixelAspectRatio = 1:1
Dict: QuickTime:VideoFrameRate = 29.97002997003
Dict: QuickTime:Balance = 0
Dict: QuickTime:AudioFormat = mp4a
Dict: QuickTime:AudioChannels = 2
Dict: QuickTime:AudioBitsPerSample = 0
Dict: QuickTime:AudioSampleRate = 48000
Dict: QuickTime:MatrixStructure = -1 0 0 0 -1 0 0 0 1
Dict: QuickTime:MediaHeaderVersion = 0
Dict: QuickTime:MediaCreateDate = 2023:04:17 10:38:33
Dict: QuickTime:MediaModifyDate = 2023:04:17 10:38:33
Dict: QuickTime:MediaTimeScale = 1000
Dict: QuickTime:MediaDuration = 136.4
Dict: QuickTime:HandlerType = text
Dict: QuickTime:HandlerDescription = Ambarella EXT
Dict: QuickTime:GenMediaVersion = 0
Dict: QuickTime:GenFlags = 0 0 0
Dict: QuickTime:GenGraphicsMode = 64
Dict: QuickTime:GenOpColor = 32768 32768 32768
Dict: QuickTime:GenBalance = 0
Dict: QuickTime:OtherFormat = text
Dict: Composite:ImageSize = 3840 2160
Dict: Composite:Megapixels = 8.2944
Dict: Composite:AvgBitrate = 80115558
Dict: Composite:Rotation = 180

I've tried using different files from different devices including .mov but I still get a blank GPS file the same the one above. I think my insta360 video should have gps on it. But I'm more certain that my .mov file should to as it's already adding a map into the video:

[https://pasteboard.co/s3gvDPoQrYBe.png

Can anyone help me with the exiftool code to get the full GPS out of files?




Title: Re: Can't seem to get long / lat from any video regardless of format
Post by: Phil Harvey on April 17, 2023, 10:26:53 AM
If this command doesn't extract GPS then either it doesn't contain GPS or ExifTool doesn't yet support the format:

exiftool "-gps*" -ee3 -api largfilesupport FILE

Send me a link to download the file if you think the file contains GPS but ExifTool doesn't extract it.  My email is philharvey66 at gmail.com

Note that it seems I am not able to download files larger than 6 GB.

- Phil
Title: Re: Can't seem to get long / lat from any video regardless of format
Post by: DataMark on April 17, 2023, 11:10:00 AM
Quote from: Phil Harvey on April 17, 2023, 10:26:53 AMSend me a link to download the file if you think the file contains GPS but ExifTool doesn't extract it.  My email is philharvey66 at gmail.com

Thanks Phil - I've just dropped you an email. I really appreciate the help with it :)
Title: Re: Can't seem to get long / lat from any video regardless of format
Post by: Phil Harvey on April 17, 2023, 12:52:38 PM
I got the files, thanks.

The Insta360 doesn't write the same information as other Insta360 cameras that I've seen.  Specifically, it is missing the 0x700 GPS record.  It does contain an unknown 0x900 record, but I can't see any GPS in this.

The AVI video could be storing the GPS in the separate VBO file, but I can't see anything in the AVI file.

I also can't see any timed GPS in the MOV.  I don't know what you mean by "it's already adding a map into the video" because the image you linked looks to be from an animation, and not related to the video you uploaded.

This is more difficult because I don't know the approximate GPS coordinates for any of these videos.  It is easier when the video has the GPS coordinates burned into the image because then I can look for these coordinates in the metadata.  Without knowing the coordinates it is a bit more difficult to find the GPS metadata if it exists.

- Phil
Title: Re: Can't seem to get long / lat from any video regardless of format
Post by: DataMark on April 17, 2023, 01:58:01 PM
Thanks for taking a look at it all. I'll go back to the drawing board and have another go at recoding video.

The VBOX files (one is a .avi which seems to be a composite video as it comes with the gps overlay) looks like this: https://youtu.be/N_MO6D-VRYs straight out of the box. I do wonder if the accompanying VBO file contains the gps data and somehow overlays it when i get the files of my SD card.

Thanks again for taking a look.
Title: Re: Can't seem to get long / lat from any video regardless of format
Post by: Phil Harvey on April 17, 2023, 03:38:07 PM
You're calling the overlay of the track layout with the red dot GPS?  Possibly, but this could also be an inertial positioning system.

- Phil