Tourenathan-G5organisation / SiliCompressor

A powerful, flexible and easy to use Video and Image compression library for Android.
Apache License 2.0
1.38k stars 292 forks source link

set bitrate not effected #92

Open MaboZZZ opened 5 years ago

MaboZZZ commented 5 years ago

public String compressVideo(String videoFilePath, String destinationDir, int outWidth, int outHeight, int bitrate)

use this method with defaultWidth & defaultHeight&mybitrate,but mybitrate not work,the video was not be compressed.how could i have the compressed video with defaultWidth&defaultHeight Only by change de bitrate?

mdskrumi commented 5 years ago

Having the same problem ...Custom Bitrate doesnt work.....keeps the video size same as before if custom bitrate is passed ... !!!!

saran2020 commented 4 years ago

This is the line, which causes the compression to fail, if we pass the same dimension of the origin with a custom bitrate.

https://github.com/Tourenathan-G5organisation/SiliCompressor/blob/7f359f37cc569082706f05f272a5761e4f6baa59/silicompressor/src/main/java/com/iceteck/silicompressorr/videocompression/MediaController.java#L347