immich-app / immich

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

Some videos are rotated 180° (upside down) in the Android app #11400

Open NuSuey opened 3 months ago

NuSuey commented 3 months ago

The bug

Hello, I've had many of my videos be rotated 180° in the android app. Seems it is happening for non-vertical videos (videos recorder from the phone are correct, videos recorded via my Insta360 GO 3 are not)

Watching them via the iOS app or on the web they are normally watchable.
The issue was happening also in the iOS app some versions earlier (seems to have been fixed in the recent versions).

I have tried to lower the resolution from 720p to also 480p (and deleting the encoded videos folder), but it didn't help, tried relogging, deleting data in the app and relog back if it's not just some problem with the app, but that didn't work either. Tried setting the Acceleration API to vaapi/disabled, hw decoding is off

I have seen that various posts about similar issues are closed, but this issue still occurs for me: https://github.com/immich-app/immich/issues/9252 https://github.com/immich-app/immich/issues/10498

The OS that Immich Server is running on

Arch

Version of Immich Server

v1.110.0

Version of Immich Mobile App

v1.110.0

Platform with the issue

Your docker-compose.yml content

default

Your .env content

default

Reproduction steps

See above

Relevant log output

[Nest] 7  - 07/26/2024, 7:15:53 PM     LOG [Microservices:MediaService] Started encoding video aa58f7d7-edfb-41fc-9052-e436a70ee955 {"inputOptions":[],"outputOptions":["-c:v h264","-c:a aac","-movflags faststart","-fps_mode passthrough","-map 0:0","-map 0:1","-v verbose","-vf scale=480:-2,format=yuv420p","-preset ultrafast","-crf 23"],"twoPass":false

Additional information

No response

BjGoCraft commented 3 months ago

I experience the same. I recorded a video with the GoPro Max and the camera was mounted upside down. If I watch the videos directly from the SD card they are fine. I uploaded them to Immich via the web app and in the web app they are also fine, but when I look at the video from within the Android app, it is flipped 180°. This is a sample video where it is happening: https://github.com/user-attachments/assets/3eb368ed-2828-470a-aa05-bd1d0afa02f0 I'm also on version v1.110.0.

BjGoCraft commented 2 months ago

On version 1.111.0 all videos are normal again. I also re encoded all my videos recently, so I don't know which of these two solved the problem for me, but I hope it's the update.

NuSuey commented 2 months ago

Well I am also on 1.111.0 but the videos are still broken as posted before, I tried to login, logout back, also re-encode them all (deleting the encoding video folder), nothing helped

bram-pkg commented 2 months ago

This is still happening for me. Let me know if I should provide any data.

danieldietzler commented 1 month ago

An example image would certainly be much appreciated, yes please! Ideally in a zip archive :)

NuSuey commented 1 month ago

Seems the issue was fixed in the recent versions of immich, or at least I am not encountering that issue anymore. Gonna leave it open if some other folks still don't have the issue