photoprism-android-client icon indicating copy to clipboard operation
photoprism-android-client copied to clipboard

Videos taken in portrait mode are not rotated properly on Android TV

Open linosgian opened this issue 1 year ago • 14 comments

What is wrong? Any video on an Android TV, plays back stretched and not rotated to fit on the screen. The same videos work fine on several android phones I've tried.

To Reproduce Steps to reproduce the behavior:

  1. Sideload the apk on an Android TV
  2. Play any video taken in portrait

Expected behavior The video plays as it was taken, same way it does on an android phone.

Screenshots IMG20230802163940

Device (please complete the following information):

  • Model: TCL 55EP660
  • Android version: 9

linosgian avatar Aug 02 '23 13:08 linosgian

Hi. Could you please send me the example file?

Radiokot avatar Aug 02 '23 14:08 Radiokot

I've looked into this a little more, and it looks like that if I try to play any video taken in portrait, it becomes streched as shown in the screenshot. If I then press the back button and retry to view, the video plays back as it's supposed to (in the correct orientation). Then same can be done by moving to another video/photo and back to the video I'm trying to play.

An email should be coming your way with a sample (used WeTransfer so the link will remain valid for a week)

linosgian avatar Aug 03 '23 12:08 linosgian

Thanks, I've received your sample.

Radiokot avatar Aug 03 '23 20:08 Radiokot

So far, I have not been able to reproduce the issue on my devices, but I'll keep it in mind.

Radiokot avatar Aug 05 '23 08:08 Radiokot

Quick update: I've recently got my hands on a Nvidia Shield, which is more powerful than my TV, and I can't reproduce this issue on it.

linosgian avatar Aug 31 '23 09:08 linosgian

When I searched for a potential cause of the issue, other developers blamed device-specific video codecs that can't handle rotation metadata properly. Maybe modern codecs on phones and NVIDIA SHIELD have the proper handling.

Was it easy to install the app on this device?

Radiokot avatar Aug 31 '23 09:08 Radiokot

I see, that makes sense.

Yeah, as easy as any android TV, I sideloaded it just fine with a USB stick.

linosgian avatar Aug 31 '23 09:08 linosgian

Hello, I have the same issue with a Sony Bravia 2023 TV.

YoranSys avatar Sep 06 '23 06:09 YoranSys

Hey @YoranSys and @linosgian, the latest release has the player library updated, which may fix the issue. Consider checking it out.

Radiokot avatar Jan 16 '24 21:01 Radiokot

I just tried that on Fire TV stick and same issue... portrait video not getting rotated properly..... I tried browsing my photoprism library on Web on FireTV and that is working fine....

isaranghi avatar Feb 02 '24 20:02 isaranghi

Sad :(

Radiokot avatar Feb 02 '24 21:02 Radiokot

Hello, I have the same issue with a Sony 65X91J XR TV. I find something different, I use scrcpy from my mac to remote control tv, the scrcpy's screen on mac rotation is correct, at the samtime the screen on tv show rotation is wrong. Maybe tv problem?

langyxxl avatar Mar 13 '24 02:03 langyxxl

This problem can be fixed use a external player like mpv-android

langyxxl avatar May 14 '24 06:05 langyxxl

Guys, we've moved to a new apartment, and it has Toshiba Android TV with the same stupid bug 🥲 Now I have the ability to investigate it in person. image

Radiokot avatar Sep 17 '24 19:09 Radiokot