Sudharsan
Sudharsan

Reputation: 417

Is there any way to compress a video in Android native app?

I am working on an Android native application with video recording. Everything works like a charm but video uploading is very slow.

I'm using mp4parser for Pause/Record. I tried reference of Video compression API but I couldn't find anything.

Is there any way, I can implement the video compression. Your earliest response would be appreciated.

Thank you all!!!!

Upvotes: 3

Views: 2008

Answers (1)

andDev
andDev

Reputation: 66

If you are recording video with Intent you can use this flag:

intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); //1 for high and 0 for low quality.

About uploading?

How do you upload? via multipart-data ? I have an example for uploading that without any errors (OOM)

Upvotes: 1

Related Questions