I want to reduce the video size with loss less quality, Is there any library, I have found telegram library but don't know how to use it.
Asked
Active
Viewed 1,025 times
1 Answers
1
If you really mean zero loss compression then you will need to compress with a codec that supports that.
There are ways to achieve lossless encoding with common codecs like h.264 and its open source version x264 - see this answer for an example: https://stackoverflow.com/a/18506577/334402
You will most likely need to use ffmpeg - the easiest way to use this on Android in my experience is via a wrapper library. This is one of the popular ones for example: https://github.com/WritingMinds/ffmpeg-android-java

Mick
- 24,231
- 1
- 54
- 120
-
Yes you can use this query..... {"-y","-i",inputPath.mp4,"-s","160x120","-r","25","-vcodec","mpeg4","-b:v","150k","-b:a","48000","ac","2","-ar","22050",output.mp4} – VikasSharmalp Sep 19 '19 at 08:26
-
it is giving very low quality video – Akash Manjhi Sep 20 '19 at 09:22