Transcoder icon indicating copy to clipboard operation
Transcoder copied to clipboard

Slow cropping to 1:1 aspect ratio

Open buntupana opened this issue 4 years ago • 0 comments

I'm cropping a 90 seconds video with 19201080 resolution to a 10801080 video. It takes 50 seconds, is there any way to boost this?

This is the code I'm using:

        val strategy = DefaultVideoStrategy.Builder()
            .addResizer(AspectRatioResizer(1F / 1F)).build()

        Transcoder.into(videoName)
            .setVideoTrackStrategy(strategy)
            .setListener(listener)
            .addDataSource(sourcePath)
            .transcode()

buntupana avatar Apr 17 '20 22:04 buntupana