OneDrive uploaded video has wrong date

Started by Honza94, June 30, 2024, 07:29:08 AM

Previous topic - Next topic

Honza94

Hello everyone,

I have started my migration from Google Photos to OneDrive and some problems with date sorting have come up.

Two videos, one has correct Date Taken date when uploaded to OneDrive, but the other one does not, therefore it is sorted incorrectly.

Working video exif:

ExifToolVersion                : 12.87
FileName                       : 20180708_145037.mp4
Directory                      : .
FileSize                       : 14 MB
FileModifyDate                 : 2024:06:29 12:47:21+02:00
FileAccessDate                 : 2024:06:30 13:25:00+02:00
FileCreateDate                 : 2018:07:08 14:50:43+02:00
FilePermissions                : -rw-rw-rw-
FileType                       : MP4
FileTypeExtension              : mp4
MIMEType                       : video/mp4
MajorBrand                     : MP4 v2 [ISO 14496-14]
MinorVersion                   : 0.0.0
CompatibleBrands               : isom, mp42
MovieHeaderVersion             : 0
ModifyDate                     : 2018:07:08 13:54:58
TimeScale                      : 600
Duration                       : 5.01 s
PreferredRate                  : 1
PreferredVolume                : 100.00%
PreviewTime                    : 0 s
PreviewDuration                : 0 s
PosterTime                     : 0 s
SelectionTime                  : 0 s
SelectionDuration              : 0 s
CurrentTime                    : 0 s
NextTrackID                    : 3
TrackHeaderVersion             : 0
TrackCreateDate                : 0000:00:00 00:00:00
TrackModifyDate                : 2018:07:08 13:54:59
TrackID                        : 1
TrackDuration                  : 4.95 s
TrackLayer                     : 0
TrackVolume                    : 0.00%
ImageWidth                     : 720
ImageHeight                    : 1280
GraphicsMode                   : srcCopy
OpColor                        : 0 0 0
CompressorID                   : avc1
SourceImageWidth               : 720
SourceImageHeight              : 1280
XResolution                    : 72
YResolution                    : 72
BitDepth                       : 24
BufferSize                     : 67988
MaxBitrate                     : 32891056
AverageBitrate                 : 22260808
VideoFrameRate                 : 240
MatrixStructure                : 1 0 0 0 1 0 0 0 1
MediaHeaderVersion             : 0
MediaCreateDate                : 2018:07:08 13:54:59
MediaModifyDate                : 2018:07:08 13:54:59
MediaTimeScale                 : 44100
MediaDuration                  : 5.02 s
MediaLanguageCode              : eng
HandlerDescription             : IsoMedia File Produced by Google, 5-11-2011
Balance                        : 0
AudioFormat                    : mp4a
AudioChannels                  : 2
AudioBitsPerSample             : 16
AudioSampleRate                : 44100
HandlerType                    : Metadata
HandlerVendorID                : Apple
GPSCoordinates                 : 49 deg 38' 13.56" N, 13 deg 31' 35.76" E
XMPToolkit                     : Image::ExifTool 12.87
CreateDate                     : 2018:07:08 14:50:43+02:00
MediaDataSize                  : 13854465
MediaDataOffset                : 10008
ImageSize                      : 720x1280
Megapixels                     : 0.922
AvgBitrate                     : 22.1 Mbps
GPSLatitude                    : 49 deg 38' 13.56" N
GPSLongitude                   : 13 deg 31' 35.76" E
Rotation                       : 0
GPSPosition                    : 49 deg 38' 13.56" N, 13 deg 31' 35.76" E
-- press ENTER --

No Date Taken video:

ExifToolVersion                : 12.87
FileName                       : 20181222_123330.mp4
Directory                      : .
FileSize                       : 53 MB
FileModifyDate                 : 2024:06:29 12:47:33+02:00
FileAccessDate                 : 2024:06:30 13:24:59+02:00
FileCreateDate                 : 2018:12:22 05:34:48+01:00
FilePermissions                : -rw-rw-rw-
FileType                       : 3GP
FileTypeExtension              : 3gp
MIMEType                       : video/3gpp
MajorBrand                     : 3GPP Media (.3GP) Release 5
MinorVersion                   : 0.0.0
CompatibleBrands               : 3gp5, isom
MovieHeaderVersion             : 0
ModifyDate                     : 2018:12:22 04:34:48
TimeScale                      : 1000
Duration                       : 0:00:46
PreferredRate                  : 1
PreferredVolume                : 100.00%
PreviewTime                    : 0 s
PreviewDuration                : 0 s
PosterTime                     : 0 s
SelectionTime                  : 0 s
SelectionDuration              : 0 s
CurrentTime                    : 0 s
NextTrackID                    : 65738
TrackHeaderVersion             : 0
TrackCreateDate                : 2018:12:22 04:34:48
TrackModifyDate                : 2018:12:22 04:34:48
TrackID                        : 201
TrackDuration                  : 0:00:46
TrackLayer                     : 0
TrackVolume                    : 0.00%
ImageWidth                     : 1280
ImageHeight                    : 720
GraphicsMode                   : srcCopy
OpColor                        : 0 0 0
CompressorID                   : avc1
SourceImageWidth               : 1280
SourceImageHeight              : 720
XResolution                    : 72
YResolution                    : 72
BitDepth                       : 24
VideoFrameRate                 : 28.905
MatrixStructure                : 1 0 0 0 1 0 0 0 1
MediaHeaderVersion             : 0
MediaCreateDate                : 2018:12:22 04:34:48
MediaModifyDate                : 2018:12:22 04:34:48
MediaTimeScale                 : 48000
MediaDuration                  : 0:00:46
MediaLanguageCode              : und
HandlerType                    : Audio Track
Balance                        : 0
AudioFormat                    : mp4a
AudioChannels                  : 2
AudioBitsPerSample             : 16
AudioSampleRate                : 48000
GPSCoordinates                 : 8 deg 49' 5.52" S, 115 deg 9' 33.48" E
XMPToolkit                     : Image::ExifTool 12.87
CreateDate                     : 2018:12:22 05:34:48+01:00
MediaDataSize                  : 53285046
MediaDataOffset                : 33736
ImageSize                      : 1280x720
Megapixels                     : 0.922
AvgBitrate                     : 9.29 Mbps
GPSLatitude                     8 deg 49' 5.52" S
GPSLongitude                   : 115 deg 9' 33.48" E
Rotation                       : 90
GPSPosition                    : 8 deg 49' 5.52" S, 115 deg 9' 33.48" E

I am new to all this, so not sure if this is relevant to mp4 files. I have successfully "fixed" some of the jpg photos I have but struggling with videos. I have also read a lot of complaints about OneDrive incorrectly sorting those videos and not using the CreateDate which is normally visible in Windows Explorer.

Any input is greatly appreciated

Have a nice Sunday.

StarGeek

I'm assuming the filename shows the correct date/time?

Run this command on those files so we can see only the date/time tags, including the duplicates, and the groups they belong to. Also use the [code] button on the output (see bottom of my post). It's hard to dig out the dates in all that and there are some discrepancies in the listed data.
exiftool -time:all -G1 -a -s file.mp4

Was the incorrect one filmed in the same time zone as the correct one? Several of the time stamps in the incorrect one seem to indicate a -08:00 time zone rather than the +01:00 time zone indicated by the file system time stamps.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Honza94

Working video:

[System]        FileModifyDate                  : 2024:06:29 12:47:21+02:00
[System]        FileAccessDate                  : 2024:06:30 18:40:31+02:00
[System]        FileCreateDate                  : 2018:07:08 14:50:43+02:00
[QuickTime]     CreateDate                      : 2018:07:08 14:50:43
[QuickTime]     ModifyDate                      : 2018:07:08 13:54:58
[Track1]        TrackCreateDate                 : 0000:00:00 00:00:00
[Track1]        TrackModifyDate                 : 2018:07:08 13:54:59
[Track1]        MediaCreateDate                 : 0000:00:00 00:00:00
[Track1]        MediaModifyDate                 : 2018:07:08 13:54:59
[Track2]        TrackCreateDate                 : 2018:07:08 13:54:59
[Track2]        TrackModifyDate                 : 2018:07:08 13:54:59
[Track2]        MediaCreateDate                 : 2018:07:08 13:54:59
[Track2]        MediaModifyDate                 : 2018:07:08 13:54:59
[XMP-xmp]       CreateDate                      : 2018:07:08 14:50:43+02:00

Not working video:

[System]        FileModifyDate                  : 2024:06:30 18:35:40+02:00
[System]        FileAccessDate                  : 2024:06:30 18:36:20+02:00
[System]        FileCreateDate                  : 2024:06:30 18:35:34+02:00
[QuickTime]     CreateDate                      : 2018:12:22 05:34:48
[QuickTime]     ModifyDate                      : 2018:12:22 04:34:48
[Track1]        TrackCreateDate                 : 2018:12:22 04:34:48
[Track1]        TrackModifyDate                 : 2018:12:22 04:34:48
[Track1]        MediaCreateDate                 : 2018:12:22 04:34:48
[Track1]        MediaModifyDate                 : 2018:12:22 04:34:48
[Track2]        TrackCreateDate                 : 2018:12:22 04:34:48
[Track2]        TrackModifyDate                 : 2018:12:22 04:34:48
[Track2]        MediaCreateDate                 : 2018:12:22 04:34:48
[Track2]        MediaModifyDate                 : 2018:12:22 04:34:48
[XMP-xmp]       CreateDate                      : 2018:12:22 05:34:48+01:00

Both of the video files have been taken in GMT +8 timezone.

StarGeek

On the second listing, did you use same file both times?  Because the file system time stamps are different (FileAccessDate can be ignored)
FileModifyDate: 2024:06:29 12:47:33+02:00 vs 2024:06:30 18:35:40+02:00
FileCreateDate: 2018:12:22 05:34:48+01:00 vs 2024:06:30 18:35:34+02:00

What time is OneDrive showing for both of these files?

These time stamps are all messed up. Assuming that "20180708_145037.mp4" was taken at "2018:07:08 14:50:37+08:00" (or should it +09:00 for Summer time?), then the Quicktime:CreateDate, Quicktime:ModifyDate, and Media/Track dates should all be "2018:07:08 06:50:37".  That is because these tags are supposed to be set to UTC. They are to be adjusted to the local time of the computer. They aren't supposed to show the local time where the video was filmed. The XMP-xmp:CreateDate is supposed to be the local time for where the video was shot, but obviously it isn't correct because it's in the +02:00.

The second one (20181222_123330.mp4?) is also confusing, because the Quicktime:CreateDate and Quicktime:ModifyDate are different.  Assuming this was shot at "2018:12:22 12:33:30+08:00", then the Quicktime tags should be "2018:12:22 4:33:30" and the XMP-xmp:CreateDate should be "2018:12:22 12:33:30+08:00". Most of the Quicktime tags are close enough, as the time stamp cameras use when writing videos can vary and often depend upon the duration and start/stop time.  But the Quicktime:CreateDate/XMP-xmp:CreateDate tags are an hour off.

What you need to do is compare the time stamps that OneDrive is reporting to the above data, taking into account possible changes in time zones, which would be a 6 or 7 hour differences. The Media/Track tags can probably be ignored.



* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).