Log encoder name
When the encoder is selected automatically, log the name of the selected encoder.
This commit is contained in:
parent
76c2c6e69d
commit
363eeea19e
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,9 @@ public class ScreenEncoder implements Device.RotationListener {
|
||||||
Ln.d("Creating encoder by name: '" + encoderName + "'");
|
Ln.d("Creating encoder by name: '" + encoderName + "'");
|
||||||
return MediaCodec.createByCodecName(encoderName);
|
return MediaCodec.createByCodecName(encoderName);
|
||||||
}
|
}
|
||||||
return MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_VIDEO_AVC);
|
MediaCodec codec = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_VIDEO_AVC);
|
||||||
|
Ln.d("Using encoder: '" + codec.getName() + "'");
|
||||||
|
return codec;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setCodecOption(MediaFormat format, CodecOption codecOption) {
|
private static void setCodecOption(MediaFormat format, CodecOption codecOption) {
|
||||||
|
|
Loading…
Reference in a new issue