yrom / ScreenRecorder

Implement screen capture without root on Android 5.0+ by using MediaProjectionManager, VirtualDisplay, AudioRecord, MediaCodec and MediaMuxer APIs
1.86k stars 528 forks source link

加入音频录制启动报错 #21

Closed s3hengwu closed 6 years ago

s3hengwu commented 6 years ago

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x10 in tid 27082 (MediaCodec_loop) 机型:mx6 android7.0

yrom commented 6 years ago

详细的log有吗

s3hengwu commented 6 years ago

log就是我上面贴出来的这个

yintaibing commented 6 years ago

必现,也只有上面这个log 设备是oppo r9和一台魅族,均为android 5.0

yrom commented 6 years ago

这个log并不详细。。。 @s3hengwu

yintaibing commented 6 years ago

@s3hengwu @yrom BaseEncoder.prepare()方法,将82行 encoder.setCallback(this.mCallback == null ? null : mCodecCallback); 改为 if (mCallback != null) { encoder.setCallback(mCodecCallback); } 即可

s3hengwu commented 6 years ago

tim 20180522161850

s3hengwu commented 6 years ago

感谢作者, 按你的办法解决了