immich-app / immich

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

Videos are unplayable #9766

Closed milouk closed 4 months ago

milouk commented 4 months ago

The bug

Video are unplayable. In console i get the following:

Screenshot 2024-05-26 at 12 28 05

and when i hover over a video i get this red exclamation mark

Screenshot 2024-05-26 at 12 31 37

** It used to work just fine sometime ago

The OS that Immich Server is running on

Debian Bookworm

Version of Immich Server

v1.105.1

Version of Immich Mobile App

v1.105.0 build.139

Platform with the issue

Your docker-compose.yml content

immich-server:
    <<: *common-keys-core
    container_name: immich_server
    image: altran1502/immich-server:release
    command: [ "start.sh", "immich" ]
    ports:
      - 8081:8081
    volumes:
      - /mnt/media:/usr/src/app/upload
    env_file:
      - ./immich/immich.env
    depends_on:
      - pihole
      - redis
      - database
    dns:
      - 10.1.0.6
    networks:
      private-network:
        ipv4_address: 10.1.0.22
    labels:
      - com.centurylinklabs.watchtower.enable=true
      - traefik.enable=true
      - traefik.http.services.immich-server.loadbalancer.server.port=3001
      - traefik.http.routers.immich-server-https.entrypoints=https
      - traefik.http.routers.immich-server-https.rule=Host(`${IMMICH_HOST}`)
      - traefik.http.routers.immich-server-https.tls=true
      - traefik.http.routers.immich-server-https.middlewares=chain-middlewares-no-auth@file

  immich-microservices:
    <<: *common-keys-core
    container_name: immich_microservices
    image: altran1502/immich-server:release
    command: [ "start.sh", "microservices" ]
    devices:
      - /dev/dri:/dev/dri  # If using Intel QuickSync or VAAPI
    volumes:
      - /mnt/media:/usr/src/app/upload
    env_file:
      - ./immich/immich.env
    depends_on:
      - pihole
      - redis
      - database
    dns:
      - 10.1.0.6
    networks:
      private-network:
        ipv4_address: 10.1.0.23
    labels:
      - com.centurylinklabs.watchtower.enable=true

  immich-machine-learning:
    <<: *common-keys-core
    container_name: immich_machine_learning
    image: altran1502/immich-machine-learning:release
    volumes:
      - /data/immich/model-cache:/cache
    env_file:
      - ./immich/immich.env
    depends_on:
      - pihole
    dns:
      - 10.1.0.6
    networks:
      private-network:
        ipv4_address: 10.1.0.24
    labels:
      - com.centurylinklabs.watchtower.enable=true

  redis:
    <<: *common-keys-core
    container_name: immich_redis
    image: redis:6.2-alpine
    networks:
      private-network:
        ipv4_address: 10.1.0.26
    labels:
      - com.centurylinklabs.watchtower.enable=true

  database:
    <<: *common-keys-core
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.2.0
    env_file:
      - ./immich/immich.env
    volumes:
      - /data/immich/pgdata:/var/lib/postgresql/data
    networks:
      private-network:
        ipv4_address: 10.1.0.27
    labels:
      - com.centurylinklabs.watchtower.enable=true

Your .env content

IMMICH_VERSION=release
IMMICH_METRICS=true
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
UPLOAD_LOCATION=./library
DB_PASSWORD=postgres
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
TZ=Europe/Athens

Reproduction steps

1. Open web library
2. Try to play a video

Relevant log output

No response

Additional information

In mobile it works just fine

bo0tzz commented 4 months ago

Have you made any changes to the transcoding settings, or are you using the defaults?

milouk commented 4 months ago
Screenshot 2024-05-26 at 12 52 01 Screenshot 2024-05-26 at 12 52 15 Screenshot 2024-05-26 at 12 52 29

the defaults, havent changed anything

milouk commented 4 months ago

** Update: just noticed, in safari it plays well, so it must be something with Version 125.0.6422.60 (Official Build) (arm64)

milouk commented 4 months ago

Apparently is was compress: {} in traefik configuarion that created the issue