GPS data from video

Started by benjamin.alvial, January 13, 2025, 03:20:59 PM

Previous topic - Next topic

benjamin.alvial

Hi, I hope all is well.

I am working on a project in which I need to retrieve GPS data from a video. I've tried running exiftool unsuccessfully. I found these three topics that discuss my same issue: some video that definitely has GPS coordinates because they're displayed by a program called "GXPlayer", but exiftool can't retrieve them:


Apparently, Phil has found 11 distinct variations, and this one might be another one (or not), which have been accounted for in recent update (December 2024). I've sent the video in Google Drive to philharvey66 at gmail.

I hope you can help or guide me. Thank you very much.

Below I show you the code I used:

First:
exiftool -a -u -g1 ejemplo.MOV, getting output:

---- ExifTool ----
ExifTool Version Number         : 13.12
---- System ----
File Name                       : ejemplo.MOV
Directory                       : .
File Size                       : 446 MB
Zone Identifier                 : Exists
File Modification Date/Time     : 2025:01:13 14:37:09-03:00
File Access Date/Time           : 2025:01:13 16:27:56-03:00
File Creation Date/Time         : 2025:01:13 14:37:48-03:00
File Permissions                : -rw-rw-rw-
---- File ----
File Type                       : MOV
File Type Extension             : mov
MIME Type                       : video/quicktime
---- QuickTime ----
Major Brand                     : Apple QuickTime (.MOV/QT)
Minor Version                   : 2016.4.21
Compatible Brands               : qt
Wide                            : (Binary data 0 bytes, use -b option to extract)
Media Data Size                 : 415995868
Media Data Offset               : 36
Movie Header Version            : 0
Create Date                     : 0000:00:00 00:00:00
Modify Date                     : 0000:00:00 00:00:00
Time Scale                      : 1200
Duration                        : 0:03:00
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
---- Track1 ----
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 0000:00:00 00:00:00
Track ID                        : 1
Track Duration                  : 0:03:00
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 1920
Image Height                    : 1080
Unknown edts                    : (Binary data 28 bytes, use -b option to extract)
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 0000:00:00 00:00:00
Media Time Scale                : 600
Media Duration                  : 0:03:00
Media Language Code             : zh-CN
Handler Class                   : Media Handler
Handler Type                    : Video Track
Handler Description             : VideoHandler
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Handler Class                   : Data Handler
Handler Type                    : URL
Handler Description             : DataHandler
Compressor ID                   : avc1
Vendor ID                       : FFmpeg
Source Image Width              : 1920
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
AVC Configuration               : (Binary data 26 bytes, use -b option to extract)
Video Frame Rate                : 27.273
Sync Sample Table               : (Binary data 616 bytes, use -b option to extract)
Sample To Chunk                 : (Binary data 20 bytes, use -b option to extract)
Sample Sizes                    : (Binary data 19452 bytes, use -b option to extract)
Chunk Offset                    : (Binary data 19448 bytes, use -b option to extract)
---- Track2 ----
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 0000:00:00 00:00:00
Track ID                        : 2
Track Duration                  : 0:03:00
Track Layer                     : 0
Track Volume                    : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Unknown edts                    : (Binary data 28 bytes, use -b option to extract)
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 0000:00:00 00:00:00
Media Time Scale                : 8000
Media Duration                  : 0:03:00
Media Language Code             : zh-CN
Handler Class                   : Media Handler
Handler Type                    : Audio Track
Handler Description             : SoundHandler
Balance                         : 0
Handler Class                   : Data Handler
Handler Type                    : URL
Handler Description             : DataHandler
Audio Format                    : sowt
Audio Vendor ID                 : FFmpeg
Audio Channels                  : 1
Audio Bits Per Sample           : 16
Audio Sample Rate               : 8000
Layout Flags                    : Mono
Audio Channels                  : 1
Time To Sample Table            : (Binary data 16 bytes, use -b option to extract)
Sample To Chunk                 : (Binary data 20 bytes, use -b option to extract)
Sample Sizes                    : (Binary data 12 bytes, use -b option to extract)
Chunk Offset                    : (Binary data 1412 bytes, use -b option to extract)
---- Composite ----
Image Size                      : 1920x1080
Megapixels                      : 2.1
Avg Bitrate                     : 18.5 Mbps
Rotation                        : 0

Second:
exiftool -ee ejemplo.MOV, getting output:

Getting as output:
ExifTool Version Number         : 13.12
File Name                       : ejemplo.MOV
Directory                       : .
File Size                       : 446 MB
Zone Identifier                 : Exists
File Modification Date/Time     : 2025:01:13 14:37:09-03:00
File Access Date/Time           : 2025:01:13 16:48:40-03:00
File Creation Date/Time         : 2025:01:13 14:37:48-03:00
File Permissions                : -rw-rw-rw-
File Type                       : MOV
File Type Extension             : mov
MIME Type                       : video/quicktime
Major Brand                     : Apple QuickTime (.MOV/QT)
Minor Version                   : 2016.4.21
Compatible Brands               : qt
Media Data Size                 : 415995868
Media Data Offset               : 36
Movie Header Version            : 0
Create Date                     : 0000:00:00 00:00:00
Modify Date                     : 0000:00:00 00:00:00
Time Scale                      : 1200
Duration                        : 0:03:00
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 0000:00:00 00:00:00
Track ID                        : 1
Track Duration                  : 0:03:00
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 1920
Image Height                    : 1080
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 0000:00:00 00:00:00
Media Time Scale                : 600
Media Duration                  : 0:03:00
Media Language Code             : zh-CN
Handler Class                   : Media Handler
Handler Type                    : Video Track
Handler Description             : VideoHandler
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Handler Class                   : Data Handler
Handler Type                    : URL
Handler Description             : DataHandler
Compressor ID                   : avc1
Vendor ID                       : FFmpeg
Source Image Width              : 1920
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 27.273
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 0000:00:00 00:00:00
Track ID                        : 2
Track Duration                  : 0:03:00
Track Layer                     : 0
Track Volume                    : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 0000:00:00 00:00:00
Media Time Scale                : 8000
Media Duration                  : 0:03:00
Media Language Code             : zh-CN
Handler Class                   : Media Handler
Handler Type                    : Audio Track
Handler Description             : SoundHandler
Balance                         : 0
Handler Class                   : Data Handler
Handler Type                    : URL
Handler Description             : DataHandler
Audio Format                    : sowt
Audio Vendor ID                 : FFmpeg
Audio Channels                  : 1
Audio Bits Per Sample           : 16
Audio Sample Rate               : 8000
Layout Flags                    : Mono
Audio Channels                  : 1
Image Size                      : 1920x1080
Megapixels                      : 2.1
Avg Bitrate                     : 18.5 Mbps
Rotation                        : 0





Phil Harvey

#1
I can see the GPS in this video, and should be able to extract it (hopefully).

What is the make/model of the device?

- Phil

Edit:  I was successful, and version 13.13 will be able to extract this.  But I still need the device make/model for my records.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

benjamin.alvial

Incredible.

With respect to the make/model, I need to ask, as I am not the owner of the video. I will get back to you here as soon as I get it, hopefully tomorrow.

Thanks again.

benjamin.alvial

Hi again. I am told the make/model is ToGuard CE33, which matches the name shown in the download link for the GXPlayer program.

When do you think the 13.13 version will be made available? Thank you immensely. :)

Phil Harvey

#4
Hi Benjamin,

Thanks.

It will probably be a week or two before 13.13 is released, but I can make a pre-release available if I know what system you are running (Windows?).

- Phil

Edit: In case you are running Windows, I've uploaded a 13.13 pre-release for you.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

benjamin.alvial

That would be nice. Yes, Windows.

Phil Harvey

A Windows 13.13 pre-release is available here.

(I just missed you when I edited my previous post to add this link.)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

benjamin.alvial

Yes, I saw the edit. I got it to work for what I needed and my boss is happy. Thanks again. :-)