immich-app / immich

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

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

Closed ishioni closed 1 year ago

ishioni commented 1 year ago

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

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

alextran1502 commented 1 year ago

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

alextran1502 commented 1 year ago

Dup of #3421