MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 179 forks source link

Video Rotation only rotate resolution spec, not content #93

Open fchristysen opened 3 years ago

fchristysen commented 3 years ago

Hi, I'm currently trying to rotate GPUPlayerView using gpuPlayer.rotation = gpuPlayer.rotation - 90f The view is rotated correctly, but the video content being played is not rotated correctly instead stretch based on new rotated resolution. How can I correctly rotate the content?

BEFORE

Screenshot from 2021-11-22 13-06-02

AFTER

Screenshot from 2021-11-22 13-06-15

Some have suggested using app:surface_type="texture_view" for rotating exoplayer, but not sure how to do this with GpuPlayerView

Thanks!