can't get the coordinates from TS and Mp4 file. results are given

Started by Tareq, September 22, 2024, 05:54:33 AM

Previous topic - Next topic

Tareq

C:\Users\Asus>"C:\Users\Asus\Downloads\exiftool-12.96_64\exiftool-12.96_64\exiftool.exe" -ee "E:\VIDEO\VIC-CH1-1724752122_0006.ts"
ExifTool Version Number         : 12.96
File Name                       : VIC-CH1-1724752122_0006.ts
Directory                       : E:/VIDEO
File Size                       : 17 MB
File Modification Date/Time     : 2098:01:17 09:39:36+06:00
File Access Date/Time           : 2024:09:22 15:49:43+06:00
File Creation Date/Time         : 2024:09:15 14:17:48+06:00
File Permissions                : -rw-rw-rw-
File Type                       : M2T
File Type Extension             : m2t
MIME Type                       : video/mpeg
Duration                        : 0:00:49

C:\Users\Asus>"C:\Users\Asus\Downloads\exiftool-12.96_64\exiftool-12.96_64\exiftool.exe" -ee "C:\Users\Asus\Downloads\VIC-CH1-1724750534_0011.mp4"
ExifTool Version Number         : 12.96
File Name                       : VIC-CH1-1724750534_0011.mp4
Directory                       : C:/Users/Asus/Downloads
File Size                       : 19 MB
Zone Identifier                 : Exists
File Modification Date/Time     : 2024:09:22 15:00:23+06:00
File Access Date/Time           : 2024:09:22 15:40:55+06:00
File Creation Date/Time         : 2024:09:22 14:58:30+06:00
File Permissions                : -rw-rw-rw-
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4 Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, avc1, mp41
Movie Header Version            : 0
Create Date                     : 0000:00:00 00:00:00
Modify Date                     : 0000:00:00 00:00:00
Time Scale                      : 1000
Duration                        : 0:01:56
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                   : 2
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:01:56
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 1280
Image Height                    : 720
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                : 12800
Media Duration                  : 0:01:56
Media Language Code             : und
Handler Type                    : Video Track
Handler Description             : VideoHandler
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 1280
Source Image Height             : 720
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : Lavc60.3.100 libx264
Bit Depth                       : 24
Color Profiles                  : nclx
Color Primaries                 : BT.709
Transfer Characteristics        : BT.709
Matrix Coefficients             : BT.709
Video Full Range Flag           : 0
Pixel Aspect Ratio              : 1:1
Buffer Size                     : 0
Max Bitrate                     : 1293516
Average Bitrate                 : 1293516
Video Frame Rate                : 50
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Encoder                         : Lavf60.3.100
Media Data Size                 : 18720411
Media Data Offset               : 64768
Image Size                      : 1280x720
Megapixels                      : 0.922
Avg Bitrate                     : 1.29 Mbps
Rotation                        : 0

StarGeek

You can't GPS coordinates from a file that doesn't have them. Your output show that there are no GPS coordinates in the file.

If the files have been processed with a program such as Handbrake/ffmpeg or have been downloaded from social media such as FB/Instagram, then they have been stripped of all metadata. The first two do not save the metadata, and the latter strips away metadata for privacy.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Tareq

I am giving you one of my video to check. As far as i see there is GPS coordinates in video. I am new in these field. So i actually dont know Gps coordinates  should be in which format? Very much appreciated if i get any assistance.

Phil Harvey

The program with PID 0x0101 in this file contains private data that ExifTool is not decoding.  I can see that this does contain GPS data because it contains the string "WGS84", however the encoding for the coordinates is not obvious and it will take some work to decode if in fact I am able to do so.

I'll post back here when I know more (will be at least a few days).

A sample of the MP4 would be useful too because it is likely they are stored differently in this file format.

- 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 ($).

Tareq

Thanks for the reply and Very much appreciated if you get any solution. The system is giving the file as TS extension. The previous mp4 file i shared which was just converted online to see .

Phil Harvey

OK.  I am making some progress, but I still don't understand a lot.  Below is a table of all the numbers/strings I can extract so far.  The first number is very close to the timestamp imprinted in the video, stored as the number of milliseconds since Jan 1, 1970.  I compare these date/times vs. the imprinted time for the start and end of the video:

2024:08:27 07:49:24.840000 vs. 2024/08/27 09:22:39Z
2024:08:27 07:49:37.645000 vs. 2024/08/27 09:22:45Z

The video is 6 seconds long, but the decoded times differ by 13 seconds.  It can't just be a coincidence that the date is exactly correct when decoding it this way.  I'm puzzled.

Anyway, below is the complete table of numbers/strings.  I was hoping that lat/lon would be in there somewhere, but I can't put my finger on them yet.  It would be helpful if you can help shed some light on any of these values.  Basically the only one I completely understand is the WGS84 string.

BTW, what make/model of device wrote this video?

- Phil

1724744964840000 3004 4768 43892 54 TV-Z WGS84 549217796 1091171960 13639 2645302699 3987762610 1 1002 754 0 0 8461
1724744965041000 3032 4763 43912 54 TV-Z WGS84 549217457 1091171515 13639 2643271052 3987893684 1 1002 754 0 0 11546
1724744965241000 3063 4748 43937 54 TV-Z WGS84 549217130 1091171084 13639 2641436016 3987762610 1 1002 754 0 0 26405
1724744965443000 3063 4753 43952 54 TV-Z WGS84 549216783 1091170618 13639 2640256350 3987697073 1 1002 754 0 0 15159
1724744965652000 3051 4714 43969 54 TV-Z WGS84 549216437 1091170152 13639 2638945610 3987500462 1 1002 754 0 0 10853
1724744965852000 3051 4704 43986 54 TV-Z WGS84 549216090 1091169684 13639 2637372722 3987697073 1 1002 754 0 0 7023
1724744966052000 3067 4645 44006 54 TV-Z WGS84 549215747 1091169217 13639 2635799834 3987631536 1 1002 754 0 0 60281
1724744966263000 3095 4625 44029 54 TV-Z WGS84 549215435 1091168787 13639 2633506039 3987697073 1 1002 754 0 0 7085
1724744966474000 3106 4556 44054 54 TV-Z WGS84 549215114 1091168350 13639 2632326373 3987434925 1 1002 754 0 0 5091
1724744966684000 3106 4517 44069 54 TV-Z WGS84 549214799 1091167913 13639 2631015633 3986976166 1 1002 754 0 0 10516
1724744966894000 3114 4399 44088 54 TV-Z WGS84 549214485 1091167475 13639 2629573819 3986255259 1 1002 754 0 0 61253
1724744967103000 3150 4256 44105 54 TV-Z WGS84 549214170 1091167036 13639 2628000931 3985599889 1 1002 754 0 0 51826
1724744967624000 3197 3829 44174 54 TV-Z WGS84 549213218 1091165694 13639 2624789618 3984027001 1 1002 754 0 0 15194
1724744968043000 3118 3765 44211 54 TV-Z WGS84 549212577 1091164774 13639 2621316157 3984158075 1 1002 754 0 0 4280
1724744968253000 3098 3785 44234 54 TV-Z WGS84 549212275 1091164339 13639 2619284510 3984878982 1 1002 754 0 0 29162
1724744968453000 3102 3819 44263 54 TV-Z WGS84 549211963 1091163883 13639 2616990715 3985599889 1 1002 754 0 0 51186
1724744968663000 3114 3878 44291 54 TV-Z WGS84 549211652 1091163425 13639 2614696920 3986058648 1 1002 754 0 0 17702
1724744968874000 3142 3927 44319 54 TV-Z WGS84 549211341 1091162968 13639 2612599736 3986255259 1 1002 754 0 0 44891
1724744969084000 3142 3976 44340 54 TV-Z WGS84 549211033 1091162509 13639 2611092385 3986451870 1 1075 809 0 0 41358
1724744969294000 3150 4001 44357 54 TV-Z WGS84 549210747 1091162078 13639 2609257349 3986648481 1 1154 869 0 0 45759
1724744969505000 3161 4006 44380 54 TV-Z WGS84 549210451 1091161628 13639 2607356776 3986910629 1 1239 932 0 0 36085
1724744970025000 3165 3942 44448 54 TV-Z WGS84 549209580 1091160273 13638 2603359019 3987369388 1 1394 1049 0 0 52701
1724744970234000 3142 3898 44463 54 TV-Z WGS84 549209300 1091159834 13638 2602113816 3987303851 1 1496 1126 0 0 49419
1724744970435000 3106 3878 44478 54 TV-Z WGS84 549208987 1091159357 13638 2600213243 3987631536 1 1684 1267 0 0 50712
1724744970855000 3150 3863 44519 54 TV-Z WGS84 549208367 1091158401 13637 2596281023 3987697073 1 1986 1494 0 0 9341
1724744971064000 3209 3883 44544 54 TV-Z WGS84 549208056 1091157922 13637 2593659543 3987631536 1 2132 1604 0 0 36780
1724744971484000 3287 3986 44594 54 TV-Z WGS84 549207476 1091157006 13637 2589530712 3987762610 1 2456 1848 0 0 786
1724744971694000 3287 4079 44610 54 TV-Z WGS84 549207182 1091156537 13637 2588351046 3988483517 1 2636 1984 0 0 63044
1724744971904000 3252 4178 44625 54 TV-Z WGS84 549206893 1091156067 13637 2586909232 3989466572 1 2829 2129 0 0 58745
1724744972424000 3252 4502 44696 54 TV-Z WGS84 549206050 1091154701 13637 2582911475 3991498219 1 3259 2453 0 0 52577
1724744972844000 3311 4669 44752 54 TV-Z WGS84 549205491 1091153790 13637 2575899016 3993398792 1 4030 3035 0 0 31946
1724744973054000 3315 4738 44770 54 TV-Z WGS84 549205215 1091153335 13637 2574522739 3993857551 1 4326 3258 0 0 15102
1724744973265000 3307 4812 44786 54 TV-Z WGS84 549204954 1091152900 13636 2573080925 3994250773 1 4643 3498 0 0 7223
1724744973475000 3311 4836 44806 54 TV-Z WGS84 549204689 1091152438 13636 2571114815 3994512921 1 4867 3667 0 0 7531
1724744973885000 3338 4773 44858 54 TV-Z WGS84 549204160 1091151512 13635 2566658299 3994840606 1 4867 3667 0 0 38310
1724744974094000 3358 4669 44888 54 TV-Z WGS84 549203899 1091151048 13635 2564561115 3994578458 1 4867 3667 0 0 44499
1724744974305000 3354 4566 44914 54 TV-Z WGS84 549203651 1091150601 13634 2562660542 3994316310 1 4867 3667 0 0 40456
1724744974825000 3287 4414 44972 54 TV-Z WGS84 549202865 1091149172 13634 2560628895 3994185236 1 4867 3667 0 0 23534
1724744975034000 3299 4384 44994 54 TV-Z WGS84 549202606 1091148694 13634 2556958823 3994185236 1 4867 3667 0 0 31259
1724744975244000 3330 4345 45025 54 TV-Z WGS84 549202360 1091148240 13634 2554402880 3994119699 1 4867 3667 0 0 55372
1724744975665000 3417 4301 45090 54 TV-Z WGS84 549201837 1091147271 13634 2549225457 3994054162 1 4867 3667 0 0 24243
1724744975874000 3444 4286 45115 54 TV-Z WGS84 549201575 1091146787 13634 2547128273 3994185236 1 4867 3667 0 0 51424
1724744976294000 3452 4325 45154 54 TV-Z WGS84 549201083 1091145852 13634 2544113571 3994316310 1 4867 3667 0 0 55875
1724744976505000 3460 4350 45175 54 TV-Z WGS84 549200847 1091145390 13634 2542212998 3994512921 1 4867 3667 0 0 23928
1724744976715000 3448 4399 45202 54 TV-Z WGS84 549200616 1091144928 13634 2539984740 3995168291 1 4867 3667 0 0 2986
1724744977225000 3405 4502 45307 54 TV-Z WGS84 549199939 1091143549 13634 2534872854 3997068864 1 4867 3667 0 0 32364
1724744977645000 3370 4542 45364 54 TV-Z WGS84 549199456 1091142562 13634 2528908987 3999166048 1 4867 3667 0 0 11981
...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 ($).

Phil Harvey

In case it helps, here are the plots of these values:

aa.png bb.png
cc.png dd.png
ee.png ff.png
...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 ($).

Phil Harvey

gg.png hh.png
ii.png jj.png
kk.png
...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 ($).

Tareq

Sorry for my late reply. The terminal i got this video was from Viasat Enerlinks III.The data you got i am not sure also.
Update : from chatgpt i found this info. Can you please check :

Timestamps (e.g., 1724744964840000):

These are likely epoch timestamps (in microseconds or milliseconds), indicating the exact time the data was recorded during the UAV flight or sensor operation.
Positional Data (e.g., 549217796 1091171960):

These values could represent latitude and longitude coordinates, using the WGS84 standard (a common geospatial reference system used for GPS data). The numbers seem to be large, possibly encoded in a format that needs to be divided to get decimal degree coordinates.
Altitude and Ground Speed (e.g., 13639):

This value likely indicates altitude (in meters or feet), while other values may reflect ground speed or relative height.
Flight Parameters (e.g., 3032 4763 43912):

These could correspond to different flight parameters like yaw, pitch, and roll, representing the UAV's orientation in space.
Alternatively, these might include other aspects such as airspeed or heading direction.
Sensor/Camera Data (e.g., TV-Z, 54):

TV-Z could represent the type of video sensor or camera mode being used (e.g., television zoom or EO/IR settings).
The number (e.g., 54) may represent a zoom level or another sensor setting like field of view.
WGS84:

Indicates the geodetic reference system used for the GPS data (i.e., World Geodetic System 1984).
Data Integrity or System Status (e.g., 1, 1002, 754, 0, 0):

These values could represent system status flags, possibly denoting the state of different UAV systems (e.g., whether certain sensors or components are active or in standby).
Checksum or Miscellaneous Fields (e.g., 8461, 60281):

These could be checksum values, frame numbers, or other system counters to ensure data integrity or sequential order in processing.

Phil Harvey

Yes.  That's about as far as I got as well.  Nothing concrete that I could extract with ExifTool.

- 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 ($).

Tareq

Can you suggest what to do to extract this kind of data? I have a lots of video like this and I am stressed not to find any solution on this.

Phil Harvey

If I had more information and better samples I may be more successful in decoding this.

Can you send a sample where the aircraft changes direction and altitude?  (you can send it to philharvey66 at gmail.com)

Also, do you have any documentation or a description of the on-screen readouts shown in the video?

- 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 ($).

Tareq

Can you allow me some time.I can give you as soon as i get it.

Phil Harvey

...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 ($).