AbedElazizShe / LightCompressor

A powerful and easy-to-use video compression library for android uses MediaCodec API.
Apache License 2.0
535 stars 116 forks source link

During Compress Issue #76

Closed abhayjaiswal closed 3 years ago

abhayjaiswal commented 3 years ago

I am getting these logs in logcat but give the response in onSuccess() . Video is not compress when i got this logs

1st Logs:- /MediaExtractor: Trace connect 0x8e618e40 0x8dc4d4c0 /ACodec: [OMX.qcom.video.encoder.avc] configureCodec returning error -1010 /ACodec: signalError(omxError 0x80001001, internalError -1010) MediaCodec: Codec reported err 0xfffffc0e, actionCode 0, while in state 3 MediaCodec: configure failed with err 0xfffffc0e, resetting... E/Compressor: Error 0xfffffc0e

2nd Logs :- /MediaExtractor: Trace connect 0x933cc580 0x92d6b000 /ACodec: OMX.qcom.video.encoder.avc does not support profile 10000 @ level 10000 E/ACodec: [OMX.qcom.video.encoder.avc] configureCodec returning error -61 /ACodec: signalError(omxError 0x80001001, internalError -61) /MediaCodec: Codec reported err 0xffffffc3, actionCode 0, while in state 3 /MediaCodec: configure failed with err 0xffffffc3, resetting... /Compressor: Error 0xffffffc3

Nikki-Gunani commented 3 years ago

W/OMXUtils: do not know color format 0x7f000789 = 2130708361 E/ACodec: [OMX.google.h264.encoder] configureCodec returning error -61 E/MediaCodec: Codec reported err 0xffffffc3, actionCode 0, while in state 3 E/MediaCodec: configure failed with err 0xffffffc3, resetting... I/OMXClient: IOmx service obtained E/Compressor: Error 0xffffffc3 I/BpBinder: onLastStrongRef automatically unlinking death recipients: android.media.IResourceManagerService

And yet it call the onSuccess callback.. E/Compression: OnSuccess

AbedElazizShe commented 3 years ago

Sorry for late reply and thank you for opening the issue. The functionlity of this library depends alot on the device you're using. I'd appriciate if you can share which devices and which android version they're running so I can narrow down the cause. Thank you.

abhayjaiswal commented 3 years ago

Hi AbedElazizShe/LightCompressor

I am using oreo 8.1 and redmi device

On Sun, Jun 13, 2021, 12:19 PM Abed Elaziz Shehadeh < @.***> wrote:

Sorry for late reply and thank you for opening the issue. The functionlity of this library depends alot on the device you're using. I'd appriciate if you can share which devices and which android version they're running so I can narrow down the cause. Thank you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AbedElazizShe/LightCompressor/issues/76#issuecomment-860163025, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZGP4WRXVHUH2ZUWRAKQT3TSRIHJANCNFSM44YGYSWA .

AbedElazizShe commented 3 years ago

Thank you for the quick reply. Could you please try version 0.9.2 ?

abhayjaiswal commented 3 years ago

Yes I have latest version of library.

On Sun, Jun 13, 2021, 2:50 PM Abed Elaziz Shehadeh @.***> wrote:

Thank you for the quick reply. Could you please try version 0.9.1 ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AbedElazizShe/LightCompressor/issues/76#issuecomment-860180064, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZGP4XBSF3E47NYIR3J5J3TSRZ6TANCNFSM44YGYSWA .

AbedElazizShe commented 3 years ago

@abhayjaiswal thank you for the confirmation. I have tried on almost all devices on browserstack and couldn't reproduce the issue. Could you please do me a favor and try the sample apk in README, and let me know if the issue is happening?

You might as well share a sample video so I can try on my side. The issue could be related to a specific video configurations.

Thank you.

AbedElazizShe commented 3 years ago

Please try in version 0.9.3 and let me know if it is fixed.

shaktis110 commented 3 years ago

sir its not fixed same error on pixel 3a api 28 android 9

shaktis110 commented 3 years ago

even the demo apk not working getting same error as mentioned above

shaktis110 commented 3 years ago

Recorded videos are compressed, the problem is only with downloaded videos from internet

AbedElazizShe commented 3 years ago

Potential duplication of #81