-1

I have video which contains 700mb(5 min duration) size. I want to reduce the file size to less then 30 mb .

I have go through the FFMPEG blog and successfully run the samples. But the problem in that library is, it will take too much of time to compress a video file(146 mb take 20 minute). so looking for a good library or right path to achieve my requirement.

My application support from android api-9 and above.

Rakki s
  • 1,426
  • 1
  • 18
  • 42
  • You are aware that compressing video is one of the mist computation and i/o heavy things you can do on a smartphone? Yo might find libs that do a bit better, but unless there is hardware support in the device itself for reencoding, I doubt you will find substantial improvement. – Kai Mattern Feb 18 '15 at 07:51
  • Any how i have successfully compiled and added FFMPEG to my android device. but it did not works in some device which are don't have neon cpu (HTC v one ,Kyocera) i have posted as new question please suggest me http://stackoverflow.com/questions/29160063/ffmpeg-android-not-worked-in-the-non-neon-cpus – Rakki s Mar 20 '15 at 05:36

1 Answers1

1

The public APIs for access to hardware video codecs was added in API 16, though it didn't really stabilize until API 18. See the docs for the MediaCodec class. Some examples are available here.

For API 9+ you're generally limited to software solutions like ffmpeg.

fadden
  • 51,356
  • 5
  • 116
  • 166
  • I have tried FFMPEG but it takes too much of time to compress.. any other alternate solution is there. Because in whats app it simply do in a minute. – Rakki s Feb 17 '15 at 05:21
  • Any how i have successfully compiled and added FFMPEG to my android device. but it did not works in some device which are don't have neon cpu (HTC v one ,Kyocera) i have posted as new question please suggest me http://stackoverflow.com/questions/29160063/ffmpeg-android-not-worked-in-the-non-neon-cpus – Rakki s Mar 20 '15 at 05:36