My code used to work before but recently I started getting the following error, Please help me find what I did wrong
Code Snippet:
val muxerConfig = MuxerConfig(file, width!!, height!!, "video/avc", 1, 30F, 1500000)
val muxer = Muxer(this@MainActivity, muxerConfig!!)
muxer.mux(imageArray)
muxer.setOnMuxingCompletedListener(object : MuxingCompletionListener {
override fun onVideoSuccessful(file: File) {
Log.d("video", "Video muxed - file path: ${file.absolutePath}")
}
override fun onVideoError(error: Throwable) {
Log.d("video", "There was an error muxing the video")
}
})
Thread(Runnable {
muxer.mux(imageArray)
}).start()
Error:
E/FrameEvents( 4642): updateAcquireFence: Did not find frame.
D/CCodecBufferChannel( 4642): [c2.qti.avc.encoder#227] DEBUG: elapsed: n=8 [in=0 pipeline=0 out=4 smoothness=4]
D/PipelineWatcher( 4642): DEBUG: elapsed 0 / 8
17
E/FrameEvents( 4642): updateAcquireFence: Did not find frame.
D/OplusCCodec( 4642): initiateShutdown [203]: (0x6fc1a3afc0) keepComponentAllocated=1
D/OplusCCodec( 4642): initiateShutdown [203]: (0x6fc1a3afc0) keepComponentAllocated=0
I/hw-BpHwBinder( 4642): onLastStrongRef automatically unlinking death recipients
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): Failed to handle method call
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): kotlin.KotlinNullPointerException
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at com.homesoft.encoder.FrameBuilder.muxAudioFrames(FrameBuilder.kt:215)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at com.homesoft.encoder.Muxer.mux(Muxer.kt:82)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at com.homesoft.encoder.Muxer.mux$default(Muxer.kt:60)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at com.example.lottie_test.MainActivity.configureFlutterEngine$lambda-1(MainActivity.kt:68)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at com.example.lottie_test.MainActivity.lambda$QOk71ErInm8NhBDi7hWbf--RR0s(Unknown Source:0)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at com.example.lottie_test.-$$Lambda$MainActivity$QOk71ErInm8NhBDi7hWbf--RR0s.onMethodCall(Unknown Source:2)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at android.os.MessageQueue.next(MessageQueue.java:339)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at android.os.Looper.loop(Looper.java:198)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at android.app.ActivityThread.main(ActivityThread.java:8265)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
E/MethodChannel#com.example.lottie_test/videoMaker( 4642): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)
I/Choreographer( 4642): Skipped 328 frames! The application may be doing too much work on its main thread.
D/OplusCCodec( 4642): ~OplusCCodec [119]: (0x6fc1a3afc0)
I/flutter ( 4642): Failed to Invoke: 'null'.
My code used to work before but recently I started getting the following error, Please help me find what I did wrong
Code Snippet:
Error:
Full Log: