pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.02k stars 80 forks source link

Old video files with wrong metadata #687

Closed duckdany closed 9 months ago

duckdany commented 1 year ago

Describe the bug After upload old video files with correct metadata memories shows them with the upload date. Nextcloud Photos app shows them with the correct date and time. If I edit the videos metadata in memories, then memories will show with the correct date, but Photos shows them with modification (today) date and time.

To Reproduce Steps to reproduce the behavior: Upload an old video (2017 and 2018)

Screenshots

Platform:

Additional context I tried to change the metadata on desktop and then reuploaded the videos, but the same bug came up.

pulsejet commented 1 year ago

Do you have a sample?

duckdany commented 1 year ago

Yes, of course. How can I share it with you? Thanks!

pulsejet commented 1 year ago

E.g. a google drive link perhaps. If you don't want to share it publicly, you can DM me at Discord.

duckdany commented 1 year ago

https://1drv.ms/v/s!AnzGnZCcRCbJj88F7Ctl6SP9mvHK2A?e=PJJ8Rk

This is one of my videos that not has the problem.

pulsejet commented 1 year ago

This is one of my videos that not has the problem.

Does this video not have the problem? Need a sample video which does have the problem ...

This video shows Jun 9, 4:47 AM GMT+1 for me. Is this the correct date/time?

pulsejet commented 1 year ago

Hmm this is a mess ... were these videos modified earlier with some other tool? Creation Date is not a standard QuickTime tag AFAIK.

File Modification Date/Time     : 2023:06:10 10:16:17-07:00
File Access Date/Time           : 2023:06:10 10:18:34-07:00
File Inode Change Date/Time     : 2023:06:10 10:18:34-07:00
Create Date                     : 2023:06:09 03:47:24
Modify Date                     : 2023:06:09 03:47:24
Track Create Date               : 2023:06:09 03:47:24
Track Modify Date               : 2023:06:09 03:47:24
Media Create Date               : 2023:06:09 03:47:24
Media Modify Date               : 2023:06:09 03:47:24
Creation Date                   : 2017:12:08 06:16:39
duckdany commented 1 year ago

This is one of my videos that not has the problem.

Does this video not have the problem? Need a sample video which has the problem ...

Sorry. I don’t know why I wrote that. Sorry. This video has the problem too. In memories the date is when I upload it. In photos it has a correct date. If I edit metadata in memories, in photos it will be shown today.

duckdany commented 1 year ago

Hmm this is a mess ... were these videos modified earlier with some other tool? Creation Date is not a standard QuickTime tag AFAIK.

File Modification Date/Time     : 2023:06:10 10:16:17-07:00
File Access Date/Time           : 2023:06:10 10:18:34-07:00
File Inode Change Date/Time     : 2023:06:10 10:18:34-07:00
Create Date                     : 2023:06:09 03:47:24
Modify Date                     : 2023:06:09 03:47:24
Track Create Date               : 2023:06:09 03:47:24
Track Modify Date               : 2023:06:09 03:47:24
Media Create Date               : 2023:06:09 03:47:24
Media Modify Date               : 2023:06:09 03:47:24
Creation Date                   : 2017:12:08 06:16:39

What is the standard quicktime tag? I imported all my media files from onedrive to icloud once. I checked these videos in onedrive, icloud and they are at the correct date and time. I don’t know what happend. So I think I lost the date. How could I modify them so? Thank you!

pulsejet commented 1 year ago

The Create Date is the usual tag. Does that time ring any bells? E.g. did you download this particular file from somewhere on Jun 9 at 4AM?

duckdany commented 1 year ago

The Create Date is the usual tag. Does that time ring any bells? E.g. did you download this particular file from somewhere on Jun 9 at 4AM?

I just downloaded from icloud to upload to my new nextcloud server. But I imported them from onedrive to icloud firstly in 2018.

I uploaded this video to onedrive now and it is at 2017. I don’t know how can I modify them to be good in nextcloud

pulsejet commented 1 year ago

The two tags should definitely not be inconsistent, so something messed with the videos. AFAIK Google does this to save space, maybe Apple too.

You can copy over the tag into the correct field with exiftool

exiftool "-CreateDate<CreationDate" FileOrDir

This might lead to an incorrect timezone though, not very sure. But it'll likely get the date right, at least.

image

pulsejet commented 1 year ago

Note you need to reindex after doing this.

occ files:scan

occ memories:index

jsddsfoh commented 1 year ago

https://github.com/pulsejet/memories/issues/199#issuecomment-1317171366 maybe someone else finds this helpful. need occ memories:index -f to reread metadata.

ThowZzy commented 11 months ago

Hello, I have the same issue, I think I have some videos that did not have any metadata for the date, but something like RSYNC added the current date to it, so I now have really old videos and photos dated to today. And when I try to change this date in Memories, it doesn't change to the date I set and gets updated to the current date and time.