I want to compress video using LZ4 library into my android application. I am using this library to compress my video file. Please help me to implement it correctly or suggest me any best alternative so that compression time should be fast. I have also tried with ffmpeg but it take too long time to compress video. Thanks in advance.
Related
I am building an application in which I need to trim videos. It is possible to do this using ffmpeg, but I can't use it because it uses the gpl license.
I tried using mediaCodec but can't use the codes I found.
How can i trim videos on android?
I had to develop trim functionality into my app a few months back and found that FFMPEG is very heavy and wasn't as accurate as MediaCodec.
None of the examples helped me but as I was developing in Kotlin I had to rewrite it anyway.
Here is the breakdown of how to use MediaCodec:
Pass the file to your mediacodec class
Extract the video from a file
Create your buffer size
Seek to where you want to file to be trimmed from or to
Mux your audio and video together
We tried to find a way to do the start and finish times together but we ended up just duplicating the clip first and passing both in with a start and and end time.
You'll need to post your code and show where you're having the issue with MediaCodec for people to help you.
Are there any examples on how to encode animated WebP for Android,
or maybe someone was successful and can guide me through it?
I have a batch of webP images, and I want to create an animated one from them,
There is the libwebp library, however, it does not support animated webP, If I understood correctly from what I read, I need to use 'webpmux' and I have no idea how to integrate and use it.
I saw this post from 08/11, it's not relevant for me because I need to create an animated webP, not a single one.
Even if there is any GIF to webP library, that's good enough.
Thanks in advance, any help will be greatly appreciated!
Amongst its many capabilities, ffmpeg will encode a series of PNGs as a webp animation with alpha.
In this eample, files 0001.png to XXXX.png, where all the images are the same size.
ffmpeg -i %04d.png animation.webp
I am making an video creator app in which i will select some images and make video from images and add background music.how is it possible, is there any demo available. i found many time but not getting anything.
You can do this using ffmpeg. See this post for an example in how to use ffmpeg: https://stackoverflow.com/a/10412116/2116716
Here is a sample application that you may be able to start from:
https://github.com/jdpxiaoming/Android-FFmpeg-Images-Video
I have bitmaps i want to create video by sequence of bitmap in android.
My application receives a sequence of images (BitmapImage) from an external device with rate 10 fps.
I need to create an avi file from this images and then, save it on filesystem. How can I obtain this result? Are there any Android libraries can I use for this purpose?
Please Help
I'm a little late here, but yes there is a library for this. You can find it here: opencv for android. To integrate it with your android project, follow the instructions under Quick Start for OpenCV and FFmpeg. The best part about this library is all of the JNI wrapping is done for you. Although there is lack of documentation, there are a few links to similar projects using this library which you can find here. Hope this helps.
I have a small application that stream pictures from a device using android. I'm able to take pictures and save into sdcard and now I have been willing to do some video recording with that. I have done it using IOS: I save the pictures into an array and for each pictures, I create a mjpeg video with these combined pictures.
I have thought of using pure java to do so, but most of the import libraries cannot be supported in Android.
I have tried to use this: https://github.com/lessthanoptimal/BoofCV/blob/master/main/io/src/boofcv/io/video/CreateMJpeg.java
But it cannot be played for some unknown reason.
I'm out of ideas. Please help me.
Thank you
You can use MJPEGGenerator.java to create an AVI from a set of jpg images
This is example of using MJPEGGenerator in russian language. Use translate.google.com to understand.