Apple Live photos timestamp difference between Image and Movie

Started by rishid, April 03, 2019, 06:36:45 PM

Previous topic - Next topic

rishid

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.

======== 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

Quote from: rishid on April 03, 2019, 06:36:45 PMHas 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.
"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

rishid

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.