AbedElazizShe / LightCompressor

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

Remove audio :( #114

Closed resistance1404 closed 2 years ago

resistance1404 commented 2 years ago

Hi. i use your library in my project but when see the result of compressed file the file has not sound. why? my configuration is : VideoQuality.MEDIUM,24,false,null,false,false,null,null

AlirezaGhanbarinia commented 2 years ago

"Configuration" class has many parameters , if you set true for "disable Audio" parameter ,you removed the video sound,please carefully set value for input parameters , and read below document

https://github.com/AbedElazizShe/LightCompressor#configuration-values

AbedElazizShe commented 2 years ago

Thank you @AlirezaGhanbarinia.

@resistance1404 can you share the following in case the problem is something else:

Thank you.

monali0521 commented 2 years ago

I got the same issue, audio is gone after compression in some videos though I set false to disable Audio parameter.

I have attached the video. and it is reproducing in different devices and android versions.

https://user-images.githubusercontent.com/87650116/152482582-7f5b9a6f-fe1c-40f6-a38e-847ec50b5ef0.mp4

vandat0599 commented 2 years ago

Facing the same issue. May I know if this issue is already fixed or not?

nikbagde commented 2 years ago

I'm also facing the same issue, after compression sound is gone. I guess it is causing only with java coding, with kotlin it is working fine.

hientranea commented 2 years ago

Getting the same issue here. I used the video @monali0521 provided and the compressed file has no sound

Btw, we also got the warning from QuickTime Player when trying to play the output file: This file contains some media which isn’t compatible with QuickTime Player.

AbedElazizShe commented 2 years ago

Hello @monali0521 @vandat0599 @nikbagde @hientranea, thank you for the details and I apologise for the late reply.

The problem is related to mono vs stereo types. I have fixed the issue and will release 1.2.0 shortly. Please let me know if it is fixed.

k41ed commented 2 years ago

not fixed