VideoCompressor icon indicating copy to clipboard operation
VideoCompressor copied to clipboard

压缩

Open chuxiaokeAndroid opened this issue 6 years ago • 1 comments

压缩比例可以设置吗

chuxiaokeAndroid avatar Nov 20 '18 06:11 chuxiaokeAndroid

影响视频大小主因为比特率,考虑更改VideoController.java中的设置 switch (quality) { default: case COMPRESS_QUALITY_HIGH: resultWidth = originalWidth * 2 / 3; resultHeight = originalHeight * 2 / 3; bitrate = resultWidth * resultHeight * 30; break; case COMPRESS_QUALITY_MEDIUM: resultWidth = originalWidth / 2; resultHeight = originalHeight / 2; bitrate = resultWidth * resultHeight * 10; break; case COMPRESS_QUALITY_LOW: resultWidth = originalWidth / 2; resultHeight = originalHeight / 2; bitrate = (resultWidth/2) * (resultHeight/2) * 10; break; }

shue1993 avatar Nov 21 '18 03:11 shue1993