ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: subins2000 on May 31, 2025, 06:36:06 AM

Title: Extracting GPS data from "ShenShu MetaData"
Post by: subins2000 on May 31, 2025, 06:36:06 AM
The dashcam I have is this: https://in.redtigercam.com/products/redtiger-f9-4k-dual-mini-dash-cam

I ran ffprobe on the video file and got the name "ShenShu MetaData" which led me to this forum post: https://exiftool.org/forum/index.php?topic=15881.0 (https://exiftool.org/forum/index.php?topic=15881.0)

[STREAM]
index=0
codec_name=hevc
codec_long_name=H.265 / HEVC (High Efficiency Video Coding)
profile=Main
codec_type=video
codec_tag_string=hvc1
codec_tag=0x31637668
width=3840
height=2160
coded_width=3840
coded_height=2160
closed_captions=0
film_grain=0
has_b_frames=0
sample_aspect_ratio=N/A
display_aspect_ratio=N/A
pix_fmt=yuv420p
level=153
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=unknown
refs=1
id=0x1
r_frame_rate=24/1
avg_frame_rate=27000000/900011
time_base=1/120000
start_pts=0
start_time=0.000000
duration_ts=7200088
duration=60.000733
bit_rate=22233274
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=1800
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=670
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
TAG:handler_name=HYT.RXT
TAG:vendor_id=[0][0][0][0]
TAG:encoder=HEVC Coding
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=16000
channels=1
channel_layout=mono
bits_per_sample=0
id=0x2
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/16000
start_pts=0
start_time=0.000000
duration_ts=945152
duration=59.072000
bit_rate=47118
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=923
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=5
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
ShenShu AUDIOame=
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[STREAM]
index=2
codec_name=bin_data
codec_long_name=binary data
profile=unknown
codec_type=data
codec_tag_string=gpmd
codec_tag=0x646d7067
id=0x3
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/120000
start_pts=0
start_time=0.000000
duration_ts=7195206
duration=59.960050
bit_rate=8389
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=60
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
TAG:handler_name=ShenShu MetaData
[/STREAM]

I then ran `exiftool -G1 -a -s -GPS* -ee3 input.MP4` on the file and got just this output:

Warning: [minor] LigoGPS trailer at offset 0x9ffe0ec (7956 bytes) - input.MP4

The video has GPS data I believe because the dashcam app is able to show the data as an overlay.

The video file is in this folder:
https://drive.google.com/drive/folders/1LnlSXzO_4xDpfgj97M6V8x7RZHQRLGD7?usp=sharing (https://drive.google.com/drive/folders/1LnlSXzO_4xDpfgj97M6V8x7RZHQRLGD7?usp=sharing)

[ExifTool]      ExifTool Version Number         : 13.30
[ExifTool]      Now                             : 2025:05:31 15:52:03+05:30
[ExifTool]      New GUID                        : 20250531-1552-0300-6D37-1B8E928610BE
[ExifTool]      File Sequence                   : 0
[ExifTool]      Warning                         : [minor] LigoGPS trailer at offset 0x9ffe0ec (7956 bytes)
[ExifTool]      Processing Time                 : 0.0321 s
[System]        File Name                       : input.MP4
[System]        Base Name                       : input
[System]        Directory                       : .
[System]        File Path                       : /home/deb/Downloads/input.MP4
[System]        File Size                       : 168 MB
[System]        File Modification Date/Time     : 2025:05:25 22:14:30+05:30
[System]        File Access Date/Time           : 2025:05:31 15:47:38+05:30
[System]        File Inode Change Date/Time     : 2025:05:25 22:17:05+05:30
[System]        File Permissions                : -rw-r--r--
[System]        File Attributes                 : Regular; (none)
[System]        File Device Number              : 66310
[System]        File Inode Number               : 279836
[System]        File Hard Links                 : 1
[System]        File User ID                    : deb
[System]        File Group ID                   : deb
[System]        File Device ID                  : 0.0
[System]        File Block Size                 : 4096
[System]        File Block Count                : 327688
[File]          File Type                       : MP4
[File]          File Type Extension             : mp4
[File]          MIME Type                       : video/mp4
[QuickTime]     Major Brand                     : MP4 v2 [ISO 14496-14]
[QuickTime]     Minor Version                   : 0.0.0
[QuickTime]     Compatible Brands               : mp42, isom
[QuickTime]     Media Data Size                 : 167652009
[QuickTime]     Media Data Offset               : 40
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 0000:00:00 00:00:00
[QuickTime]     Modify Date                     : 0000:00:00 00:00:00
[QuickTime]     Time Scale                      : 120000
[QuickTime]     Duration                        : 0:01:00
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 4
[QuickTime]     Thumbnail Image                 : (Binary data 21659 bytes, use -b option to extract)
[QuickTime]     Free                            : (Binary data 59555 bytes, use -b option to extract)
[Track1]        Track Header Version            : 0
[Track1]        Track Create Date               : 2025:05:25 16:45:35
[Track1]        Track Modify Date               : 2025:05:25 16:45:35
[Track1]        Track ID                        : 1
[Track1]        Track Duration                  : 0:01:00
[Track1]        Track Layer                     : 0
[Track1]        Track Volume                    : 100.00%
[Track1]        Matrix Structure                : 1 0 0 0 1 0 0 0 1
[Track1]        Image Width                     : 3840
[Track1]        Image Height                    : 2160
[Track1]        Unknown edts                    : (Binary data 28 bytes, use -b option to extract)
[Track1]        Media Header Version            : 0
[Track1]        Media Create Date               : 0000:00:00 00:00:00
[Track1]        Media Modify Date               : 0000:00:00 00:00:00
[Track1]        Media Time Scale                : 120000
[Track1]        Media Duration                  : 0:01:00
[Track1]        Handler Class                   : Media Handler
[Track1]        Handler Type                    : Video Track
[Track1]        Handler Description             : HYT.RXT
[Track1]        Graphics Mode                   : srcCopy
[Track1]        Op Color                        : 0 0 0
[Track1]        Compressor ID                   : hvc1
[Track1]        Source Image Width              : 3840
[Track1]        Source Image Height             : 2160
[Track1]        X Resolution                    : 72
[Track1]        Y Resolution                    : 72
[Track1]        Compressor Name                 : HEVC Coding
[Track1]        Bit Depth                       : 24
[Track1]        Unknown hvcC                    : (Binary data 670 bytes, use -b option to extract)
[Track1]        Video Frame Rate                : 30
[Track1]        Sample To Chunk                 : (Binary data 20 bytes, use -b option to extract)
[Track1]        Sample Sizes                    : (Binary data 7212 bytes, use -b option to extract)
[Track1]        Chunk Offset                    : (Binary data 7208 bytes, use -b option to extract)
[Track1]        Sync Sample Table               : (Binary data 248 bytes, use -b option to extract)
[Track2]        Track Header Version            : 0
[Track2]        Track Create Date               : 2025:05:25 16:45:35
[Track2]        Track Modify Date               : 2025:05:25 16:45:35
[Track2]        Track ID                        : 2
[Track2]        Track Duration                  : 0:00:59
[Track2]        Track Layer                     : 0
[Track2]        Track Volume                    : 100.00%
[Track2]        Matrix Structure                : 1 0 0 0 1 0 0 0 1
[Track2]        Unknown edts                    : (Binary data 28 bytes, use -b option to extract)
[Track2]        Media Header Version            : 0
[Track2]        Media Create Date               : 0000:00:00 00:00:00
[Track2]        Media Modify Date               : 0000:00:00 00:00:00
[Track2]        Media Time Scale                : 16000
[Track2]        Media Duration                  : 0:00:59
[Track2]        Handler Class                   : Media Handler
[Track2]        Handler Type                    : Audio Track
[Track2]        Handler Description             : ShenShu AUDIO
[Track2]        Balance                         : 0
[Track2]        Audio Format                    : mp4a
[Track2]        Audio Channels                  : 1
[Track2]        Audio Bits Per Sample           : 16
[Track2]        Audio Sample Rate               : 16000
[Track2]        Unknown esds                    : (Binary data 46 bytes, use -b option to extract)
[Track2]        Time To Sample Table            : (Binary data 16 bytes, use -b option to extract)
[Track2]        Sample To Chunk                 : (Binary data 20 bytes, use -b option to extract)
[Track2]        Sample Sizes                    : (Binary data 3704 bytes, use -b option to extract)
[Track2]        Chunk Offset                    : (Binary data 3700 bytes, use -b option to extract)
[Track3]        Track Header Version            : 0
[Track3]        Track Create Date               : 2025:05:25 16:45:35
[Track3]        Track Modify Date               : 2025:05:25 16:45:35
[Track3]        Track ID                        : 3
[Track3]        Track Duration                  : 0:01:00
[Track3]        Track Layer                     : 0
[Track3]        Track Volume                    : 100.00%
[Track3]        Matrix Structure                : 1 0 0 0 1 0 0 0 1
[Track3]        Unknown edts                    : (Binary data 28 bytes, use -b option to extract)
[Track3]        Media Header Version            : 0
[Track3]        Media Create Date               : 0000:00:00 00:00:00
[Track3]        Media Modify Date               : 0000:00:00 00:00:00
[Track3]        Media Time Scale                : 120000
[Track3]        Media Duration                  : 0:01:00
[Track3]        Handler Class                   : Data Handler
[Track3]        Handler Type                    : NRT Metadata
[Track3]        Handler Description             : ShenShu MetaData
[Track3]        Gen Media Version               : 0
[Track3]        Gen Flags                       : 0 0 0
[Track3]        Gen Graphics Mode               : srcCopy
[Track3]        Gen Op Color                    : 0 0 0
[Track3]        Gen Balance                     : 0
[Track3]        Meta Format                     : gpmd
[Track3]        Time To Sample Table            : (Binary data 472 bytes, use -b option to extract)
[Track3]        Sample To Chunk                 : (Binary data 20 bytes, use -b option to extract)
[Track3]        Sample Sizes                    : (Binary data 252 bytes, use -b option to extract)
[Track3]        Chunk Offset                    : (Binary data 248 bytes, use -b option to extract)
[Doc1:Track3]   Sample Time                     : 0 s
[Doc1:Track3]   Sample Duration                 : 0.98 s
[Doc2:Track3]   Sample Time                     : 0.98 s
[Doc2:Track3]   Sample Duration                 : 0.99 s
[Doc3:Track3]   Sample Time                     : 1.96 s
[Doc3:Track3]   Sample Duration                 : 1.00 s
[Doc4:Track3]   Sample Time                     : 2.97 s
[Doc4:Track3]   Sample Duration                 : 0.98 s
[Doc5:Track3]   Sample Time                     : 3.95 s
[Doc5:Track3]   Sample Duration                 : 1.04 s
[Doc6:Track3]   Sample Time                     : 4.99 s
[Doc6:Track3]   Sample Duration                 : 0.99 s
[Doc7:Track3]   Sample Time                     : 5.98 s
[Doc7:Track3]   Sample Duration                 : 1.02 s
[Doc8:Track3]   Sample Time                     : 7.00 s
[Doc8:Track3]   Sample Duration                 : 1.00 s
[Doc9:Track3]   Sample Time                     : 7.99 s
[Doc9:Track3]   Sample Duration                 : 1.04 s
[Doc10:Track3]  Sample Time                     : 9.03 s
[Doc10:Track3]  Sample Duration                 : 1.00 s
[Doc11:Track3]  Sample Time                     : 10.03 s
[Doc11:Track3]  Sample Duration                 : 1.02 s
[Doc12:Track3]  Sample Time                     : 11.05 s
[Doc12:Track3]  Sample Duration                 : 1.01 s
[Doc13:Track3]  Sample Time                     : 12.06 s
[Doc13:Track3]  Sample Duration                 : 0.98 s
[Doc14:Track3]  Sample Time                     : 13.04 s
[Doc14:Track3]  Sample Duration                 : 0.95 s
[Doc15:Track3]  Sample Time                     : 13.99 s
[Doc15:Track3]  Sample Duration                 : 1.00 s
[Doc16:Track3]  Sample Time                     : 14.99 s
[Doc16:Track3]  Sample Duration                 : 0.98 s
[Doc17:Track3]  Sample Time                     : 15.98 s
[Doc17:Track3]  Sample Duration                 : 1.04 s
[Doc18:Track3]  Sample Time                     : 17.01 s
[Doc18:Track3]  Sample Duration                 : 0.96 s
[Doc19:Track3]  Sample Time                     : 17.97 s
[Doc19:Track3]  Sample Duration                 : 1.00 s
[Doc20:Track3]  Sample Time                     : 18.97 s
[Doc20:Track3]  Sample Duration                 : 1.05 s
[Doc21:Track3]  Sample Time                     : 20.02 s
[Doc21:Track3]  Sample Duration                 : 1.03 s
[Doc22:Track3]  Sample Time                     : 21.05 s
[Doc22:Track3]  Sample Duration                 : 1.00 s
[Doc23:Track3]  Sample Time                     : 22.05 s
[Doc23:Track3]  Sample Duration                 : 0.94 s
[Doc24:Track3]  Sample Time                     : 22.99 s
[Doc24:Track3]  Sample Duration                 : 1.01 s
[Doc25:Track3]  Sample Time                     : 24.00 s
[Doc25:Track3]  Sample Duration                 : 0.99 s
[Doc26:Track3]  Sample Time                     : 24.99 s
[Doc26:Track3]  Sample Duration                 : 0.98 s
[Doc27:Track3]  Sample Time                     : 25.97 s
[Doc27:Track3]  Sample Duration                 : 1.00 s
[Doc28:Track3]  Sample Time                     : 26.96 s
[Doc28:Track3]  Sample Duration                 : 1.03 s
[Doc29:Track3]  Sample Time                     : 27.99 s
[Doc29:Track3]  Sample Duration                 : 1.01 s
[Doc30:Track3]  Sample Time                     : 29.01 s
[Doc30:Track3]  Sample Duration                 : 0.98 s
[Doc31:Track3]  Sample Time                     : 29.99 s
[Doc31:Track3]  Sample Duration                 : 1.03 s
[Doc32:Track3]  Sample Time                     : 0:00:31
[Doc32:Track3]  Sample Duration                 : 0.95 s
[Doc33:Track3]  Sample Time                     : 0:00:32
[Doc33:Track3]  Sample Duration                 : 0.99 s
[Doc34:Track3]  Sample Time                     : 0:00:33
[Doc34:Track3]  Sample Duration                 : 1.05 s
[Doc35:Track3]  Sample Time                     : 0:00:34
[Doc35:Track3]  Sample Duration                 : 0.98 s
[Doc36:Track3]  Sample Time                     : 0:00:35
[Doc36:Track3]  Sample Duration                 : 0.99 s
[Doc37:Track3]  Sample Time                     : 0:00:36
[Doc37:Track3]  Sample Duration                 : 1.01 s
[Doc38:Track3]  Sample Time                     : 0:00:37
[Doc38:Track3]  Sample Duration                 : 1.02 s
[Doc39:Track3]  Sample Time                     : 0:00:38
[Doc39:Track3]  Sample Duration                 : 1.04 s
[Doc40:Track3]  Sample Time                     : 0:00:39
[Doc40:Track3]  Sample Duration                 : 0.94 s
[Doc41:Track3]  Sample Time                     : 0:00:40
[Doc41:Track3]  Sample Duration                 : 1.00 s
[Doc42:Track3]  Sample Time                     : 0:00:41
[Doc42:Track3]  Sample Duration                 : 1.01 s
[Doc43:Track3]  Sample Time                     : 0:00:42
[Doc43:Track3]  Sample Duration                 : 0.99 s
[Doc44:Track3]  Sample Time                     : 0:00:43
[Doc44:Track3]  Sample Duration                 : 0.96 s
[Doc45:Track3]  Sample Time                     : 0:00:44
[Doc45:Track3]  Sample Duration                 : 1.03 s
[Doc46:Track3]  Sample Time                     : 0:00:45
[Doc46:Track3]  Sample Duration                 : 0.99 s
[Doc47:Track3]  Sample Time                     : 0:00:46
[Doc47:Track3]  Sample Duration                 : 0.99 s
[Doc48:Track3]  Sample Time                     : 0:00:47
[Doc48:Track3]  Sample Duration                 : 1.03 s
[Doc49:Track3]  Sample Time                     : 0:00:48
[Doc49:Track3]  Sample Duration                 : 0.99 s
[Doc50:Track3]  Sample Time                     : 0:00:49
[Doc50:Track3]  Sample Duration                 : 1.01 s
[Doc51:Track3]  Sample Time                     : 0:00:50
[Doc51:Track3]  Sample Duration                 : 0.99 s
[Doc52:Track3]  Sample Time                     : 0:00:51
[Doc52:Track3]  Sample Duration                 : 1.00 s
[Doc53:Track3]  Sample Time                     : 0:00:52
[Doc53:Track3]  Sample Duration                 : 1.02 s
[Doc54:Track3]  Sample Time                     : 0:00:53
[Doc54:Track3]  Sample Duration                 : 0.99 s
[Doc55:Track3]  Sample Time                     : 0:00:54
[Doc55:Track3]  Sample Duration                 : 0.99 s
[Doc56:Track3]  Sample Time                     : 0:00:55
[Doc56:Track3]  Sample Duration                 : 0.98 s
[Doc57:Track3]  Sample Time                     : 0:00:56
[Doc57:Track3]  Sample Duration                 : 1.04 s
[Doc58:Track3]  Sample Time                     : 0:00:57
[Doc58:Track3]  Sample Duration                 : 0.95 s
[Doc59:Track3]  Sample Time                     : 0:00:58
[Doc59:Track3]  Sample Duration                 : 1.00 s
[Doc60:Track3]  Sample Time                     : 0:00:59
[Doc60:Track3]  Sample Duration                 : 1.00 s
[Composite]     Image Size                      : 3840x2160
[Composite]     Megapixels                      : 8.3
[Composite]     Avg Bitrate                     : 22.4 Mbps
[Composite]     Rotation                        : 0

My hunch is that this "ShenShu" is the same as https://exiftool.org/forum/index.php?topic=15881.0 but the format has changed? Anyone know what's happening here? Thanks in advance!
Title: Re: Extracting GPS data from "ShenShu MetaData"
Post by: Phil Harvey on May 31, 2025, 08:04:18 PM
It will be a couple of days before I'm back on a fast internet connection and able to download the file, but I'll take a look at it then.

- Phil
Title: Re: Extracting GPS data from "ShenShu MetaData"
Post by: Phil Harvey on June 03, 2025, 09:48:06 AM
You're right.  The format is very similar to the Wolfbox, but the header has changed and the scaling factors are different.  It also contains a duplicate set of GPS in the form of a non-encrypted LigoGPS trailer.

ExifTool 13.31 will read both of these.  You may read them separately by specifying either the Track3 or Ligo group.

- Phil
Title: Re: Extracting GPS data from "ShenShu MetaData"
Post by: subins2000 on June 10, 2025, 02:02:18 AM
QuoteExifTool 13.31 will read both of these.  You may read them separately by specifying either the Track3 or Ligo group.

Thank you so much!