Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical Videos Squishing and Streching #15187

Open
1 of 3 tasks
cfitzw opened this issue Jan 9, 2025 · 3 comments
Open
1 of 3 tasks

Vertical Videos Squishing and Streching #15187

cfitzw opened this issue Jan 9, 2025 · 3 comments

Comments

@cfitzw
Copy link
Contributor

cfitzw commented Jan 9, 2025

The bug

For any of my uploaded videos (remote), when holding my phone vertically and opening a vertical video, right before it plays, it squishes down to landscape/horizontal (as if it was a landscape video).

If I hold my phone horizontal, right before it plays, the vertical videos gets stretched to the width of the screen.

This is happening on all videos on multiple iOS phones.

The OS that Immich Server is running on

Ubuntu 20.04.6

Version of Immich Server

v1.124.2

Version of Immich Mobile App

v1.124.2

Platform with the issue

  • Server
  • Web
  • Mobile

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}:/usr/src/app/upload
      - /mnt/nas/media/photos/<user>/iphone:/mnt/media/<user>/iphone
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    env_file:
      - .env
    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
    healthcheck:
      test: >-
        pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
        Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
        --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
        echo "checksum failure count is $$Chksum";
        [ "$$Chksum" = '0' ] || exit 1
      interval: 5m
      start_interval: 30s
      start_period: 5m
    command: >-
      postgres
      -c shared_preload_libraries=vectors.so
      -c 'search_path="$$user", public, vectors'
      -c logging_collector=on
      -c max_wal_size=2GB
      -c shared_buffers=512MB
      -c wal_compression=on
    restart: always

volumes:
  model-cache:

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/nas/appdata/immich/uploads
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=****************************************************

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

  1. Open app on iPhone

  2. Hold phone vertically

  3. Locate a vertical video that is remote only (not currently on iPhone)

  4. Play video

  5. See is squish down

  6. Open app on iPhone

  7. Hold phone horizontally

  8. Locate a vertical video that is remote only (not currently on iPhone)

  9. Play video

  10. See is stretch out
    ...

Relevant log output

No response

Additional information

I don't know exactly when this issue started, I've been on Immich for quite some time now, but I do know this used to work just fine. My best guess would be within the last 3-5 minor releases.

trim.FD8025E5-ACA7-4FFB-A476-1EF3ECA4B393.MOV
trim.956E2413-ECC8-435D-82E9-C618A98E6972.MOV
@cfitzw cfitzw changed the title Vertial Videos Squishing and Streching Vertical Videos Squishing and Streching Jan 9, 2025
@alextran1502
Copy link
Contributor

Sign out and sign back in will fix this issue (one time thing)

@cfitzw
Copy link
Contributor Author

cfitzw commented Jan 9, 2025

The issue persists, even after signing out and back in.

@alextran1502
Copy link
Contributor

Can you export and share the fireworks video, please?

What are your video transcoding settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants