yellowcath / VideoProcessor

process video(cut & scale & increase & decrease & reverse) with mediacodec
Apache License 2.0
968 stars 141 forks source link

AVC编码规格问题 #36

Closed zhaowenliang closed 4 years ago

zhaowenliang commented 4 years ago

你好:

原本视频 Format profile : Baseline@L4 压缩后 Format profile : High@L4

最终造成压缩后视频比原本还大,我看在重新编码视频的代码里有配置

boolean supportProfileHigh = VideoUtil.trySetProfileAndLevel(mEncoder, mimeType, outputFormat, MediaCodecInfo.CodecProfileLevel.AVCProfileHigh, MediaCodecInfo.CodecProfileLevel.AVCLevel31 );

请问在手机上需要配置到高级别的规格吗?

zhaowenliang commented 4 years ago

补充,我也不知道跟这个有没有关系,但是压缩完视频确实比原视频还要大...