jonataslaw / VideoCompress

Compress videos, remove audio, manipulate thumbnails, and make your video compatible with all platforms through this lightweight and efficient library.
MIT License
230 stars 279 forks source link

java.lang.IllegalStateException: Failed to stop the muxer #192

Open WeJeson opened 2 years ago

WeJeson commented 2 years ago

D/MPEG4Writer(29390): Duration from tracks range is [3819978, 3863500] us D/MPEG4Writer(29390): Stopping writer thread D/MPEG4Writer(29390): 0 chunks are written in the last batch D/MPEG4Writer(29390): Writer thread stopped E/TranscodeEngine(29390): Unexpected error while transcoding. E/TranscodeEngine(29390): java.lang.IllegalStateException: Failed to stop the muxer E/TranscodeEngine(29390): at android.media.MediaMuxer.nativeStop(Native Method) E/TranscodeEngine(29390): at android.media.MediaMuxer.stop(MediaMuxer.java:466) E/TranscodeEngine(29390): at com.otaliastudios.transcoder.sink.DefaultDataSink.stop(DefaultDataSink.java:218) E/TranscodeEngine(29390): at com.otaliastudios.transcoder.internal.transcode.DefaultTranscodeEngine.transcode(DefaultTranscodeEngine.kt:132) E/TranscodeEngine(29390): at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine$Companion.transcode(TranscodeEngine.kt:48) E/TranscodeEngine(29390): at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine.transcode(Unknown Source:2) E/TranscodeEngine(29390): at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:102) E/TranscodeEngine(29390): at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:99) E/TranscodeEngine(29390): at java.util.concurrent.FutureTask.run(FutureTask.java:266) E/TranscodeEngine(29390): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/TranscodeEngine(29390): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/TranscodeEngine(29390): at java.lang.Thread.run(Thread.java:919) I/Decoder(VIDEO,5)(29390): release(): releasing codec. dequeuedInputs=0 dequeuedOutputs=0 E/MediaMuxer(29390): stop() is called in invalid state 3 W/DefaultDataSink(29390): Failed to release the muxer.

sunyc1990 commented 2 years ago

same error

luvishq commented 2 years ago

same error , any updates ?

PaulBout1 commented 2 years ago

see PR: https://github.com/jonataslaw/VideoCompress/pull/189