Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
linosgian opened this issue Aug 2, 2023 · 13 comments
Open
Labels
bug Something isn't working

Comments

@linosgian
Copy link

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 linosgian added the bug Something isn't working label Aug 2, 2023
@Radiokot
Copy link
Owner

Radiokot commented Aug 2, 2023

Hi. Could you please send me the example file?

@linosgian
Copy link
Author

linosgian commented Aug 3, 2023

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)

@Radiokot
Copy link
Owner

Radiokot commented Aug 3, 2023

Thanks, I've received your sample.

@Radiokot
Copy link
Owner

Radiokot commented Aug 5, 2023

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

@linosgian
Copy link
Author

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.

@Radiokot
Copy link
Owner

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?

@linosgian
Copy link
Author

I see, that makes sense.

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

@YoranSys
Copy link

YoranSys commented Sep 6, 2023

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

@Radiokot
Copy link
Owner

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

@isaranghi
Copy link

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....

@Radiokot
Copy link
Owner

Radiokot commented Feb 2, 2024

Sad :(

@langyxxl
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants