saki4510t / AudioVideoRecordingSample

Simultaneous audio and video recording sample using MediaCodec/MediaMuxer
Apache License 2.0
950 stars 291 forks source link

I want to add PreviewCallback #4

Open y3000y7 opened 8 years ago

y3000y7 commented 8 years ago

hello saki, thanks for your passion. I have a question. I want to add PreviewCallback in CameraGLView.

The following is what I have tried :

in CameraGLView.java screen shot 2015-07-21 at 12 59 37 pm

Callback is working well. But if i try to record, happened crash with this message.

07-21 13:02:23.193 19753-19764/com.serenegiant.mediaaudiotest E/AndroidRuntime﹕ FATAL EXCEPTION: FinalizerWatchdogDaemon Process: com.serenegiant.mediaaudiotest, PID: 19753 java.util.concurrent.TimeoutException: android.media.MediaMuxer.finalize() timed out after 10 seconds at android.media.MediaMuxer.nativeRelease(Native Method) at android.media.MediaMuxer.finalize(MediaMuxer.java:240) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:187) at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:170) at java.lang.Thread.run(Thread.java:841)

can you help me? sorry for my bad english, thank you.