Transcoder icon indicating copy to clipboard operation
Transcoder copied to clipboard

File Size is increased after transcode in some phones ex:Samsung S8 Device

Open rajkumarsavu opened this issue 4 years ago • 0 comments

Actually I have uploaded 206MB video to transcode it gives 900MB video back as a result. Please find below strategy which I have used

                   DefaultVideoStrategy mTranscodeVideoStrategy = new DefaultVideoStrategy.Builder()
                    .addResizer(new AspectRatioResizer(16F / 9F))
                    .addResizer(new FractionResizer(1F))
                    .frameRate(24)
                    .bitRate(Math.min(Integer.parseInt(s), 1000000))
                    .keyFrameInterval(100)
                    .build(); 

======================================================

                    mTranscodeFuture = Transcoder.
                    into(file.getAbsolutePath())
                    .addDataSource(context, mediaUri)
                    .setVideoTrackStrategy(mTranscodeVideoStrategy)
                    .transcode();

=========================================================

please help me out thank you in advance.

rajkumarsavu avatar Mar 25 '20 07:03 rajkumarsavu