LightCompressor icon indicating copy to clipboard operation
LightCompressor copied to clipboard

A powerful and easy-to-use video compression library for android uses MediaCodec API.

Results 60 LightCompressor issues
Sort by recently updated
recently updated
newest added

****Device : Redmi Note 10 Pro** Android Version12** 2022-08-12 18:52:08.419 16691-16691/com.sleetworks.serenity.android E/AndroidRuntime: FATAL EXCEPTION: main Process: com.sleetworks.serenity.android, PID: 16691 java.io.FileNotFoundException: /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video/Sent/VID-20220812-WA0009.mp4: open failed: EACCES (Permission denied) at libcore.io.IoBridge.open(IoBridge.java:574) at...

VideoCompressor.start(),now only pass URIs, I found that every time I compressed the video, the amount of data in the app increased dramatically, I'm guessing it's because of the sandbox path...

Cannot compress to ContextCompat.getDataDir(context) to not ask storage permission. In version 1.0.1 it worked without problems. Now it crashes: ``` java.lang.IllegalArgumentException: Primary directory (invalid) not allowed for content://media/external_primary/video/media; allowed directories...

Fixed

I've tested this on two devices Samsung A5 (Android 8) and Vivo Y31 (Android 12). On Samsung compression works but file not saved. On Vivo compression works and file saved...

Is there any way we can predict the size of output video before actual conversion happens?

I wonder if is there a way to change the video to GrayScale in order to reduce the video size even more

vote feature

I wonder if i can use your library to compress audio and create MP3 clips. Is that possible?

I have a file which is captured from samsung phone. Post compression the video does not play. It just shows a black screen. Compression works perfectly if the video is...

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/googlecode/mp4parser/util/Matrix; at com.abedelazizshe.lightcompressorlibrary.video.Mp4Movie.(Mp4Movie.kt:11) at com.abedelazizshe.lightcompressorlibrary.utils.CompressorUtils.setUpMP4Movie(CompressorUtils.kt:54) at com.abedelazizshe.lightcompressorlibrary.compressor.Compressor.start(Compressor.kt:174) at com.abedelazizshe.lightcompressorlibrary.compressor.Compressor.access$start(Compressor.kt:30) at com.abedelazizshe.lightcompressorlibrary.compressor.Compressor$compressVideo$2.invokeSuspend(Compressor.kt:134) at com.abedelazizshe.lightcompressorlibrary.compressor.Compressor$compressVideo$2.invoke(Unknown Source:8) at com.abedelazizshe.lightcompressorlibrary.compressor.Compressor$compressVideo$2.invoke(Unknown Source:4) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:169) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1) at com.abedelazizshe.lightcompressorlibrary.compressor.Compressor.compressVideo(Compressor.kt:53)...

java.lang.SecurityException: Permission Denial: reading com.miui.gallery.provider.GalleryOpenProvider uri content://com.miui.gallery.open/raw/%2Fstorage%2Femulated%2F0%2FDCIM%2FVideo%2F1637227610592.mp4 from pid=27557, uid=10580 requires the provider be exported, or grantUriPermission()