-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Aspect ratio broken after switching between different resolution/aspect ratio videos #6646
Comments
Please can you more clearly describe each of the three cases, what happens, and importantly, what you expect to happen? It's not clear from the description above. It's also unclear what you're passing to |
@ojw28, first of all, everything is happening with default aspect ratio in Exoplayer (without setting any PlayerView.setResizeMode) and switching happens without going back to the video list - I am just zapping through videos.
It seems that the scaling mode from previous video passes to a new video. It might happen because the resolution of both videos is 720x576, while aspect ratio differs. Please let me know if it's still unclear, so I can make a video of how it should be and how it happens. |
Thanks! I can reproduce this. You're right - What's happening is that the two videos have the same resolution, but have different pixel aspect ratios. In @Samrobbo - I think the work you're doing in
|
For example, fix handling of pixel aspect ratio changes in playlists where video resolution does not change. Issue:#6646 PiperOrigin-RevId: 281276023
Note: e26a61b appears to cause unexpected changes to the ordering of video renderer events so will be rolled back. We plan to investigate and hopefully submit a fixed version soon. |
*** Original commit *** Improve `Format` propagation within the `MediaCodecRenderer`. For example, fix handling of pixel aspect ratio changes in playlists where video resolution does not change. Issue:#6646 *** PiperOrigin-RevId: 282903626
@ojw28, is there any chance you could look into this issue for the next update? It seems to cause various problems on chinese Android boxes, when switching videos with different resolution (not only aspect ratio). Thanks! |
Handles pixel aspect ratio changes in playlists where video resolution does not change. Issue:#6646 PiperOrigin-RevId: 307817028
Commit 37f0ff9 should have resolved this issue. Let me know if you experience any further issues with this. |
When switching from 720x576 16:9 aspect video (aspect2.ts) to 720x576 4:3 aspect video (aspect3.ts), the 4:3 aspect video is stretched on the sides and cannot be scaled by playerView.setResizeMode. Afterwards, after switching to 1280x720 16:9 aspect video (aspect1.ts), then again to 4:3 aspect video, the aspect ratio is fixed on the 4:3 aspect video, but if we then switch to 720x576 16:9 aspect video (aspect2.ts), the 16:9 video is squeezed and cannot be scaled by playerView.setResizeMode again. You can then switch it to 1280x720 16:9 video and back to fix it again.
2.10.7
Nexus Player, Sony Android TV, Fire TV although it works correctly on nVidia Shield TV somehow.
The text was updated successfully, but these errors were encountered: