Transforming images and mp3 files into a video file on android - android

I am thinking to start the development of a new project and I have some ideas in mind, but I am not sure how much is doable in android.
The steps of the app would be:
The user selects a set of images from Gallery
The user selects an audio file from external storage
I combine the images and the sound (each image is displayed for a timeframe) into a movie file that can be exported to YouTube
From my research I wasn't able to find any way to create the movie. All the answers contained links to android NDK and external codecs.
So my question is: which would be the easiest way of making this on android?

Okay, your idea is feasible. You need to have Ffmpeg compiled for android. First have a look for it at Stack link.Then decide yourselves as per need.
After you have Ffmpeg compiled for android, you can just search and extract/add audio as per your needs. To give a a start have a look at this and FFmpeg Docs Guide/Official Example.
To make video from images have a look at Ffmpeg official example. You can find plenty of these on google.
After having all these things on your hand, you are ready for your project. I would suggest to try and familiarize yourself for Ffmpeg on Windows/Linux as per your need first.
Hope this would help.
Cheers.:)

Related

How to convert recorded or existing video in audio file?

Application will open/record video from gallery/camera, after that application should automatically convert that video to audio file. I have searched a lot on google but i unable to get any solution for this. Can anyone help me on this?
There is one library that can do the trick which is called FFmpeg. you
can found it here http://ffmpeg.org/ .
The best way is you can use bambuster (http://bambuser.com/opensource) which is open source and provides you code for your FFmpeg android app. so, you can easily convert your video file.
FFMPEG is the best option for Audio capturing from Video.
Even i was stuck on this same year back. wanted to make app like Dubmash. but didn't find solution anywhere on stackoverflow. but luckily i found one project which did these type of functionality i extracted the part i wanted i.e getting audio from a video file.
here check my answer. i answered it to one question last year. please have a look.
well i dont know how good/bad it is in performance o anything. but main thing is it worked for me

Creating video from stream bitmap in android

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.

Create video from pictures saved in sd-card on Android

I have read many threads about how to create videos from images on Android. I am a bit confused about how can I get it work.
Some posts says that we can use a ffmpeg library for android. I have seen other posts talking about the library Media Format. Some other posts have two years and maybe has been some changes.
Right now, what is the simplest way to create a video from images (regardless how eficient is the process)?
Thank you.

PDF reading on Android

I have to make an application that should capable of reading PDF documents on Android device. Actually I do not want my app to be dependent on other apps to read the PDF file.
I had gone through the questions that are asked here and at some other places also. They all directly or indirectly using third party app.
Is there any API or something similar is available through which I can implement reading of PDF files directly in my app? How about converting the PDF document to PNG image? But the PDF-PNG method wont let users select the texts.
Any suggestions?
Thanks
There exists an library from Adobe that you can use. Its based on the NDK and you need to do the wrapping all by yourself. Its also extremely expensive, basically nothing for a small firm/single developer but for bigger companies. Afaik the license is not only expensive but also annual based, so you need to pay for it in every year...
There are other libraries, basically open source. Some of them have good performance but a lack of functionality (most of them based on NDK, too). I found only one pure "java" library but the performance was more than worse (loading time 10sec for a page and more).
There are three possibilities you should consider:
Using an external application, so you just need to implement the library of your PDF documents
You write everything by yourself including a pdf reader part
You create a middle "tier" where you convert your PDF into PNGs or JPG (I prefer PNG for better quality). The much better performance comes with a lack of features.
I'm currently developing a complex application like mentioned in 3. but I can't go into details, sorry.
I would definitely recommend the Qoppa stuff on Android.

How to read each frame from a movie file in android?

My application want to read each frame from a movie file and used to other.
How can I do it?
I don't know that there's a way to do this using the built-in decoders (but would be glad to hear of it if there is). You might have to make something based on modifications to the alternative software decoder included in the android sources, or an external alternative such as ffmpeg or mplayer.

Categories

Resources