ExifTool Forum

ExifTool => Newbies => Topic started by: robot797 on March 17, 2021, 11:49:43 AM

Title: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 17, 2021, 11:49:43 AM
Hello
after reading and trying everything from this topic
https://exiftool.org/forum/index.php?topic=10667.0
I still dont have a gpx file
who can help me
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: StarGeek on March 17, 2021, 12:00:30 PM
What is the output of this command, copy/paste it here
exiftool -g1 -a -s -ee -gps* file.mp4
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 17, 2021, 12:09:29 PM
M:\VIDEO>exiftool -g1 -a -s -ee -gps* TEST.MOV
---- QuickTime ----
GPSLog                          : (Binary data 210120 bytes, use -b option to extract)

does that help?
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: StarGeek on March 17, 2021, 01:29:34 PM
I should have also asked what version of exiftool are you using?
exiftool -ver

The version of exiftool you're using can't extract the gps track from that file.  If you're using an older version of exiftool (current version is 12.22), you might try updating to see if the data can be extracted with a newer version.

If that doesn't work, could you make a short sample video?
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 17, 2021, 03:36:39 PM
sorry for my late reply
this is the reaction
M:\VIDEO>exiftool -ver
12.21

I will try and make a short video tomorrow
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: StarGeek on March 17, 2021, 04:19:32 PM
I believe it's best if there's some movement, like to the end of the block.  That way there's variation in the GPS coordinates.
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 17, 2021, 04:29:49 PM
will do
how long of a video do you want?
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: StarGeek on March 17, 2021, 04:53:09 PM
Doesn't need to be too long.  Just some movement that will register different coordinates.  If it's small enough you can attach it to a post here, otherwise you could give a dropbox or google drive link.

Understand, I can't do anything about this.  I'm just trying to make it easier for Phil to take a look at it when he gets the chance.  He may ask you to do something completely different.

If you have privacy concerns, you could wait to see if Phil responds and he'll let you know what to do.
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 17, 2021, 04:57:44 PM
I dont have privacy concerns
so I will make a small video when I am comming back from work
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 18, 2021, 10:09:43 AM
https://www.dropbox.com/s/k0p8nlhsof81ozd/20210318_095308.MOV?dl=0

here ya go a video

Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: StarGeek on March 18, 2021, 10:42:10 AM
I took a look at it and here's what I saw.

You can extract the data with
exiftool -b -gpslog >file.txt 20210318_095308.MOV

It's mostly text, with an gps location every second.  Each line separated by an FF character (0x0C).

Example of what that log contained
210318073213[1][N][52200970][E][006362321][+00152][100][00140][C000000]+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000
210318073214[1][N][52200861][E][006362483][+00148][098][00138][C000000]+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000
210318073215[1][N][52200751][E][006362646][+00142][098][00138][C000018]+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000
210318073216[1][N][52200643][E][006362811][+00139][098][00137][C000018]+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000


So it looks like it's latitude and longitude.  Though I'm not sure how the location is encoded.  Or if one of those numbers is the time stamp.
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 18, 2021, 11:21:20 AM
mmmmmmm that looks readable
now how would I be able to import it in dashware?
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: Phil Harvey on March 18, 2021, 11:54:57 AM
I haven't yet seen this format of GPSLog.  I'll look into adding support for extracting the GPS from this.

- Phil
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 18, 2021, 11:56:57 AM
okey I have did some compairing

210318073213[1][N][52200970][E][006362321][+00152][100][00140][C000000]+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000

210318073213
this is date and time
21=year  03=month  18=day  07=hour  32=min  13=sec

[1][N][52200970][E][006362321]
unknown

[+00152]
this is the asl according to the denver viewer

[100]
current speed km/h

[00140][C000000]+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000
unknown
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: Phil Harvey on March 18, 2021, 01:12:05 PM
Quote from: robot797 on March 18, 2021, 11:56:57 AM
[1][N][52200970][E][006362321]

1 is probably the GPS status.  The rest is latitude/longitude.

Quote[+00152]
this is the asl according to the denver viewer

What is "asl"?  Edit: Ah. Altitude. Right

Quote[00140][C000000]+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000+000
unknown

This will the be accelerometer readings (6 sets of X-Y-Z readings)

- Phil
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 18, 2021, 01:23:48 PM
it could be altitude but it it would be incorrect data
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: Phil Harvey on March 18, 2021, 05:02:17 PM
As it turns out, I've already decoded this format with a custom config file (read here (https://exiftool.org/forum/index.php?topic=10667.msg56591#msg56591)).

But it would be better if ExifTool had built-in support for this, so I will add this feature in ExifTool 12.23.

- Phil
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 18, 2021, 05:09:24 PM
yea as I said on the 1st post I tried that
and it only gave me a empty result
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: StarGeek on March 18, 2021, 07:06:33 PM
Ah, yes, that would be my fault.  I didn't actually check out the link, assuming it was a link to the main extract gps from video thread.

I edited and tested the config file against your file and it's definitely reading the tag and appears to be parsing the data, but the rest of what's happening is a bit beyond my ability to figure out what might be going wrong.
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 18, 2021, 07:18:39 PM
now I am wondering what I am doeing wrong

when I am using this
M:\VIDEO>exiftool -config gpslog.config -p gpx.fmt -ee TEST.mov

I get this

gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
gpx.fmt
...
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: StarGeek on March 18, 2021, 09:05:10 PM
You're not doing anything wrong.  For some reason the config file isn't setting the GPS tags.  I get the same results.
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: Phil Harvey on March 19, 2021, 07:35:04 AM
Hmmm.  This works with version 12.02, but not 12.03 or later.  I'll have to look into this.

- Phil

Edit:  OK.  Attached is a config file that works with ExifTool 12.03 to 12.22.  This broke when I made an internal change to the format of the Composite tag ID's (the config file relied on internal details of how this was implemented).  ExifTool 12.23 and later will have the ability to decode this without a config file.

Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 19, 2021, 10:01:31 AM
I have bad news
I tried version 12.23 12.22 and 12.21
they all give a blank file
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: Phil Harvey on March 19, 2021, 10:10:32 AM
Here is what I get with version 12.22:

> exiftool -ver
12.22
> exiftool -config ~/Desktop/gpslog.config -p fmt_files/gpx.fmt -ee ../testpics/gps_video/20210318_095308.MOV > out.gpx


And out.gpx is attached.

- Phil
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 19, 2021, 10:26:37 AM
still a blank result

fmt_files/gpx.fmt
fmt_files/gpx.fmt
fmt_files/gpx.fmt
fmt_files/gpx.fmt
fmt_files/gpx.fmt
fmt_files/gpx.fmt
fmt_files/gpx.fmt
fmt_files/gpx.fmt
fmt_files/gpx.fmt
...
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: Phil Harvey on March 19, 2021, 11:00:38 AM
You will get this if the file "fmt_files/gpx.fmt" doesn't exist.

Instead of "fmt_files/gpx.fmt" in your command, type the actual path to the gpx.fmt file on your system.  If you haven't downloaded it yet, you can get it from here (https://raw.githubusercontent.com/exiftool/exiftool/master/fmt_files/gpx.fmt).

- Phil
Title: Re: another noob needing help extracting gpx data from a DENVER ACG-8050WMK2
Post by: robot797 on March 19, 2021, 07:44:42 PM
yay it works
told ya I was a noob
and the dash cam software accepts it
now I just have to find out how to synchronize them