MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 178 forks source link

com.daasuu.gpuv.camerarecorder.capture.MediaEncoder.drain #83

Open shivangbtech opened 3 years ago

shivangbtech commented 3 years ago

com.daasuu.gpuv.camerarecorder.capture.MediaEncoder.drain

MediaEncoder.java, line 274

java.lang.IllegalStateException: java.lang.IllegalStateException

android.media.MediaCodec.native_dequeueOutputBuffer MediaCodec.java android.media.MediaCodec.dequeueOutputBuffer MediaCodec.java:2789 com.daasuu.gpuv.camerarecorder.capture.MediaEncoder.drain MediaEncoder.java:274 com.daasuu.gpuv.camerarecorder.capture.MediaEncoder.run MediaEncoder.java:132 java.lang.Thread.run Thread.java:919

Device: moto e(7) power OS: 10

Related issues on google: https://github.com/saki4510t/AudioVideoRecordingSample/issues/10 https://ask.csdn.net/questions/5610196

I am facing the above issue on some devices, I tried to find the solution but I didn't get the solution. Can anybody please help to fix it?

hebangwen commented 3 years ago

com.daasuu.gpuv.camerarecorder.capture.MediaEncoder.drain

MediaEncoder.java, line 274

java.lang.IllegalStateException: java.lang.IllegalStateException

android.media.MediaCodec.native_dequeueOutputBuffer MediaCodec.java android.media.MediaCodec.dequeueOutputBuffer MediaCodec.java:2789 com.daasuu.gpuv.camerarecorder.capture.MediaEncoder.drain MediaEncoder.java:274 com.daasuu.gpuv.camerarecorder.capture.MediaEncoder.run MediaEncoder.java:132 java.lang.Thread.run Thread.java:919

Device: moto e(7) power OS: 10

Related issues on google: saki4510t/AudioVideoRecordingSample#10 https://ask.csdn.net/questions/5610196

I am facing the above issue on some devices, I tried to find the solution but I didn't get the solution. Can anybody please help to fix it?

Hi, @shivangbtech. I'm trying to record a 60fps video in Mi 11 pro and Honor V30 pro. I also encountered this problem. The fact is that my programe throw out this exception. But it can still run with this exception caught. So I want to ask you whether you have solved this problem after several months.