AbedElazizShe / light_compressor

A powerful and easy-to-use video compression plugin for Flutter.
MIT License
59 stars 32 forks source link

Release mode fails on android #7

Closed arashbi closed 3 years ago

arashbi commented 3 years ago

When I try to run the example application on android in release mode - flutter run --release; it gives me an exception

Flutter run key commands. h Repeat this help message. c Clear the screen q Quit (terminate the application on the device). I/flutter ( 7589): MissingPluginException(No implementation found for method listen on channel compression/stream) I/flutter ( 7589): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156) I/flutter ( 7589): I/flutter ( 7589): #1 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:545) I/flutter ( 7589):

And the application freezes after selecting a video

AbedElazizShe commented 3 years ago

@arashbi have you tried to add the following to app/build.gradle release build type configuration ? shrinkResources false minifyEnabled false

arashbi commented 3 years ago

No, I was just trying to see what is the maximum speed I can get from it. It doesn't seem too fast. A one minute video takes like 40 second to finish compression. I wonder how telegram application manages to compress video in a short time

AbedElazizShe commented 3 years ago

Last time I checked, Telegram does not compress the videos, is there some kind of settings in Telegram to compress? So I can test the speed.

This library does not give good performance when the video is long in duration or small in bitrate (possible when the video has been compressed before by whatsapp for example).

arashbi commented 3 years ago

In telegram, after picking a video, you can press the gear button, and choose the compression level

On Fri, Apr 30, 2021, 12:54 PM Abed Elaziz Shehadeh < @.***> wrote:

Last time I checked, Telegram does not compress the videos, is there some kind of settings in Telegram to compress? So I can test the speed.

This library does not give good performance when the video is long in duration or small in bitrate (possible when the video has been compressed before by whatsapp for example).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AbedElazizShe/light_compressor/issues/7#issuecomment-830227639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADM3FJEUR2NY3KCJXYSX33TLLOD7ANCNFSM42R5BRYA .