immich-app / immich

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

motion photo is not detected by android app or website #11517

Open hessbe opened 1 month ago

hessbe commented 1 month ago

The bug

I have a Motorola Moto G84 and I'm using the Moto Camera app to take motion picture images. The embedded video of the motion picture is playable with google photo and I was able to extract the mp4 video as jpeg trailer with the open source exiftool (exiftool.org). Command: exiftool -trailer -b example.jpg > video.mp4

Example motion photo that is not working: example_motion_photo.zip

The OS that Immich Server is running on

Ubuntu 22.04.4 LTS

Version of Immich Server

v1.111.0

Version of Immich Mobile App

1.111.0 build.152

Platform with the issue

Your docker-compose.yml content

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
    restart: always

  database:
    container_name: immich_postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:

Your .env content

DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

1.upload attached image to immich
2.go to immich android app / webpage
3.try to play the motion photo

Relevant log output

No response

Additional information

No response

hessbe commented 1 month ago

I've just seen #11541, for me Immich doesn't even show that it is a motion picture, so there is no play button at all. So it is not exactly the same issue.

CrossR commented 1 month ago

My issue was linked over to here, so I just gave your image a test, and on my side everything is happy at least...

So I think there is certainly something different about these two issues. You can see my config over in #11541, though I can't really help you more than that, sorry!

All I did was download the image, and upload it via the web, run the jobs in admin a few times to make sure stuff was processed, and then it was happy. This was all in Firefox in Windows.

https://github.com/user-attachments/assets/34950305-8798-4d23-bd79-659cdc867a28

hessbe commented 1 month ago

Weird, it is looking like this for me:

grafik

I've tested it with Firefox / Chrome / Edge, all the same.

What I noticed, the next motion picture with the same phone and app is working, but almost all others are not working.