I want to develop an android application which can record a video (mp4), then I have some audio files (mp3) in my resources folder, and I want to add it to the end of the video.
After api version 18 android MediaCodec apis supports to access the low level api. MediaMuxer muxing the elementary streams.
https://developer.android.com/reference/android/media/MediaMuxer.html
Make two activity ,one for video,and one for audio.Make the video activity main .Then set waiting time for audio.And call the audio activity using intend.So play the video,after the waiting time end the audio will be played at the end of the video.Set the audio waiting time perfectly.So it will play after the video end
Combing to files with different audio codecs is not easily possible. I would do the following:
Full disclosure: I am the maintainer of mp4parser.