I’m creating an app in android. In this app i’ve to create a video file(mp4, 3gp) from the images that are stored in the sdcard of the device. Is there any solution for this in android or we have to use any another api for this.
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Android does not provide any built-in APIs which would allow to create video files from single frames. Consider using Sony Vegas or Adobe After Effects instead.
However you can emulate the video effect in an
ImageView(not really a viable solution indeed, but would do in some simple cases). For that you would need to create an array containing your frames and loop through the array using aCountDownTimeror similar. Setting the next frame in theImageViewwith of a tick rate of 40ms would correspond to a frame rate of 25 FPS. You could also provide background sounds using MediaPlayer or SoundPool.