[BUG] Some Live Photos are split apart when uploading with the CLI tool #1091

Closed
opened 2026-02-05 00:24:54 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @ericswpark on GitHub (Jul 13, 2023).

The bug

After importing my photo export from my macOS Photos app, I noticed that some Live Photos have their "live" component split apart into a separate video, like this:

Screenshot 2023-07-13 at 1 02 48 PM

As seen in the screenshot, the first file is the Live Photo photo, the second file is the "live" video from the Live Photo, and the third file (rightmost one) is another example where the merging happened correctly.

The split apart files have the file names: IMG_0243_Original.jpg and IMG_0243_Original.mov, so in theory they should've been merged on the import. I don't know why that didn't happen here.

The OS that Immich Server is running on

unRAID 6.12.2

Version of Immich Server

v1.66.1

Version of Immich Mobile App

N/A

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A, not using Docker Compose.
Server is running PostgreSQL 15 with Redis.

Your .env content

N/A

Reproduction steps

1. Upload a photo dump with the CLI import tool
2. Verify that some Live Photos are "split" on the webUI

Additional information

I hope there is a way to merge this without re-importing the entire library :o

Originally created by @ericswpark on GitHub (Jul 13, 2023). ### The bug After importing my photo export from my macOS Photos app, I noticed that some Live Photos have their "live" component split apart into a separate video, like this: <img width="654" alt="Screenshot 2023-07-13 at 1 02 48 PM" src="https://github.com/immich-app/immich/assets/13326074/9bc67a88-ea7f-4c77-bbf1-a2c10ffc6835"> As seen in the screenshot, the first file is the Live Photo photo, the second file is the "live" video from the Live Photo, and the third file (rightmost one) is another example where the merging happened correctly. The split apart files have the file names: IMG_0243_Original.jpg and IMG_0243_Original.mov, so in theory they should've been merged on the import. I don't know why that didn't happen here. ### The OS that Immich Server is running on unRAID 6.12.2 ### Version of Immich Server v1.66.1 ### Version of Immich Mobile App N/A ### Platform with the issue - [X] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML N/A, not using Docker Compose. Server is running PostgreSQL 15 with Redis. ``` ### Your .env content ```Shell N/A ``` ### Reproduction steps ```bash 1. Upload a photo dump with the CLI import tool 2. Verify that some Live Photos are "split" on the webUI ``` ### Additional information I hope there is a way to merge this without re-importing the entire library :o
Author
Owner

@alextran1502 commented on GitHub (Jul 13, 2023):

Can you confirm that all the jobs have finished processing and there are still splitter photos and videos?

@alextran1502 commented on GitHub (Jul 13, 2023): Can you confirm that all the jobs have finished processing and there are still splitter photos and videos?
Author
Owner

@alextran1502 commented on GitHub (Jul 13, 2023):

If possible, can you help me post the EXIF info for both? you can discard GPS location for privacy

@alextran1502 commented on GitHub (Jul 13, 2023): If possible, can you help me post the EXIF info for both? you can discard GPS location for privacy
Author
Owner

@ericswpark commented on GitHub (Jul 13, 2023):

@alextran1502

Can you confirm that all the jobs have finished processing and there are still splitter photos and videos?

Yes, all of the jobs have finished processing as far as I can tell. I imported this morning and checking in at late evening all the jobs have the counter set to 0, so I'll assume it has run through all the imported photos at least once.

If possible, can you help me post the EXIF info for both? you can discard GPS location for privacy

Sure thing:

Image EXIF (1st entry)
➜  immich(1) exiftool IMG_0243_Original.JPG
ExifTool Version Number         : 12.60
File Name                       : IMG_0243_Original.JPG
Directory                       : .
File Size                       : 1463 kB
File Modification Date/Time     : 2023:07:13 03:30:24+09:00
File Access Date/Time           : 2023:07:13 19:44:30+09:00
File Inode Change Date/Time     : 2023:07:13 19:43:46+09:00
File Permissions                : -rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Exif Byte Order                 : Big-endian (Motorola, MM)
Make                            : Apple
Camera Model Name               : iPhone 6s Plus
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : 11.0.3
Modify Date                     : 2017:10:20 15:53:11
Exposure Time                   : 1/10
F Number                        : 2.2
Exposure Program                : Program AE
ISO                             : 80
Exif Version                    : 0221
Date/Time Original              : 2017:10:20 15:53:11
Create Date                     : 2017:10:20 15:53:11
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/10
Aperture Value                  : 2.2
Brightness Value                : 1.622930334
Exposure Compensation           : 0
Metering Mode                   : Multi-segment
Flash                           : Off, Did not fire
Focal Length                    : 4.2 mm
Subject Area                    : 2015 1511 2217 1330
Maker Note Version              : 9
Run Time Flags                  : Valid
Run Time Value                  : 51173335478833
Run Time Scale                  : 1000000000
Run Time Epoch                  : 0
AE Stable                       : Yes
AE Target                       : 202
AE Average                      : 213
AF Stable                       : Yes
Acceleration Vector             : 0.01318324357 -0.9645487061 -0.2300527842
Focus Distance Range            : 0.29 - 0.36 m
OIS Mode                        : 2
Media Group UUID                : F236E2B0-BC77-409B-8B37-1C7C786625CA
Live Photo Video Index          : 0
Sub Sec Time Original           : 328
Sub Sec Time Digitized          : 328
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 3024
Exif Image Height               : 4032
Sensing Method                  : One-chip color area
Scene Type                      : Directly photographed
Exposure Mode                   : Auto
White Balance                   : Auto
Focal Length In 35mm Format     : 29 mm
Scene Capture Type              : Standard
Image Unique ID                 : 34cf7fb832d4c1e00000000000000000
Lens Info                       : 4.150000095mm f/2.2
Lens Make                       : Apple
Lens Model                      : iPhone 6s Plus back camera 4.15mm f/2.2
GPS Version ID                  : 2.2.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Speed Ref                   : km/h
GPS Speed                       : 0
GPS Img Direction Ref           : True North
GPS Img Direction               : ##################
GPS Dest Bearing Ref            : True North
GPS Dest Bearing                : ##################
GPS Date Stamp                  : 2017:10:20
GPS Horizontal Positioning Error: ################## m
Image Width                     : 3024
Image Height                    : 4032
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Run Time Since Power Up         : 14:12:53
Aperture                        : 2.2
Image Size                      : 3024x4032
Megapixels                      : 12.2
Scale Factor To 35 mm Equivalent: 7.0
Shutter Speed                   : 1/10
Create Date                     : 2017:10:20 15:53:11.328
Date/Time Original              : 2017:10:20 15:53:11.328
GPS Altitude                    : ################## m Above Sea Level
GPS Latitude                    : ################## N
GPS Longitude                   : ################## E
Circle Of Confusion             : 0.004 mm
Field Of View                   : 63.7 deg
Focal Length                    : 4.2 mm (35 mm equivalent: 29.0 mm)
GPS Position                    : ##################
Hyperfocal Distance             : 1.82 m
Light Value                     : 5.9
Lens ID                         : iPhone 6s Plus back camera 4.15mm f/2.2
Video EXIF (2nd entry)
➜  immich(1) exiftool IMG_0243_Original.mov
ExifTool Version Number         : 12.60
File Name                       : IMG_0243_Original.mov
Directory                       : .
File Size                       : 2.3 MB
File Modification Date/Time     : 2023:07:13 03:30:24+09:00
File Access Date/Time           : 0000:00:00 00:00:00
File Inode Change Date/Time     : 2023:07:13 19:43:46+09:00
File Permissions                : -rw-r--r--
File Type                       : MOV
File Type Extension             : mov
MIME Type                       : video/quicktime
Major Brand                     : Apple QuickTime (.MOV/QT)
Minor Version                   : 0.0.0
Compatible Brands               : qt
Media Data Size                 : 2260416
Media Data Offset               : 36
Movie Header Version            : 0
Create Date                     : 2017:10:20 06:53:11
Modify Date                     : 2017:10:20 06:53:12
Time Scale                      : 600
Duration                        : 2.00 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 5
Track Header Version            : 0
Track Create Date               : 2017:10:20 06:53:11
Track Modify Date               : 2017:10:20 06:53:12
Track ID                        : 1
Track Duration                  : 2.00 s
Track Layer                     : 0
Track Volume                    : 100.00%
Image Width                     : 1440
Image Height                    : 1080
Clean Aperture Dimensions       : 1308x980
Production Aperture Dimensions  : 1440x1080
Encoded Pixels Dimensions       : 1440x1080
Graphics Mode                   : ditherCopy
Op Color                        : 32768 32768 32768
Compressor ID                   : avc1
Source Image Width              : 1440
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : H.264
Bit Depth                       : 24
Video Frame Rate                : 17.5
Balance                         : 0
Audio Format                    : lpcm
Audio Channels                  : 3
Audio Bits Per Sample           : 16
Audio Sample Rate               : 1
Warning                         : [minor] The ExtractEmbedded option may find more tags in the media data
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Content Describes               : Track 1
Media Header Version            : 0
Media Create Date               : 2017:10:20 06:53:11
Media Modify Date               : 2017:10:20 06:53:12
Media Time Scale                : 600
Media Duration                  : 0.00 s
Media Language Code             : und
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : ditherCopy
Gen Op Color                    : 32768 32768 32768
Gen Balance                     : 0
Handler Class                   : Data Handler
Handler Vendor ID               : Apple
Handler Description             : Core Media Data Handler
Meta Format                     : mebx
Handler Type                    : Metadata Tags
Content Identifier              : F236E2B0-BC77-409B-8B37-1C7C786625CA
GPS Coordinates                 : ##################
Make                            : Apple
Model                           : iPhone 6s Plus
Software                        : 11.0.3
Creation Date                   : 2017:10:20 15:53:10+09:00
Image Size                      : 1440x1080
Megapixels                      : 1.6
Avg Bitrate                     : 9.04 Mbps
GPS Altitude                    : ################## m
GPS Altitude Ref                : Above Sea Level
GPS Latitude                    : ################## N
GPS Longitude                   : ################## E
Rotation                        : 90
GPS Position                    : ##################
Proper EXIF example (3rd entry) (photo followed by video)
➜  immich(1) exiftool IMG_0242_Original.JPG
ExifTool Version Number         : 12.60
File Name                       : IMG_0242_Original.JPG
Directory                       : .
File Size                       : 1443 kB
File Modification Date/Time     : 2023:07:13 03:30:24+09:00
File Access Date/Time           : 2023:07:13 19:44:29+09:00
File Inode Change Date/Time     : 2023:07:13 19:43:46+09:00
File Permissions                : -rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Exif Byte Order                 : Big-endian (Motorola, MM)
Make                            : Apple
Camera Model Name               : iPhone 6s Plus
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : 11.0.3
Modify Date                     : 2017:10:20 15:52:18
Exposure Time                   : 1/4
F Number                        : 2.2
Exposure Program                : Program AE
ISO                             : 100
Exif Version                    : 0221
Date/Time Original              : 2017:10:20 15:52:18
Create Date                     : 2017:10:20 15:52:18
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/4
Aperture Value                  : 2.2
Brightness Value                : 0.01908586159
Exposure Compensation           : 0
Metering Mode                   : Multi-segment
Flash                           : Off, Did not fire
Focal Length                    : 4.2 mm
Subject Area                    : 2015 1511 2217 1330
Maker Note Version              : 9
Run Time Flags                  : Valid
Run Time Value                  : 51120050047333
Run Time Scale                  : 1000000000
Run Time Epoch                  : 0
AE Stable                       : Yes
AE Target                       : 203
AE Average                      : 211
AF Stable                       : Yes
Acceleration Vector             : 0.06699249897 -0.9908416866 -0.09222433714
Focus Distance Range            : 0.34 - 0.36 m
OIS Mode                        : 2
Media Group UUID                : C05AC404-6FCD-4A43-BDA0-B71324DC39B5
Live Photo Video Index          : 0
Sub Sec Time Original           : 084
Sub Sec Time Digitized          : 084
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 3024
Exif Image Height               : 4032
Sensing Method                  : One-chip color area
Scene Type                      : Directly photographed
Exposure Mode                   : Auto
White Balance                   : Auto
Focal Length In 35mm Format     : 29 mm
Scene Capture Type              : Standard
Image Unique ID                 : 15a06f70fe4cf4d20000000000000000
Lens Info                       : 4.150000095mm f/2.2
Lens Make                       : Apple
Lens Model                      : iPhone 6s Plus back camera 4.15mm f/2.2
GPS Version ID                  : 2.2.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Speed Ref                   : km/h
GPS Speed                       : 0
GPS Img Direction Ref           : True North
GPS Img Direction               : ##################
GPS Dest Bearing Ref            : True North
GPS Dest Bearing                : ##################
GPS Date Stamp                  : 2017:10:20
GPS Horizontal Positioning Error: ################## m
Image Width                     : 3024
Image Height                    : 4032
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Run Time Since Power Up         : 14:12:00
Aperture                        : 2.2
Image Size                      : 3024x4032
Megapixels                      : 12.2
Scale Factor To 35 mm Equivalent: 7.0
Shutter Speed                   : 1/4
Create Date                     : 2017:10:20 15:52:18.084
Date/Time Original              : 2017:10:20 15:52:18.084
GPS Altitude                    : ################## m Above Sea Level
GPS Latitude                    : ################## N
GPS Longitude                   : ################## E
Circle Of Confusion             : 0.004 mm
Field Of View                   : 63.7 deg
Focal Length                    : 4.2 mm (35 mm equivalent: 29.0 mm)
GPS Position                    : ##################
Hyperfocal Distance             : 1.82 m
Light Value                     : 4.3
Lens ID                         : iPhone 6s Plus back camera 4.15mm f/2.2


➜  immich(1) exiftool IMG_0242_Original.mov
ExifTool Version Number         : 12.60
File Name                       : IMG_0242_Original.mov
Directory                       : .
File Size                       : 1966 kB
File Modification Date/Time     : 2023:07:13 03:30:24+09:00
File Access Date/Time           : 2023:07:13 19:48:14+09:00
File Inode Change Date/Time     : 2023:07:13 19:43:46+09:00
File Permissions                : -rw-r--r--
File Type                       : MOV
File Type Extension             : mov
MIME Type                       : video/quicktime
Major Brand                     : Apple QuickTime (.MOV/QT)
Minor Version                   : 0.0.0
Compatible Brands               : qt
Media Data Size                 : 1960440
Media Data Offset               : 36
Movie Header Version            : 0
Create Date                     : 2017:10:20 06:52:18
Modify Date                     : 2017:10:20 06:52:18
Time Scale                      : 600
Duration                        : 1.73 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 5
Track Header Version            : 0
Track Create Date               : 2017:10:20 06:52:18
Track Modify Date               : 2017:10:20 06:52:18
Track ID                        : 1
Track Duration                  : 1.73 s
Track Layer                     : 0
Track Volume                    : 100.00%
Image Width                     : 1440
Image Height                    : 1080
Clean Aperture Dimensions       : 1308x980
Production Aperture Dimensions  : 1440x1080
Encoded Pixels Dimensions       : 1440x1080
Graphics Mode                   : ditherCopy
Op Color                        : 32768 32768 32768
Compressor ID                   : avc1
Source Image Width              : 1440
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : H.264
Bit Depth                       : 24
Video Frame Rate                : 10.962
Balance                         : 0
Audio Format                    : lpcm
Audio Channels                  : 3
Audio Bits Per Sample           : 16
Audio Sample Rate               : 1
Warning                         : [minor] The ExtractEmbedded option may find more tags in the media data
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Content Describes               : Track 1
Media Header Version            : 0
Media Create Date               : 2017:10:20 06:52:18
Media Modify Date               : 2017:10:20 06:52:18
Media Time Scale                : 600
Media Duration                  : 0.00 s
Media Language Code             : und
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : ditherCopy
Gen Op Color                    : 32768 32768 32768
Gen Balance                     : 0
Handler Class                   : Data Handler
Handler Vendor ID               : Apple
Handler Description             : Core Media Data Handler
Meta Format                     : mebx
Handler Type                    : Metadata Tags
Content Identifier              : C05AC404-6FCD-4A43-BDA0-B71324DC39B5
GPS Coordinates                 : ##################, ################## m Above Sea Level
Make                            : Apple
Model                           : iPhone 6s Plus
Software                        : 11.0.3
Creation Date                   : 2017:10:20 15:52:17+09:00
Image Size                      : 1440x1080
Megapixels                      : 1.6
Avg Bitrate                     : 9.05 Mbps
GPS Altitude                    : 21.011 m
GPS Altitude Ref                : Above Sea Level
GPS Latitude                    : ################## N
GPS Longitude                   : ################## E
Rotation                        : 90
GPS Position                    : ##################
@ericswpark commented on GitHub (Jul 13, 2023): @alextran1502 > Can you confirm that all the jobs have finished processing and there are still splitter photos and videos? Yes, all of the jobs have finished processing as far as I can tell. I imported this morning and checking in at late evening all the jobs have the counter set to 0, so I'll assume it has run through all the imported photos at least once. > If possible, can you help me post the EXIF info for both? you can discard GPS location for privacy Sure thing: <details> <summary>Image EXIF (1st entry)</summary> ``` ➜ immich(1) exiftool IMG_0243_Original.JPG ExifTool Version Number : 12.60 File Name : IMG_0243_Original.JPG Directory : . File Size : 1463 kB File Modification Date/Time : 2023:07:13 03:30:24+09:00 File Access Date/Time : 2023:07:13 19:44:30+09:00 File Inode Change Date/Time : 2023:07:13 19:43:46+09:00 File Permissions : -rw-r--r-- File Type : JPEG File Type Extension : jpg MIME Type : image/jpeg JFIF Version : 1.01 Exif Byte Order : Big-endian (Motorola, MM) Make : Apple Camera Model Name : iPhone 6s Plus X Resolution : 72 Y Resolution : 72 Resolution Unit : inches Software : 11.0.3 Modify Date : 2017:10:20 15:53:11 Exposure Time : 1/10 F Number : 2.2 Exposure Program : Program AE ISO : 80 Exif Version : 0221 Date/Time Original : 2017:10:20 15:53:11 Create Date : 2017:10:20 15:53:11 Components Configuration : Y, Cb, Cr, - Shutter Speed Value : 1/10 Aperture Value : 2.2 Brightness Value : 1.622930334 Exposure Compensation : 0 Metering Mode : Multi-segment Flash : Off, Did not fire Focal Length : 4.2 mm Subject Area : 2015 1511 2217 1330 Maker Note Version : 9 Run Time Flags : Valid Run Time Value : 51173335478833 Run Time Scale : 1000000000 Run Time Epoch : 0 AE Stable : Yes AE Target : 202 AE Average : 213 AF Stable : Yes Acceleration Vector : 0.01318324357 -0.9645487061 -0.2300527842 Focus Distance Range : 0.29 - 0.36 m OIS Mode : 2 Media Group UUID : F236E2B0-BC77-409B-8B37-1C7C786625CA Live Photo Video Index : 0 Sub Sec Time Original : 328 Sub Sec Time Digitized : 328 Flashpix Version : 0100 Color Space : sRGB Exif Image Width : 3024 Exif Image Height : 4032 Sensing Method : One-chip color area Scene Type : Directly photographed Exposure Mode : Auto White Balance : Auto Focal Length In 35mm Format : 29 mm Scene Capture Type : Standard Image Unique ID : 34cf7fb832d4c1e00000000000000000 Lens Info : 4.150000095mm f/2.2 Lens Make : Apple Lens Model : iPhone 6s Plus back camera 4.15mm f/2.2 GPS Version ID : 2.2.0.0 GPS Latitude Ref : North GPS Longitude Ref : East GPS Altitude Ref : Above Sea Level GPS Speed Ref : km/h GPS Speed : 0 GPS Img Direction Ref : True North GPS Img Direction : ################## GPS Dest Bearing Ref : True North GPS Dest Bearing : ################## GPS Date Stamp : 2017:10:20 GPS Horizontal Positioning Error: ################## m Image Width : 3024 Image Height : 4032 Encoding Process : Baseline DCT, Huffman coding Bits Per Sample : 8 Color Components : 3 Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2) Run Time Since Power Up : 14:12:53 Aperture : 2.2 Image Size : 3024x4032 Megapixels : 12.2 Scale Factor To 35 mm Equivalent: 7.0 Shutter Speed : 1/10 Create Date : 2017:10:20 15:53:11.328 Date/Time Original : 2017:10:20 15:53:11.328 GPS Altitude : ################## m Above Sea Level GPS Latitude : ################## N GPS Longitude : ################## E Circle Of Confusion : 0.004 mm Field Of View : 63.7 deg Focal Length : 4.2 mm (35 mm equivalent: 29.0 mm) GPS Position : ################## Hyperfocal Distance : 1.82 m Light Value : 5.9 Lens ID : iPhone 6s Plus back camera 4.15mm f/2.2 ``` </details> <details> <summary>Video EXIF (2nd entry)</summary> ``` ➜ immich(1) exiftool IMG_0243_Original.mov ExifTool Version Number : 12.60 File Name : IMG_0243_Original.mov Directory : . File Size : 2.3 MB File Modification Date/Time : 2023:07:13 03:30:24+09:00 File Access Date/Time : 0000:00:00 00:00:00 File Inode Change Date/Time : 2023:07:13 19:43:46+09:00 File Permissions : -rw-r--r-- File Type : MOV File Type Extension : mov MIME Type : video/quicktime Major Brand : Apple QuickTime (.MOV/QT) Minor Version : 0.0.0 Compatible Brands : qt Media Data Size : 2260416 Media Data Offset : 36 Movie Header Version : 0 Create Date : 2017:10:20 06:53:11 Modify Date : 2017:10:20 06:53:12 Time Scale : 600 Duration : 2.00 s Preferred Rate : 1 Preferred Volume : 100.00% Preview Time : 0 s Preview Duration : 0 s Poster Time : 0 s Selection Time : 0 s Selection Duration : 0 s Current Time : 0 s Next Track ID : 5 Track Header Version : 0 Track Create Date : 2017:10:20 06:53:11 Track Modify Date : 2017:10:20 06:53:12 Track ID : 1 Track Duration : 2.00 s Track Layer : 0 Track Volume : 100.00% Image Width : 1440 Image Height : 1080 Clean Aperture Dimensions : 1308x980 Production Aperture Dimensions : 1440x1080 Encoded Pixels Dimensions : 1440x1080 Graphics Mode : ditherCopy Op Color : 32768 32768 32768 Compressor ID : avc1 Source Image Width : 1440 Source Image Height : 1080 X Resolution : 72 Y Resolution : 72 Compressor Name : H.264 Bit Depth : 24 Video Frame Rate : 17.5 Balance : 0 Audio Format : lpcm Audio Channels : 3 Audio Bits Per Sample : 16 Audio Sample Rate : 1 Warning : [minor] The ExtractEmbedded option may find more tags in the media data Matrix Structure : 1 0 0 0 1 0 0 0 1 Content Describes : Track 1 Media Header Version : 0 Media Create Date : 2017:10:20 06:53:11 Media Modify Date : 2017:10:20 06:53:12 Media Time Scale : 600 Media Duration : 0.00 s Media Language Code : und Gen Media Version : 0 Gen Flags : 0 0 0 Gen Graphics Mode : ditherCopy Gen Op Color : 32768 32768 32768 Gen Balance : 0 Handler Class : Data Handler Handler Vendor ID : Apple Handler Description : Core Media Data Handler Meta Format : mebx Handler Type : Metadata Tags Content Identifier : F236E2B0-BC77-409B-8B37-1C7C786625CA GPS Coordinates : ################## Make : Apple Model : iPhone 6s Plus Software : 11.0.3 Creation Date : 2017:10:20 15:53:10+09:00 Image Size : 1440x1080 Megapixels : 1.6 Avg Bitrate : 9.04 Mbps GPS Altitude : ################## m GPS Altitude Ref : Above Sea Level GPS Latitude : ################## N GPS Longitude : ################## E Rotation : 90 GPS Position : ################## ``` </details> <details> <summary>Proper EXIF example (3rd entry) (photo followed by video)</summary> ``` ➜ immich(1) exiftool IMG_0242_Original.JPG ExifTool Version Number : 12.60 File Name : IMG_0242_Original.JPG Directory : . File Size : 1443 kB File Modification Date/Time : 2023:07:13 03:30:24+09:00 File Access Date/Time : 2023:07:13 19:44:29+09:00 File Inode Change Date/Time : 2023:07:13 19:43:46+09:00 File Permissions : -rw-r--r-- File Type : JPEG File Type Extension : jpg MIME Type : image/jpeg JFIF Version : 1.01 Exif Byte Order : Big-endian (Motorola, MM) Make : Apple Camera Model Name : iPhone 6s Plus X Resolution : 72 Y Resolution : 72 Resolution Unit : inches Software : 11.0.3 Modify Date : 2017:10:20 15:52:18 Exposure Time : 1/4 F Number : 2.2 Exposure Program : Program AE ISO : 100 Exif Version : 0221 Date/Time Original : 2017:10:20 15:52:18 Create Date : 2017:10:20 15:52:18 Components Configuration : Y, Cb, Cr, - Shutter Speed Value : 1/4 Aperture Value : 2.2 Brightness Value : 0.01908586159 Exposure Compensation : 0 Metering Mode : Multi-segment Flash : Off, Did not fire Focal Length : 4.2 mm Subject Area : 2015 1511 2217 1330 Maker Note Version : 9 Run Time Flags : Valid Run Time Value : 51120050047333 Run Time Scale : 1000000000 Run Time Epoch : 0 AE Stable : Yes AE Target : 203 AE Average : 211 AF Stable : Yes Acceleration Vector : 0.06699249897 -0.9908416866 -0.09222433714 Focus Distance Range : 0.34 - 0.36 m OIS Mode : 2 Media Group UUID : C05AC404-6FCD-4A43-BDA0-B71324DC39B5 Live Photo Video Index : 0 Sub Sec Time Original : 084 Sub Sec Time Digitized : 084 Flashpix Version : 0100 Color Space : sRGB Exif Image Width : 3024 Exif Image Height : 4032 Sensing Method : One-chip color area Scene Type : Directly photographed Exposure Mode : Auto White Balance : Auto Focal Length In 35mm Format : 29 mm Scene Capture Type : Standard Image Unique ID : 15a06f70fe4cf4d20000000000000000 Lens Info : 4.150000095mm f/2.2 Lens Make : Apple Lens Model : iPhone 6s Plus back camera 4.15mm f/2.2 GPS Version ID : 2.2.0.0 GPS Latitude Ref : North GPS Longitude Ref : East GPS Altitude Ref : Above Sea Level GPS Speed Ref : km/h GPS Speed : 0 GPS Img Direction Ref : True North GPS Img Direction : ################## GPS Dest Bearing Ref : True North GPS Dest Bearing : ################## GPS Date Stamp : 2017:10:20 GPS Horizontal Positioning Error: ################## m Image Width : 3024 Image Height : 4032 Encoding Process : Baseline DCT, Huffman coding Bits Per Sample : 8 Color Components : 3 Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2) Run Time Since Power Up : 14:12:00 Aperture : 2.2 Image Size : 3024x4032 Megapixels : 12.2 Scale Factor To 35 mm Equivalent: 7.0 Shutter Speed : 1/4 Create Date : 2017:10:20 15:52:18.084 Date/Time Original : 2017:10:20 15:52:18.084 GPS Altitude : ################## m Above Sea Level GPS Latitude : ################## N GPS Longitude : ################## E Circle Of Confusion : 0.004 mm Field Of View : 63.7 deg Focal Length : 4.2 mm (35 mm equivalent: 29.0 mm) GPS Position : ################## Hyperfocal Distance : 1.82 m Light Value : 4.3 Lens ID : iPhone 6s Plus back camera 4.15mm f/2.2 ➜ immich(1) exiftool IMG_0242_Original.mov ExifTool Version Number : 12.60 File Name : IMG_0242_Original.mov Directory : . File Size : 1966 kB File Modification Date/Time : 2023:07:13 03:30:24+09:00 File Access Date/Time : 2023:07:13 19:48:14+09:00 File Inode Change Date/Time : 2023:07:13 19:43:46+09:00 File Permissions : -rw-r--r-- File Type : MOV File Type Extension : mov MIME Type : video/quicktime Major Brand : Apple QuickTime (.MOV/QT) Minor Version : 0.0.0 Compatible Brands : qt Media Data Size : 1960440 Media Data Offset : 36 Movie Header Version : 0 Create Date : 2017:10:20 06:52:18 Modify Date : 2017:10:20 06:52:18 Time Scale : 600 Duration : 1.73 s Preferred Rate : 1 Preferred Volume : 100.00% Preview Time : 0 s Preview Duration : 0 s Poster Time : 0 s Selection Time : 0 s Selection Duration : 0 s Current Time : 0 s Next Track ID : 5 Track Header Version : 0 Track Create Date : 2017:10:20 06:52:18 Track Modify Date : 2017:10:20 06:52:18 Track ID : 1 Track Duration : 1.73 s Track Layer : 0 Track Volume : 100.00% Image Width : 1440 Image Height : 1080 Clean Aperture Dimensions : 1308x980 Production Aperture Dimensions : 1440x1080 Encoded Pixels Dimensions : 1440x1080 Graphics Mode : ditherCopy Op Color : 32768 32768 32768 Compressor ID : avc1 Source Image Width : 1440 Source Image Height : 1080 X Resolution : 72 Y Resolution : 72 Compressor Name : H.264 Bit Depth : 24 Video Frame Rate : 10.962 Balance : 0 Audio Format : lpcm Audio Channels : 3 Audio Bits Per Sample : 16 Audio Sample Rate : 1 Warning : [minor] The ExtractEmbedded option may find more tags in the media data Matrix Structure : 1 0 0 0 1 0 0 0 1 Content Describes : Track 1 Media Header Version : 0 Media Create Date : 2017:10:20 06:52:18 Media Modify Date : 2017:10:20 06:52:18 Media Time Scale : 600 Media Duration : 0.00 s Media Language Code : und Gen Media Version : 0 Gen Flags : 0 0 0 Gen Graphics Mode : ditherCopy Gen Op Color : 32768 32768 32768 Gen Balance : 0 Handler Class : Data Handler Handler Vendor ID : Apple Handler Description : Core Media Data Handler Meta Format : mebx Handler Type : Metadata Tags Content Identifier : C05AC404-6FCD-4A43-BDA0-B71324DC39B5 GPS Coordinates : ##################, ################## m Above Sea Level Make : Apple Model : iPhone 6s Plus Software : 11.0.3 Creation Date : 2017:10:20 15:52:17+09:00 Image Size : 1440x1080 Megapixels : 1.6 Avg Bitrate : 9.05 Mbps GPS Altitude : 21.011 m GPS Altitude Ref : Above Sea Level GPS Latitude : ################## N GPS Longitude : ################## E Rotation : 90 GPS Position : ################## ``` </details>
Author
Owner

@jrasm91 commented on GitHub (Aug 3, 2023):

Looks good. The expected properties are both there and match. These should get linked. When you open the info panel for both of them, do they have extracted metadata? If it is empty, they might have been skipped for some reason. If so, can you run the metadata extraction job for "missing" and see if they get picked up?

Image

Media Group UUID                : F236E2B0-BC77-409B-8B37-1C7C786625CA

Video:

Content Identifier              : F236E2B0-BC77-409B-8B37-1C7C786625CA
@jrasm91 commented on GitHub (Aug 3, 2023): Looks good. The expected properties are both there and match. These should get linked. When you open the info panel for both of them, do they have extracted metadata? If it is empty, they might have been skipped for some reason. If so, can you run the metadata extraction job for "missing" and see if they get picked up? Image ``` Media Group UUID : F236E2B0-BC77-409B-8B37-1C7C786625CA ``` Video: ``` Content Identifier : F236E2B0-BC77-409B-8B37-1C7C786625CA ```
Author
Owner

@jrasm91 commented on GitHub (Aug 15, 2023):

I did a little more research and I was able to reproduce this - if the two parts are uploaded and their metadata is extracted at the same time there is a possibility they don't get linked. Running the metadata extraction job for all assets should fix the problem though.

@jrasm91 commented on GitHub (Aug 15, 2023): I did a little more research and I was able to reproduce this - if the two parts are uploaded and their metadata is extracted at the same time there is a possibility they don't get linked. Running the metadata extraction job for all assets should fix the problem though.
Author
Owner

@ericswpark commented on GitHub (Aug 17, 2023):

Sorry for the late reply. I'm not sure if I ran the fix metadata job previously but all photos are showing up correctly linked now. Thanks!

@ericswpark commented on GitHub (Aug 17, 2023): Sorry for the late reply. I'm not sure if I ran the fix metadata job previously but all photos are showing up correctly linked now. Thanks!
Author
Owner

@jrasm91 commented on GitHub (Aug 17, 2023):

Sounds good. The next release will include some code eliminates the runtime issue so they should always show up as linked now. Thanks for finding this bug!

@jrasm91 commented on GitHub (Aug 17, 2023): Sounds good. The next release will include some code eliminates the runtime issue so they should always show up as linked now. Thanks for finding this bug!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1091