Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to compress video on Android? [closed]

I want to do video compression.

Actually in my application I want to have two options, one is low and another is high. If I choose the low option then the application will compress the video and then upload it. If I choose high then it will upload the original video which I have recorded itself.

I want to do this thing in my application and I'm confused. I have searched google a lot but I'm not able to find the useful way to solve this question please if anyone can help me out.

like image 458
Jay Thakkar Avatar asked Jun 12 '12 07:06

Jay Thakkar


People also ask

How do I reduce the size of a video on Android?

Switching to the HD resolution or FHD resolution video resolution will reduce the file size by a huge margin. You should know that reducing the resolution will also reduce the overall quality of the video. So, to keep a balance between the quality and file size, we recommend using FHD resolution.

Can you compress a video file on Android?

Luckily, you can easily compress these videos on your Android phone using a video compressor app.

How do I compress a video that is too large?

Create a zip file. The most common way to compress a video is to convert it into a zip file. The file will be reduced in size, and the quality won't be affected. Although this is a fast and easy way to compress a video, you won't notice a huge change in file size.


2 Answers

I used ffmpeg4android,

And was able to achieve this in about 10min using only java, Note that its a commercial library.

like image 147
Eli Avatar answered Nov 17 '22 07:11

Eli


Yes in android you can us ffmpeg4android for compress video it's native library

Please check this link

ffmpeg4android Code

Install the Android NDK First to Use it

like image 25
Macdroid Solution Avatar answered Nov 17 '22 07:11

Macdroid Solution