Main Menu

Recent posts

#51
Bug Reports / Feature Requests / Re: GPS from GKU D900 dashcam
Last post by Phil Harvey - April 25, 2025, 04:47:37 PM
Success, and 13.28 should be released soon.

- Phil
#53
Metadata / Re: Panasonic Focus Area Size
Last post by Phil Harvey - April 25, 2025, 04:45:46 PM
Great.  This seems to work well for my samples, and I'll convert the value of "4194303.999 4194303.999" to "n/a" since I see this in a couple of samples.

Thanks for this!

- Phil
#54
Bug Reports / Feature Requests / Re: GPS from GKU D900 dashcam
Last post by borism - April 25, 2025, 02:25:01 PM
Fantastic thank you so much!
#55
The "exiftool" Application / Re: Compare FileModifyDate and...
Last post by Phil Harvey - April 25, 2025, 02:06:22 PM
It is not possible to refer to a tag directly (ie. "${TAG}") from within an advanced formatting expression for 3 reasons.

1. It introduces the possibility of a recursion that makes my brain explode.  eg)

-p "${TAG1;$_=${TAG2;$_={TAG3;$_=${TAG4;$_='enough already!'}}}}"

2. It isn't very common that people want to do this anyway.

3. If you really need to, you already have access other tags via the API functions and the ExifTool $self object in the expression.

- Phil
#56
Bug Reports / Feature Requests / Re: GPS from GKU D900 dashcam
Last post by Phil Harvey - April 25, 2025, 01:57:35 PM
Hi Boris,

I can see the GPS in this file.  When I get a chance I'll see about extracting it.  If all goes well, ExifTool 13.28 will have the ability to decode this.

- Phil
#57
The "exiftool" Application / Re: Compare FileModifyDate and...
Last post by lei - April 25, 2025, 12:35:47 PM
Hi again,

Thanks so much for the earlier help with calculating the time difference between DateTimeOriginal and FileModifyDate. The command using:

-p "$Filename  $DateTimeOriginal $FileModifyDate ${DateTimeOriginal;$_=abs(GetUnixTime($_)-GetUnixTime($self->GetValue('FileModifyDate')))}"

worked great, and it really helped me understand how flexible ExifTool can be. Also, thanks for clarifying the difference between -if and -p expressions — that cleared things up nicely.

While digging into how this works, I had a quick follow-up.

In the ${TAG;EXPR} format, I understand that $_ gives the value of the tag, and we can get other tags using $self->GetValue(...). But I was curious — is there any way to refer to another tag directly inside EXPR, like $FileModifyDate?

I tried it, but it didn't seem to work. The docs mention $_, $tag, and $self, but I couldn't find anything about tag variables being available directly. Just wanted to double-check if that's expected.

Thanks again — still getting my head around all the possibilities with ExifTool, and learning a lot.
#58
Bug Reports / Feature Requests / GPS from GKU D900 dashcam
Last post by borism - April 25, 2025, 12:04:07 PM
A Mapillary user reported that they can't get GPS data from the GKU D900. They shared a sample file (20250213_010710F.MOV) on Google Drive to Phil's gmail. Are you able to take a look?

Thank you so much as always,
- Boris on behalf of the Mapillary team
#59
Bug Reports / Feature Requests / Re: Problem with copying Nikon...
Last post by StarGeek - April 25, 2025, 11:59:59 AM
Quote from: herb on April 25, 2025, 03:54:10 AMIt is unclear to me why and when in addition the option -a has to be used.

Warning (and Error) are just tags, the same as any other tag. See the Extra Tags page.
#60
The "exiftool" Application / Re: Set SubSecCreateDate from ...
Last post by StarGeek - April 25, 2025, 11:29:02 AM
Quote from: glup on April 25, 2025, 06:16:28 AMWould it be possible to explain slightly the command? -if '$$GeolocationTimeZone eq \"$GeolocationTimeZone\" looks odd to me...

I'm using exiftool to create an exiftool command. You would run the command I listed and redirect the output into a file. You would then set the execute permission on the file and run it as a script. I have limited knowledge of Linux, so I don't know the proper term, but in Windows terms, it would be running a command to create a BAT file, which would then be run to edit all the files.

I should have said that this is based upon the possibility that your files have multiple different time zones. If you already know the time zone, then you could just hard code it like the command I listed earlier (oops, noticed a mistake, fixing)
Quote from: StarGeek on April 24, 2025, 05:32:41 PMexiftool -config GPSDateTimeLocal.config  -api geolocation -d '%Y:%m:%d %H:%M:%S%:z' -if '$GeolocationTimeZone eq "America/Los_Angeles" ' -api TimeZone='America/Los_Angeles' '-SubSecCreateDate<GPSDateTimeLocal' /path/to/files/

QuoteThe -d... is necessary so that '-SubSecCreateDate<GPSDateTime' works by using -api timezone, right? Isn't the fraction of seconds missing, so '%Y:%m:%d %H:%M:%S.%f%:z' should be correct just in case someone may need the ms?

Ooops, sorry. You are correct to add the %f for subseconds.

QuoteWouldn't be
exiftool -if '$gpsmeasuremode# == 3' -d '%Y:%m:%d %H:%M:%S.%f%:z'  \
         -api geolocation -api timezone='$GeoLocationTimezone' \
         '-SubSecCreateDate<GPSDateTime' myfile.ext
in just one command and without GPSDateTimeLocal.config sufficient?

Unfortunately, no. As I said
Quote from: StarGeek on April 24, 2025, 05:32:41 PMThe problem is that you can't use the GeolocationTimeZone tag a parameter for this option.

The value needs to be set when the command is run, and the value of GeolocationTimeZone isn't know until the command is run and the file has been read.