MediaResizer
MediaResizer copied to clipboard
Video Compression is not working when using VideoResolutionType.AS960
Original Video: 1920 × 1080, H.264, AAC, Duration 2 min: 35secs , 90.4 MB
VideoResizeOption resizeOption = new VideoResizeOption.Builder() .setVideoResolutionType(VideoResolutionType.AS720) .setVideoBitrate(1000 * 1000) .setAudioBitrate(128 * 1000) .setAudioChannel(1) .setScanRequest(ScanRequest.TRUE) .build();
**Video output file 9.5 MB, Dimension 1280 × 720 **
VideoResizeOption resizeOption = new VideoResizeOption.Builder() .setVideoResolutionType(VideoResolutionType.AS960) .setVideoBitrate(1000 * 1000) .setAudioBitrate(128 * 1000) .setAudioChannel(1) .setScanRequest(ScanRequest.TRUE) .build();
**Video output file 44.1 MB, Dimension 960 × 540 **