Hi everyone. I'm quite new, so maybe I am doing something wrong, but, I am trying to extract GPS metadata from an MP4 file I retrieved from my Samsung Galaxy S21 Ultra, but it doesn't seem to contain any such data. Does this info not exist in the file, or am I doing something wrong/are there different commands I could use to reach this data?
C:\Users\****>"C:\Users\*****\Desktop\ExifTool\exiftool.exe" -ee "C:\Users\****\Desktop\20211226_103858.mp4"
ExifTool Version Number : 12.43
File Name : 20211226_103858.mp4
Directory : C:/Users/*****/Desktop
File Size : 58 MB
File Modification Date/Time : 2021:12:26 10:39:22+02:00
File Access Date/Time : 2022:07:21 12:13:28+03:00
File Creation Date/Time : 2022:07:21 12:13:21+03:00
File Permissions : -rw-rw-rw-
File Type : MP4
File Type Extension : mp4
MIME Type : video/mp4
Major Brand : MP4 v2 [ISO 14496-14]
Minor Version : 0.0.0
Compatible Brands : isom, mp42
Media Data Size : 57640835
Media Data Offset : 40
Movie Header Version : 0
Create Date : 2021:12:26 08:39:22
Modify Date : 2021:12:26 08:39:22
Time Scale : 10000
Duration : 23.06 s
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
Play Mode : SEQ_PLAY
Handler Type : Metadata Tags
Android Version : 12
Android Capture Fps : 60
Track Header Version : 0
Track Create Date : 2021:12:26 08:39:22
Track Modify Date : 2021:12:26 08:39:22
Track ID : 1
Track Duration : 23.06 s
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 : 2021:12:26 08:39:22
Media Modify Date : 2021:12:26 08:39:22
Media Time Scale : 90000
Media Duration : 23.06 s
Handler Type : Video Track
Handler Description : VideoHandle
Graphics Mode : srcCopy
Op Color : 0 0 0
Compressor ID : avc1
Source Image Width : 1920
Source Image Height : 1080
X Resolution : 72
Y Resolution : 72
Bit Depth : 24
Color Representation : nclx 1 1 1
Video Frame Rate : 30.006
Track Header Version : 0
Track Create Date : 2021:12:26 08:39:22
Track Modify Date : 2021:12:26 08:39:22
Track ID : 2
Track Duration : 23.04 s
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 : 2021:12:26 08:39:22
Media Modify Date : 2021:12:26 08:39:22
Media Time Scale : 48000
Media Duration : 23.04 s
Handler Type : Audio Track
Handler Description : SoundHandle
Balance : 0
Audio Format : mp4a
Audio Channels : 2
Audio Bits Per Sample : 16
Audio Sample Rate : 48000
Image Size : 1920x1080
Megapixels : 2.1
Avg Bitrate : 20 Mbps
Rotation : 0
It looks to me as if there is no GPS data in this file.
- Phil
Quote from: Phil Harvey on July 21, 2022, 06:19:44 AM
It looks to me as if there is no GPS data in this file.
- Phil
Hi Phil, thank you for the quick response! I thought Android phones would have geotracking enabled by default, but it seems I was wrong. I enabled location services on my phone for the camera, and now it seems to give me a very general geographic location (the MCC data is the new addition in this test), but not proper coordinates. Is there any way to retrieve further information from this?
C:\Users\***>"C:\Users\***\Desktop\ExifTool\exiftool.exe" -ee "C:\Users\***\Desktop\20220721_131701.jpg"
ExifTool Version Number : 12.43
File Name : 20220721_131701.jpg
Directory : C:/Users/***/Desktop
File Size : 3.1 MB
File Modification Date/Time : 2022:07:21 13:17:01+03:00
File Access Date/Time : 2022:07:21 13:19:21+03:00
File Creation Date/Time : 2022:07:21 13:18:50+03:00
File Permissions : -rw-rw-rw-
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
Orientation : Rotate 90 CW
Y Cb Cr Positioning : Centered
X Resolution : 72
Y Resolution : 72
Resolution Unit : inches
Make : samsung
Camera Model Name : SM-G998B
Software : G998BXXU5CVF2
Modify Date : 2022:07:21 13:17:01
Exposure Time : 1/100
F Number : 1.8
Exposure Program : Program AE
ISO : 250
Exif Version : 0220
Date/Time Original : 2022:07:21 13:17:01
Create Date : 2022:07:21 13:17:01
Offset Time : +03:00
Offset Time Original : +03:00
Offset Time Digitized : +03:00
Shutter Speed Value : 1/100
Aperture Value : 1.8
Brightness Value : 2.13
Exposure Compensation : 0
Max Aperture Value : 1.8
Metering Mode : Center-weighted average
Flash : No Flash
Flashpix Version : 0100
Components Configuration : Y, Cb, Cr, -
Focal Length : 6.7 mm
Sub Sec Time : 0138
Sub Sec Time Original : 0138
Sub Sec Time Digitized : 0138
User Comment :
Color Space : sRGB
Exif Image Width : 4000
Exif Image Height : 3000
Scene Type : Unknown (.)
Custom Rendered : Normal
Exposure Mode : Auto
White Balance : Auto
Digital Zoom Ratio : undef
Focal Length In 35mm Format : 24 mm
Scene Capture Type : Standard
Contrast : Normal
Saturation : Normal
Sharpness : Normal
Image Unique ID : XA8XLNF00AM
Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100
Image Width : 512
Image Height : 384
Compression : JPEG (old-style)
Orientation : Rotate 90 CW
Thumbnail Offset : 968
Thumbnail Length : 21073
Image Width : 4000
Image Height : 3000
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
Time Stamp : 2022:07:21 13:17:01+03:00
MCC Data : Israel / Palestinian Territory
Aperture : 1.8
Image Size : 4000x3000
Megapixels : 12.0
Scale Factor To 35 mm Equivalent: 3.6
Shutter Speed : 1/100
Create Date : 2022:07:21 13:17:01.0138+03:00
Date/Time Original : 2022:07:21 13:17:01.0138+03:00
Modify Date : 2022:07:21 13:17:01.0138+03:00
Thumbnail Image : (Binary data 21073 bytes, use -b option to extract)
Circle Of Confusion : 0.008 mm
Field Of View : 73.7 deg
Focal Length : 6.7 mm (35 mm equivalent: 24.0 mm)
Hyperfocal Distance : 2.97 m
Light Value : 7.0
You were originally talking about videos, but now you show a JPG.
JPG files are much more straightforward. ExifTool should be extracting everything from these, and you don't need the -ee option.
- Phil