giejay / Immich-Android-TV

An Android TV app for the self hosted photos and videos backup solution.
GNU General Public License v3.0
234 stars 10 forks source link

[BUG] Vertical videos rotated and stretched #7

Open andrzej-r opened 9 months ago

andrzej-r commented 9 months ago

Describe the bug Vertical videos are displayed on a vertical canvas (correct) but are rotated 90Deg CCW and stretched vertically to fill the canvas.

To Reproduce Steps to reproduce the behavior:

  1. Play back a video that was recorded on a mobile phone held vertically

Expected behavior The canvas orientation is correct but the video content should not be rotated, in which case vertical stretching would not be needed.

My setup (please complete the following information):

giejay commented 9 months ago

Could you please upload an example video to this album? https://giejay-immich.duckdns.org/share/MW5mEqx2jClEEwLeZuQvBVL28MwwJCeJchXvBjyK5MvA_jEU693CdI1lmRPLc_BmBCU Password: vertical

andrzej-r commented 9 months ago

Done.

There is also a minor issue with the preview thumbnail - it is displayed horizontally (orientation is correct, the image looks zoomed in).

giejay commented 9 months ago

Hmm. For me, it's playing it like this:

image

That's fine right? For you it's 90 degrees turned?

andrzej-r commented 9 months ago

Yes, your screenshot looks correct (same as in the web or android Immich app). On my TV however the canvas shape is the same but the contents is rotated 90Deg CCW and video is stretched to fit the canvas.

giejay commented 9 months ago

Ah yes, this was a screenshot from an emulator using Android 11. When using my Sony Bravia with Android 9, I see your issue. I had the exact same issue when playing the media with Plex, some time ago so not sure if there's a solution. I will do some research

giejay commented 9 months ago

I upgraded the exoplayer dependency to use media3, but the issue persists. I didnt find another solution yet so I will probably open a GitHub issue at the media3 repo

ATG-rd commented 3 months ago

Hi, have you perhaps received any feedback/update from media3? Thanks

kkmaslowski commented 2 months ago

It's known bug in Immich: https://github.com/immich-app/immich/issues/2130