ScreenRecordingSample icon indicating copy to clipboard operation
ScreenRecordingSample copied to clipboard

Simultaneous audio and screen recording sample using MediaCodec/MediaMuxer/VirtualDisplay

Results 19 ScreenRecordingSample issues
Sort by recently updated
recently updated
newest added

requestDraw always is true

`protected void drain() { if (mMediaCodec == null) return; try { ByteBuffer[] encoderOutputBuffers = mMediaCodec.getOutputBuffers(); int encoderStatus, count = 0; final MediaMuxerWrapper muxer = mWeakMuxer.get(); if (muxer == null) {...

The native memory size keeps increasing while running. Is there any allocation that has not been properly deallocated?

Thank you for your share , great help for understanding how the stuff works .

All my video records have first black frames.

After resuming, perhaps buffer still contains old image data. So old image and new images are merged. You can see in below link. https://www.youtube.com/watch?v=52H3iliSFxo

Can use auto orientation like in this app https://github.com/Tornaco/ScreenRecorder/tree/master/app/src/main/java/dev/nick/app/screencast/cast

here is my solution: replace a method at MediaVideoEncoderBase ` protected MediaFormat create_encoder_format1(final String mime, final int frame_rate, final int bitrate) { if (DEBUG) Log.v(TAG, String.format("create_encoder_format:(%d,%d),mime=%s,frame_rate=%d,bitrate=%d", 720, 1280, mime, frame_rate,...