Skip to content

Curious case of three large video files being dated differently from their metadata #1195

@invario

Description

@invario

Describe the bug
I recorded (3) large HEVC HDR10+ videos via my Samsung GS23+ today. Two of the files were completely untouched. One of the files I trimmed 16 seconds from the front end using my GS23+ included Gallery video editor. All three files were then synced/upped via Foldersync to my NC instance which then showed up in Memories out of order from when the video was created.

Using the package exiftool in the bin-ext folder, I pulled the time tags:
perl exiftool -api largefilesupport=1 -time:all 20240516_*.mp4

20240516_165405.mp4 - First video that was recorded and subsequently trimmed with my video editor.

File Modification Date/Time     : 2024:05:16 18:05:28-04:00
File Access Date/Time           : 2024:05:17 09:30:07-04:00
File Inode Change Date/Time     : 2024:05:16 23:31:18-04:00
Create Date                     : 2024:05:16 20:58:58
Modify Date                     : 2024:05:16 20:58:58
Track Create Date               : 2024:05:16 22:05:27
Track Modify Date               : 2024:05:16 22:05:27
Media Create Date               : 2024:05:16 22:05:27
Media Modify Date               : 2024:05:16 22:05:27
20240516_170511.mp4 - untouched.  Second video recorded:

File Modification Date/Time     : 2024:05:16 17:07:42-04:00
File Access Date/Time           : 2024:05:17 09:30:17-04:00
File Inode Change Date/Time     : 2024:05:16 23:33:04-04:00
Create Date                     : 2024:05:16 21:07:42
Modify Date                     : 2024:05:16 21:07:42
Track Create Date               : 2024:05:16 21:07:42
Track Modify Date               : 2024:05:16 21:07:42
Media Create Date               : 2024:05:16 21:07:42
Media Modify Date               : 2024:05:16 21:07:42
20240516_172115.mp4 - untouched. Third video recorded:

File Modification Date/Time     : 2024:05:16 17:25:47-04:00
File Access Date/Time           : 2024:05:17 09:30:08-04:00
File Inode Change Date/Time     : 2024:05:16 23:36:32-04:00
Create Date                     : 2024:05:16 21:25:46
Modify Date                     : 2024:05:16 21:25:46
Track Create Date               : 2024:05:16 21:25:47
Track Modify Date               : 2024:05:16 21:25:47
Media Create Date               : 2024:05:16 21:25:47
Media Modify Date               : 2024:05:16 21:25:47

In Memories, the videos are being shown out of chronological order per this screenshot.
image

  • It makes sense that 165405 is the newest video per the Track Create Date, due to my trimming the video. However, when I view the Info for this video, it shows this:

image
Note it says 10:05PM and that is most certainly not when I trimmed the video. It appears the timezone is not being factored in as I believe I trimmed the video at approximately 6:05PM local. (-4 hours)

  • 170511 (original, untouched) shows this correctly as 5:07PM

image

  • But oddly, 172115, which is also the original and untouched shows this incorrectly as 9:25PM when it should be 7:25PM (timezone?)

image

To Reproduce
Record videos on my phone. Uploaded to NC. Browse collection in Memories.

Platform:

  • OS: TrueNAS Core 13 in FreeBSD 13.2-RELEASE-p11 jail
  • Browser: Chrome Android and Windows
  • Memories Version: 7.3.1
  • Nextcloud Version: Nextcloud Hub 8 (29.0.0)
  • PHP Version: 8.2.14

Additional context
The files are rather large, FYI.

-rw-r--r--  1 www  www  2539766902 May 16 18:05 20240516_165405.mp4
-rw-r--r--  1 www  www  1410936134 May 16 17:07 20240516_170511.mp4
-rw-r--r--  1 www  www  2530825413 May 16 17:25 20240516_172115.mp4

  • Any errors in the JS console?
    No.

  • Any errors in the Nextcloud server logs?
    No.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions