MasayukiSuda/Mp4Composer-android

Stretched border when cropping from landscape to portrait

alexhorsa opened this issue · 1 comments

Hi, I am trying to crop a video from 1280x720 to 404x720 (same aspect ratio but portrait).

The result is a video with a small stretched margin in the right side. (See picture)
crop-404x720

I did used FillMode.CUSTOM but with scale 1, translation 0. Same thing with other fill modes.

Any idea what is happening?

The problem was caused by not using SurfaceTexture.getTransformMatrix() when rendering the video. It's not an issue with the library