This sample shows how to create a video file on Android from multiple input image files using the MediaCodec API.
You can find the stuff related to MediaCodec inside of the TimeLapseEncoder
class.
AudioTrackToAacConvertor
and AudioToVideoMuxer
demonstrate how to convert audio file into different encoding and how to mux it into existing video file.
For more information check out my blogposts www.sisik.eu/blog/android/media/images-to-video www.sisik.eu/blog/android/media/mix-audio-into-video