|
|
|
@ -368,6 +368,7 @@ public class DeviceEncoders { |
|
|
|
|
MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface); |
|
|
|
|
format.setInteger(MediaFormat.KEY_BIT_RATE, bitRate); |
|
|
|
|
format.setInteger(MediaFormat.KEY_FRAME_RATE, frameRate); |
|
|
|
|
format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1); |
|
|
|
|
codec = MediaCodec.createByCodecName(mVideoEncoder.getName()); |
|
|
|
|
codec.configure(format, null, null, |
|
|
|
|
MediaCodec.CONFIGURE_FLAG_ENCODE); |
|
|
|
|