Creating video from stream bitmap in android - 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.

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

How to read, display, open pdf file in android

I am a beginner of android. I don't know much about working with PDF and files. Please provide me resources that can be understand easily. Is there any third party plugins should be used? I have tried searching old questions but i am unable to know where to start.
You have a very good library (AndroidPdfViewer) for API 11+ that can open, zoom and have animations.
It's simple to use just read the .readme file.
It's based on PdfiumAndroid for decoding the pdf.
You should have a url to access that document . You can use HttpURLConnection class and read subsequent bytes through it . Here is a nice example android download a file

Android - display DICOM image with PixelMed Java DICOM Toolkit

Do you know how can I display a DICOM image using PixelMed™ Java DICOM Toolkit on Android? If it is not possible which library should I use to do that?
I would give imebra a try. They have a youtube demo project which shows it in action and it looks good. I also downloaded the source to take a peak at the documentation and it looks fairly straight forward.
http://imebra.com/

Transforming images and mp3 files into a video file on 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.:)

Better option to handle JPEG byte array decoding

Given a JPEG Encoded byte array taken from a camera, I need to decode it and display its image (bitmap) in my application. From searching around, I've found that there are two primary ways to go about this: use NDK Jpeg Decoding library or use BitmapFactory.decodeByteArray. This is for an experimental embedded device being developed that runs on Android with a built-in camera.
I would greatly prefer to develop the application in SDK not NDK if possible at all, but many people seemed to handle this problem by going straight to NDK, which bugged me a bit.
Is there some sort of inherent limitation in BitmapFactory.decodeByteArray that forces you to handle this problem by using libjpeg in NDK (Perhaps speed? Incompatibility?)
Performance isn't a big consideration unless if it takes say more than 45 seconds to decode the image and display it.
This is an important decision I need to make upfront, so I'd appreciate any thoughtful answers. Thank you so much.
Here is a really good example / explanation how you can decode images on device efficiently without using NDK : Displaying Bitmap Efficiently. You have an option to decode bitmap from stream or file so it depends on your needs. But in most of my applications I am using the same method and it's working great. So I suggest you to take a look at the SDK example.
Hope it will helps you.

Categories

Resources