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

Failed to stop the muxer #191

Open Amitzala143 opened 2 years ago

Amitzala143 commented 2 years ago

I am facing this issue while compressing video recorded by. camera android 9

W/DefaultDataSink(13524): Failed to release the muxer. W/DefaultDataSink(13524): java.lang.IllegalStateException: Failed to stop the muxer W/DefaultDataSink(13524): at android.media.MediaMuxer.nativeStop(Native Method) W/DefaultDataSink(13524): at android.media.MediaMuxer.stop(MediaMuxer.java:486) W/DefaultDataSink(13524): at android.media.MediaMuxer.release(MediaMuxer.java:726) W/DefaultDataSink(13524): at com.otaliastudios.transcoder.sink.DefaultDataSink.release(DefaultDataSink.java:224) W/DefaultDataSink(13524): at com.otaliastudios.transcoder.internal.transcode.DefaultTranscodeEngine.cleanup(DefaultTranscodeEngine.kt:137) W/DefaultDataSink(13524): at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine$Companion.transcode(TranscodeEngine.kt:63) W/DefaultDataSink(13524): at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine.transcode(Unknown Source:2) W/DefaultDataSink(13524): at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:102) W/DefaultDataSink(13524): at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:99) W/DefaultDataSink(13524): at java.util.concurrent.FutureTask.run(FutureTask.java:266) W/DefaultDataSink(13524): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) W/DefaultDataSink(13524): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

RajSolai commented 2 years ago

Stuck with same Issue

isyedaliraza commented 2 years ago

Hi, there I am having the same issue. It was working fine last night but now it is giving this error.

isyedaliraza commented 2 years ago

Is there any update on this? Did anyone fix this issue?

Amitzala143 commented 2 years ago

Is there any update on this? Did anyone fix this issue?

no i didn't. find yet

mbfakourii commented 2 years ago

@jonataslaw You may check this issue, it is very important

WeJeson commented 2 years ago

hi bro,have you sovled it?

isyedaliraza commented 2 years ago

For me, the issue was not solved and I solved it by shifting to ffmpeg_kit_flutter package.

nixrajput commented 2 years ago

Getting the same error, but it's working fine with includeAudio option false.

var info = await VideoCompress.compressVideo(
    videoFile.path,
    deleteOrigin: false,
    includeAudio: false,
    quality: VideoQuality.DefaultQuality,
);

Has anyone solved this issue??

PaulBout1 commented 2 years ago

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