1

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Akash Manjhi
  • 123
  • 4
  • 13

1 Answers1

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