immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
52.37k stars 2.77k forks source link

[BUG] Incorrect EXIF date from video #14272

Closed helgehatt closed 1 day ago

helgehatt commented 1 day ago

The bug

Video with the following EXIF data is stored at 2024-11-18 instead of 2022-06-24.

[{'SourceFile': '',
  'ExifTool:ExifToolVersion': 12.4,
  'File:FileName': 'IMG_8725.MOV',
  'File:Directory': '',
  'File:FileSize': 65881595,
  'File:FileModifyDate': '2024:11:18 20:10:14+01:00',
  'File:FileAccessDate': '2024:11:20 23:31:34+01:00',
  'File:FileInodeChangeDate': '2024:11:18 20:10:14+01:00',
  'File:FilePermissions': 100664,
  'File:FileType': 'MP4',
  'File:FileTypeExtension': 'MP4',
  'File:MIMEType': 'video/mp4',
  'QuickTime:MajorBrand': 'mp42',
  'QuickTime:MinorVersion': '0.0.0',
  'QuickTime:CompatibleBrands': ['isom', 'mp42'],
  'QuickTime:MovieHeaderVersion': 0,
  'QuickTime:CreateDate': '2022:06:24 17:38:33',
  'QuickTime:ModifyDate': '0000:00:00 00:00:00',
  'QuickTime:TimeScale': 15360,
  'QuickTime:Duration': 132.794921875,
  'QuickTime:PreferredRate': 1,
  'QuickTime:PreferredVolume': 1,
  'QuickTime:PreviewTime': 0,
  'QuickTime:PreviewDuration': 0,
  'QuickTime:PosterTime': 0,
  'QuickTime:SelectionTime': 0,
  'QuickTime:SelectionDuration': 0,
  'QuickTime:CurrentTime': 0,
  'QuickTime:NextTrackID': 3,
  'QuickTime:TrackHeaderVersion': 0,
  'QuickTime:TrackCreateDate': '0000:00:00 00:00:00',
  'QuickTime:TrackModifyDate': '0000:00:00 00:00:00',
  'QuickTime:TrackID': 1,
  'QuickTime:TrackDuration': 132.733333333333,
  'QuickTime:TrackLayer': 0,
  'QuickTime:TrackVolume': 0,
  'QuickTime:ImageWidth': 1920,
  'QuickTime:ImageHeight': 1080,
  'QuickTime:CompressorID': 'vp09',
  'QuickTime:SourceImageWidth': 1920,
  'QuickTime:SourceImageHeight': 1080,
  'QuickTime:XResolution': 72,
  'QuickTime:YResolution': 72,
  'QuickTime:BitDepth': 24,
  'QuickTime:ColorRepresentation': 'nclx 1 1 1',
  'QuickTime:VideoFrameRate': 30,
  'QuickTime:GraphicsMode': 0,
  'QuickTime:OpColor': '0 0 0',
  'QuickTime:MatrixStructure': '1 0 0 0 1 0 0 0 1',
  'QuickTime:MediaHeaderVersion': 0,
  'QuickTime:MediaCreateDate': '0000:00:00 00:00:00',
  'QuickTime:MediaModifyDate': '0000:00:00 00:00:00',
  'QuickTime:MediaTimeScale': 44100,
  'QuickTime:MediaDuration': 132.794920634921,
  'QuickTime:MediaLanguageCode': 'und',
  'QuickTime:HandlerDescription': 'ISO Media file produced by Google Inc.',
  'QuickTime:AudioFormat': 'mp4a',
  'QuickTime:AudioChannels': 2,
  'QuickTime:AudioBitsPerSample': 16,
  'QuickTime:AudioSampleRate': 44100,
  'QuickTime:Balance': 0,
  'QuickTime:HandlerType': 'mdir',
  'QuickTime:HandlerVendorID': 'appl',
  'QuickTime:GPSCoordinates': '55.6832 12.5661 11.22',
  'QuickTime:UserData_mak': 'Apple',
  'QuickTime:UserData_mod': 'iPhone 13 Pro',
  'QuickTime:DateTimeOriginal': '2022:06:24 19:38:33',
  'QuickTime:MediaDataSize': 65835869,
  'QuickTime:MediaDataOffset': 45726,
  'XMP:XMPToolkit': 'Image::ExifTool 12.40',
  'XMP:DateTimeOriginal': '2022:06:24 19:38:33',
  'Composite:ImageSize': '1920 1080',
  'Composite:Megapixels': 2.0736,
  'Composite:AvgBitrate': 3966168,
  'Composite:GPSAltitude': 11.22,
  'Composite:GPSAltitudeRef': 0,
  'Composite:GPSLatitude': 55.6832,
  'Composite:GPSLongitude': 12.5661,
  'Composite:Rotation': 0,
  'Composite:GPSPosition': '55.6832 12.5661'}]

The OS that Immich Server is running on

Ubuntu 22.04.5

Version of Immich Server

v1.120.2

Version of Immich Mobile App

N/A

Platform with the issue

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

Maybe you have tools to mock EXIF data?

Relevant log output

No response

Additional information

No response

helgehatt commented 1 day ago

Works when uploading directly in the web app instead of using immich-go.