Server Version#: Version 1.20.1.3252
Player Version#: Plex Web Version 4.42.1
I’ve made many posts on said topic over the years and I feel compelled this morning as I am on holiday to provide another rant, in hope Plex development team sort this photo library timeline issue out once and for all.
The issue I am having is simple, my CCTV video files (MP4) drop into a plex photo library, get scanned and then are supposed to appear under the correct date/time order in the timeline.
Doing some investigation this morning I’ve discovered a couple of different defect scenarios. The first scenario was stopping new files being created under the correct date. The second which has taken me an age to get to the bottom of is taking a perfectly indexed set of videos under yesterday (18th Sept) and today’s date (19th Sept) and then by adding one additional file, I can change all files indexed under the 19th, to switch to the 18th instead.
I’m going to focus on the 2nd scenario, from my investigations this is what I have found out and it is easy for me to replicate.
The MP4 file (Front-053014-053046.mp4) exif extract below is a typical file that has been indexed correctly by Plex, it is the first file that shows under the 19th date in my Plex Web timeline:
D:\ServerFolders\Housekeeping>exiftool -a -G1 -s -time:all Front-053014-053046.mp4
[System] FileModifyDate : 2020:09:19 05:30:46+01:00
[System] FileAccessDate : 2020:09:19 17:36:51+01:00
[System] FileCreateDate : 2020:09:19 17:36:51+01:00
[QuickTime] CreateDate : 2020:09:19 04:30:46
[QuickTime] ModifyDate : 2020:09:19 04:30:46
[Track1] TrackCreateDate : 0000:00:00 00:00:00
[Track1] TrackModifyDate : 0000:00:00 00:00:00
[Track1] MediaCreateDate : 0000:00:00 00:00:00
[Track1] MediaModifyDate : 0000:00:00 00:00:00
[Track2] TrackCreateDate : 0000:00:00 00:00:00
[Track2] TrackModifyDate : 0000:00:00 00:00:00
[Track2] MediaCreateDate : 0000:00:00 00:00:00
[Track2] MediaModifyDate : 0000:00:00 00:00:00
This next file is the last file that is correctly showing under the 18th Date:
D:\ServerFolders\Housekeeping>exiftool -a -G1 -s -time:all Front-235743-235808.mp4
[System] FileModifyDate : 2020:09:18 23:58:08+01:00
[System] FileAccessDate : 2020:09:19 18:25:05+01:00
[System] FileCreateDate : 2020:09:19 18:25:05+01:00
[QuickTime] CreateDate : 2020:09:18 22:58:08
[QuickTime] ModifyDate : 2020:09:18 22:58:08
[Track1] TrackCreateDate : 0000:00:00 00:00:00
[Track1] TrackModifyDate : 0000:00:00 00:00:00
[Track1] MediaCreateDate : 0000:00:00 00:00:00
[Track1] MediaModifyDate : 0000:00:00 00:00:00
[Track2] TrackCreateDate : 0000:00:00 00:00:00
[Track2] TrackModifyDate : 0000:00:00 00:00:00
[Track2] MediaCreateDate : 0000:00:00 00:00:00
[Track2] MediaModifyDate : 0000:00:00 00:00:00
The file below is one of 4 my CCTV camera created, between 01:30 and 03:20 on the 19th that will trigger all files showing under 19th timeline to switch to all being under the 18th date instead. Yes you heard me correct, all files under 19th switch to all under 18th in the timeline. Any new files that will be added with dates of 19th, and likely 20th, 21st etc will now all be created under the 18th Date in the timeline, the timeline is now corrupt forever. Common sense tells me this file should reside under the 19th without question and depending on what field Plex evaluates to grab the time, will determine it’s position. The file is supposed to sit between the two files mentioned above as 03:20 is the time it was captured, shown via OSD when playing the video.
D:\ServerFolders\Housekeeping>exiftool -a -G1 -s -time:all Front-032032-032057.mp4
[System] FileModifyDate : 2020:09:19 03:20:57+01:00
[System] FileAccessDate : 2020:09:19 17:37:06+01:00
[System] FileCreateDate : 2020:09:19 17:37:06+01:00
[QuickTime] CreateDate : 2020:09:19 02:20:57
[QuickTime] ModifyDate : 2020:09:19 02:20:57
[Track1] TrackCreateDate : 0000:00:00 00:00:00
[Track1] TrackModifyDate : 0000:00:00 00:00:00
[Track1] MediaCreateDate : 0000:00:00 00:00:00
[Track1] MediaModifyDate : 0000:00:00 00:00:00
[Track2] TrackCreateDate : 0000:00:00 00:00:00
[Track2] TrackModifyDate : 0000:00:00 00:00:00
[Track2] MediaCreateDate : 0000:00:00 00:00:00
[Track2] MediaModifyDate : 0000:00:00 00:00:00
There however does appear an anomaly in the above file in that you would think the file access/create date time should be 15:37. I don’t know why it is 17:37, but my assumption is this field seems to be confusing plex on scanning and therefore completely messes up the timeline.
It might also be mixing it up with FileAccessDate and FileCreateDate of the last file under the 18th in the timeline, as those two fields have a date of the 19th set, likely as day is rolling over.
The difference between the system file meta data and the quicktime date values are where all the problems and corruptions are stemming from.
I don’t know how Plex calculates timeline date/time for each file, but if there happens to be a rogue file, if indeed this file could be called rogue, it shouldn’t impact all files before or after, screwing the complete timeline from that point forward.
When dealing with any video file, photos too, there is always a possibility the time of recording and time file created might be out of sync, NTP time wrong, daylight savings out. CCTV camera running at different date/time to server it is writing the files too. These sorts of issues should not in any way impact the timeline for anything other than the file in question.
So over to Plex Technical Support to get someone to look into this and fix this bread and butter functionality that is the foundation the product is meant to built upon.