Skip to content

Video preview and playback stops after 1 second #27470

@Fepaje

Description

@Fepaje

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

Hi,

for a lot (but not all) of my videos, playback in Immich stops after 1 second. Both, when hovering over it in the timeline or album view (after 1 second a red "i" symbol appears in the top right corner), and when viewing the preview/original video in the web interface. I can't even scrub the video timeline at all.

This is not a stuttering issue, playback completely stops. I'm connected locally without any reverse-proxy.

These videos are screen recordings generated by NVIDIA ShadowPlay, H264 .mp4 files, 5 minutes length, approx. 1 GB per file. They play without any warnings in VLC media player, even after re-downloading the file from Immich.

I tried to let Immich transcode them to fix this issue, but all transcoding settings I tried resulted in the same problem for the transcoded video.
I tried H264, HEVC, and VP9 with various CRF, preset, and maximum bitrate settings.

Are there any logs I can check or analysis I can do on the video files to check if something about them is corrupt? In any case, VLC plays them perfectly, so I believe Immich's web player should also be able to handle them, or at least a fresh transcode should be able to fix any compatibility issues that might occur.

The OS that Immich Server is running on

Docker on Synology DSM 7

Version of Immich Server

v2.6.1

Version of Immich Mobile App

n/a

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    volumes:
      - ${UPLOAD_LOCATION}:/data
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: unless-stopped
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: unless-stopped
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:9@sha256:3eeb09785cd61ec8e3be35f8804c8892080f3ca21934d628abc24ee4ed1698f6
    healthcheck:
      test: redis-cli ping || exit 1
    restart: unless-stopped

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: unless-stopped
    healthcheck:
      disable: false

volumes:
  model-cache:

Your .env content

UPLOAD_LOCATION=/volume2/immich/immich
DB_DATA_LOCATION=/volume1/docker/immich/database
TZ=Europe/Berlin
IMMICH_VERSION=v2
DB_PASSWORD=1234
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

  1. Fresh install of Immich
  2. Upload video via web interface drag & drop
  3. Video doesn't play
  4. Download video file -> plays fine with VLC media player

Relevant log output

Additional information

When hovering over a video, I see no errors in the Google Chrome console. The network tab shows the following video playback request, but no further requests or errors:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions