bitmap2video icon indicating copy to clipboard operation
bitmap2video copied to clipboard

java.lang.RuntimeException: format changed twice

Open masumjsr opened this issue 4 years ago • 1 comments

java.lang.RuntimeException: format changed twice at com.homesoft.encoder.FrameBuilder.drainCodec(FrameBuilder.kt:170) at com.homesoft.encoder.FrameBuilder.postCanvasFrame(FrameBuilder.kt:134) at com.homesoft.encoder.FrameBuilder.drawBitmapAndPostCanvas(FrameBuilder.kt:125) at com.homesoft.encoder.FrameBuilder.createFrame(FrameBuilder.kt:102) at com.homesoft.encoder.Muxer.mux(Muxer.kt:75) at com.homesoft.encoder.Muxer.muxAsync(Muxer.kt:93) at com.homesoft.bitmap2video.MainActivity$createVideoAsync$1.invokeSuspend(MainActivity.kt:142) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

masumjsr avatar Dec 31 '20 13:12 masumjsr

I am leaving here the solution so anyone who stumbles get a fix. the function createVideo(muxer) is called two times in MainAcitivity.kt file comment one of them and boom crash gone image

abdulmic avatar Oct 19 '23 09:10 abdulmic