ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: rs80 on July 19, 2016, 04:53:01 PM

Title: Mp4 change date to be recognised by Apple photos
Post by: rs80 on July 19, 2016, 04:53:01 PM
Hi, I want to change the date on mp4 files I export from imovie so that the photos app on OS X recognises my custom date.

Imovie exports have no exif data from the original clips but I can use "a better finder attributes" app to set new creation and modification dates on the mp4 file. Finder in OS X and exiftool will recognise the new custom date but when I import the mp4 into the photos app the video still has the original imovie export date.

Can anyone help with exiftool code to burn in a custom date to mp4's so that the photos app will recognise it?

Title: Re: Mp4 change date to be recognised by Apple photos
Post by: Phil Harvey on July 19, 2016, 07:33:13 PM
What date/time is Photos displaying?  Use this command to show all of the date/time information:

exiftool -time:all -a -G1 FILE

- Phil
Title: Re: Mp4 change date to be recognised by Apple photos
Post by: rs80 on July 19, 2016, 08:52:21 PM
Hi Phil, thanks for taking a look into this.
For example, Photos displays July 19th and I want it to be July 10th.
This is what I get:

[System]        File Modification Date/Time     : 2016:07:19 20:51:28+01:00
[System]        File Access Date/Time           : 2016:07:20 01:37:21+01:00
[System]        File Inode Change Date/Time     : 2016:07:19 20:51:28+01:00
[QuickTime]     Create Date                     : 2016:07:19 19:50:48
[QuickTime]     Modify Date                     : 2016:07:19 19:51:28
[Track1]        Track Create Date               : 2016:07:19 19:50:48
[Track1]        Track Modify Date               : 2016:07:19 19:51:28
[Track1]        Media Create Date               : 2016:07:19 19:50:48
[Track1]        Media Modify Date               : 2016:07:19 19:51:28
[Track2]        Track Create Date               : 2016:07:19 19:50:48
[Track2]        Track Modify Date               : 2016:07:19 19:51:28
[Track2]        Media Create Date               : 2016:07:19 19:50:48
[Track2]        Media Modify Date               : 2016:07:19 19:51:28

If I use 'a better finder attributes' I can change file modification date/time to July 10th 13:22 which is correct, but if I reimport into Apple Photos again, it still shows video as July 19th.

This is what I get after changing date with 'a better finder attributes':
[System]        File Modification Date/Time     : 2016:07:10 13:22:00+01:00
[System]        File Access Date/Time           : 2016:07:20 01:42:10+01:00
[System]        File Inode Change Date/Time     : 2016:07:20 01:41:47+01:00
[QuickTime]     Create Date                     : 2016:07:19 19:50:48
[QuickTime]     Modify Date                     : 2016:07:19 19:51:28
[Track1]        Track Create Date               : 2016:07:19 19:50:48
[Track1]        Track Modify Date               : 2016:07:19 19:51:28
[Track1]        Media Create Date               : 2016:07:19 19:50:48
[Track1]        Media Modify Date               : 2016:07:19 19:51:28
[Track2]        Track Create Date               : 2016:07:19 19:50:48
[Track2]        Track Modify Date               : 2016:07:19 19:51:28
[Track2]        Media Create Date               : 2016:07:19 19:50:48
[Track2]        Media Modify Date               : 2016:07:19 19:51:28
Title: Re: Mp4 change date to be recognised by Apple photos
Post by: Phil Harvey on July 19, 2016, 09:43:32 PM
You should be able to use ExifTool to change the QuickTime and Track date/times as well as the FileModifyDate:

exiftool -filemodifydate="2016:07:10 13:22:00" -quicktime:time:all="2016:07:10 13:22:00" FILE

I would think that this should make Apple Photo happy.

- Phil
Title: Re: Mp4 change date to be recognised by Apple photos
Post by: rs80 on July 20, 2016, 08:40:06 AM
Wow Phil, that worked. The new dates are recognised by Photos and Finder.
Thank you so much for helping!