Author Topic: Apple Live photos timestamp difference between Image and Movie  (Read 88 times)

rishid

  • Newbie
  • *
  • Posts: 2
I have been renaming my files and organizing them just fine with Exiftool. I just found a small issue with Apple Live Photos in terms of the logic I have been using. I rename files using CreateDate then CreationDate then DateTimeOriginal using precedence on the by setting the the `filename` multiple times.

A live photo is broken into a JPG and MOV file, most of the time the timestamps seem to align but I am catching cases where the MOV file timestamp is 1 second prior. While not a huge issue it is just annoying to not have the filenames of the JPG and MOV portion be the same to be able to associate them with each other.

Has anyone come across this and come up with a clever idea on how to work around this?

Thanks.

Relevant portion of the command for reference:
-d %Y%m%d_%H%M%S
-filename '${CreateDate}%-.2c.%le'

These two files go "together", I am able to determine this using the Content-Identifier tag.
Code: [Select]
======== P:/Photos/2016/2016-12 trip/20161222_225307-00.mov
File Modification Date/Time     : 2016:12:22 12:23:08-05:00
File Access Date/Time           : 2019:04:03 08:42:07-04:00
File Creation Date/Time         : 2017:12:07 06:16:45-05:00
Create Date                     : 2016:12:22 17:23:09
Modify Date                     : 2016:12:22 17:23:09
Track Create Date               : 2016:12:22 17:23:09
Track Modify Date               : 2016:12:22 17:23:09
Media Create Date               : 2016:12:22 17:23:09
Media Modify Date               : 2016:12:22 17:23:09
Creation Date                   : 2016:12:22 22:53:07+05:30
======== P:/Photos/2016/2016-12 trip/20161222_225308-00.jpg
File Modification Date/Time     : 2016:12:22 12:23:08-05:00
File Access Date/Time           : 2019:04:03 08:35:50-04:00
File Creation Date/Time         : 2017:12:07 06:16:45-05:00
Modify Date                     : 2016:12:22 22:53:08
Date/Time Original              : 2016:12:22 22:53:08
Create Date                     : 2016:12:22 22:53:08
Sub Sec Time Original           : 046
Sub Sec Time Digitized          : 046
Digital Creation Time           : 22:53:08
Digital Creation Date           : 2016:12:22
Date Created                    : 2016:12:22
Time Created                    : 22:53:08
Date/Time Created               : 2016:12:22 22:53:08
Digital Creation Date/Time      : 2016:12:22 22:53:08
Create Date                     : 2016:12:22 22:53:08.046
Date/Time Original              : 2016:12:22 22:53:08.046
    2 image files read

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2365
Re: Apple Live photos timestamp difference between Image and Movie
« Reply #1 on: April 03, 2019, 07:24:44 PM »
Has anyone come across this and come up with a clever idea on how to work around this?

I assume they originally had the same base name?

Try renaming both based upon the data in one of the files.  As an example, see this post where XMP and RAW ORF files are renamed based upon the ORF file.  I would think that if you want to rename based upon the .jpg files, you would have to add the -fileOrder -filename to the command as in Phil's response, but if you base it upon the .mov files, the FileOrder option probably wouldn't be required.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

rishid

  • Newbie
  • *
  • Posts: 2
Re: Apple Live photos timestamp difference between Image and Movie
« Reply #2 on: April 04, 2019, 05:50:21 AM »
Ah good idea, that will work. First I will rename the photos using '${CotentIdentifier}.%e' to get them back into pairs and then use -tagsFromFile and -fileOrder as you suggested. It seems to be working on a test run. Thanks much.