[BUG] Motion photos with <1s length re-encoded wrong #1150

Closed
opened 2026-02-05 00:38:44 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @ishioni on GitHub (Jul 24, 2023).

The bug

I have a lot of motion photos which are short, sometimes less than 1s. It appears that those get extracted correctly, but when passed through ffmpeg, come out badly for some reason. My ffmpeg settings are unchanged from the default

I will include an example

The original image with MP embedded
The original image

The extracted video
https://github.com/immich-app/immich/assets/50323052/ff26d06a-b694-433f-94e4-ec582377152c

What immich actually tries to display
https://github.com/immich-app/immich/assets/50323052/269d6840-7f85-439c-b6f1-891f3b23a39c

The OS that Immich Server is running on

Talos 1.4.6

Version of Immich Server

1.69.0

Version of Immich Mobile App

1.69.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

1. Upload a short motion photo
2. The resulting motion video is borked both on web and mobile

Additional information

No response

Originally created by @ishioni on GitHub (Jul 24, 2023). ### The bug I have a lot of motion photos which are short, sometimes less than 1s. It appears that those get extracted correctly, but when passed through ffmpeg, come out badly for some reason. My ffmpeg settings are unchanged from the default I will include an example The original image with MP embedded ![The original image](https://github.com/immich-app/immich/assets/50323052/8bca8732-6396-40c7-8c9e-c60da9590115) The extracted video https://github.com/immich-app/immich/assets/50323052/ff26d06a-b694-433f-94e4-ec582377152c What immich actually tries to display https://github.com/immich-app/immich/assets/50323052/269d6840-7f85-439c-b6f1-891f3b23a39c ### The OS that Immich Server is running on Talos 1.4.6 ### Version of Immich Server 1.69.0 ### Version of Immich Mobile App 1.69.0 ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML N/A ``` ### Your .env content ```Shell N/A ``` ### Reproduction steps ```bash 1. Upload a short motion photo 2. The resulting motion video is borked both on web and mobile ``` ### Additional information _No response_
OVERLORD added the 🗄️server label 2026-02-05 00:38:44 +03:00
Author
Owner

@alextran1502 commented on GitHub (Jul 24, 2023):

@fourkbomb Can you help take a look at this when you have sometimes? Thank you

@alextran1502 commented on GitHub (Jul 24, 2023): @fourkbomb Can you help take a look at this when you have sometimes? Thank you
Author
Owner

@alextran1502 commented on GitHub (Aug 1, 2023):

Dup of #3421

@alextran1502 commented on GitHub (Aug 1, 2023): Dup of #3421
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1150