VideoRecorder icon indicating copy to clipboard operation
VideoRecorder copied to clipboard

转换的速度有点慢

Open xu6148152 opened this issue 9 years ago • 2 comments

看看instagram 的视频录制速度很快。

xu6148152 avatar Jul 09 '15 08:07 xu6148152

可以尝试下用MedaiCodec来实时编码,而不是用ffmpeg。这样效率可能会快些。

xu6148152 avatar Jul 09 '15 08:07 xu6148152

调试的时候发现耗时操作在RecorderThread 的run方法的循环中, for(byteIndex = 0;byteIndex < mSize;byteIndex++){ mBytes[byteIndex] = mByteBuffer.get(pos + byteIndex); } ,日志显示每次循环耗时300-400ms左右,但是我发现在record的时候会有一些帧数据不能编码 avcodec_encode_video2() error -1: Could not encode video packet.这个还没解决,有没有探讨的 qq308599836

dpyinjie avatar Jan 13 '16 10:01 dpyinjie