jonataslaw / VideoCompress

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

Getting this error on compressing video obtained after trimming using the flutter package video_trimmer. #83

Open harjotsingh1999 opened 3 years ago

harjotsingh1999 commented 3 years ago

E/Transcoder( 9380): Fatal error while transcoding, this might be invalid format or bug in engine or Android. E/Transcoder( 9380): java.lang.IllegalArgumentException E/Transcoder( 9380): at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:214) E/Transcoder( 9380): at com.otaliastudios.transcoder.source.UriDataSource.applyRetriever(UriDataSource.java:33) E/Transcoder( 9380): at com.otaliastudios.transcoder.source.DefaultDataSource.ensureMetadata(DefaultDataSource.java:41) E/Transcoder( 9380): at com.otaliastudios.transcoder.source.DefaultDataSource.getLocation(DefaultDataSource.java:138) E/Transcoder( 9380): at com.otaliastudios.transcoder.engine.Engine.transcode(Engine.java:316) E/Transcoder( 9380): at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:134) E/Transcoder( 9380): at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:124) E/Transcoder( 9380): at java.util.concurrent.FutureTask.run(FutureTask.java:266) E/Transcoder( 9380): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/Transcoder( 9380): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/Transcoder( 9380): at java.lang.Thread.run(Thread.java:919)

The thumbnail generation method works fine on the same file.

BilalPervez commented 3 years ago

I'm facing same issue Any update?

harjotsingh1999 commented 3 years ago

@BilalPervez not yet.

RenanDelfanti commented 3 years ago

Same issue here

Abacaxi-Nelson commented 3 years ago

same here.

BilalPervez commented 3 years ago

Guy you need to compress the video first then trim it, this is only solution that get right now to get rid of this problem.

ajosecueto commented 3 years ago

same issue

BilalPervez commented 3 years ago

@ajosecueto did you try to compress it first and then apply trimming on it and still facing the same issue?

ajosecueto commented 3 years ago

@BilalPervez Really i'm able to compress without problem using a real device, that happens only in android emulator... i think is because the path where video trimming is not full accessible... idk

ZaidrazaNarsinh commented 3 years ago

Guy you need to compress the video first then trim it, this is only solution that get right now to get rid of this problem. I was finding the solution since last 2 days but this worked for me.. Thank man!