immich-app / immich

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

Ios iphone 13 pro - front camera photos (mostly) #12501

Open krypton9208 opened 1 month ago

krypton9208 commented 1 month ago

The bug

Almost all photos take by front camera (live photos) was't correctly uploded, Mobile app upload video, by image wasn't uploaded.

The OS that Immich Server is running on

helm

Version of Immich Server

v1.114.0

Version of Immich Mobile App

v1.114.0

Platform with the issue

Your docker-compose.yml content

configuration:
    ffmpeg:
      crf: 23
      threads: 0
      preset: ultrafast
      targetVideoCodec: h264
      acceptedVideoCodecs:
        - h264
      targetAudioCodec: aac
      acceptedAudioCodecs:
        - aac
        - mp3
        - libopus
      targetResolution: '720'
      maxBitrate: '4500k'
      bframes: -1
      refs: 0
      gopSize: 0
      npl: 0
      temporalAQ: false
      cqMode: auto
      twoPass: true
      preferredHwDevice: auto
      transcode: required
      tonemap: hable
      accel: disabled
    job:
      backgroundTask:
        concurrency: 5
      smartSearch:
        concurrency: 2
      metadataExtraction:
        concurrency: 5
      faceDetection:
        concurrency: 2
      search:
        concurrency: 5
      sidecar:
        concurrency: 5
      library:
        concurrency: 5
      migration:
        concurrency: 5
      thumbnailGeneration:
        concurrency: 10
      videoConversion:
        concurrency: 3
    logging:
      enabled: true
      level: log
    machineLearning:
      enabled: true
      url: http://immich-machine-learning:3003
      clip:
        enabled: true
        modelName: ViT-B-32__openai
      facialRecognition:
        enabled: true
        modelName: buffalo_l
        minScore: 0.7
        maxDistance: 0.6
        minFaces: 3
    map:
      enabled: true
      lightStyle: ''
      darkStyle: ''
    reverseGeocoding:
      enabled: true
    oauth:
      enabled: false
      issuerUrl: ''
      clientId: ''
      clientSecret: ''
      scope: openid email profile
      signingAlgorithm: RS256
      storageLabelClaim: preferred_username
      storageQuotaClaim: immich_quota
      defaultStorageQuota: 0
      buttonText: Login with OAuth
      autoRegister: true
      autoLaunch: false
      mobileOverrideEnabled: false
      mobileRedirectUri: ''
    passwordLogin:
      enabled: true
    storageTemplate:
      enabled: false
      hashVerificationEnabled: true
      template: "{{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}"
    image:
      thumbnailFormat: webp
      thumbnailSize: 250
      previewFormat: jpeg
      previewSize: 1440
      quality: 80
      colorspace: p3
      extractEmbedded: false
    newVersionCheck:
      enabled: true
    notifications:
      smtp:
        enabled: true
        from: 'Immich Photo Server hidden'
        replyTo: 'hidden'
        transport:
          ignoreCert: false
          host: 'smtp.sendgrid.net'
          port: 465
          username: 'apikey'
          password: 'hidden'
    trash:
      enabled: true
      days: 30
    theme:
      customCss: ''
    user:
      deleteDelay: 7
    library:
      scan:
        enabled: true
        cronExpression: 0 0 * * *
      watch:
        enabled: true
    server:
      externalDomain: 'https://hidden'

Your .env content

REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
  DB_HOSTNAME: "{{ .Release.Name }}-postgresql"
  DB_USERNAME: "{{ .Values.postgresql.global.postgresql.auth.username }}"
  DB_DATABASE_NAME: "{{ .Values.postgresql.global.postgresql.auth.database }}"
  # -- You should provide your own secret outside of this helm-chart and use `postgresql.global.postgresql.auth.existingSecret` to provide credentials to the postgresql instance
  DB_PASSWORD: "{{ .Values.postgresql.global.postgresql.auth.password }}"
  IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'
  TZ: "Poland"

Reproduction steps

  1. Take selfie with live fotos
  2. Open app to backup it
  3. App finish backup
  4. Only video from live photo is saved, photo was't uploaded

Relevant log output

No response

Additional information

No response

mmomjian commented 1 month ago

I just tested this on iPhone 15 and it worked fine. We will need more details such as app and server logs to triage if this a bug.

krypton9208 commented 3 weeks ago

I have example which i can share, it's not photo from front camera, but from rear... it's live photo, where video are uplouded but photo not, even when i press a button to "manually" upload this photo, nothing happen.

https://drive.google.com/file/d/1gYEpuJs00DdxrRyL6TcbXGu537I-GrRB/view?usp=sharing This how its look in my app, i have newest possible version of every thing IMG_1409

dinushkaherath commented 2 weeks ago

I have the same problem, with my live photos from regular camera - iphone it only uploads the video but not the photo. citing it as a duplicate, so they don't act like live photos, but very very short videos