Impossible to mix audio file and video file using MediaMuxer?

I'm developing an Android App that records screen video and audio. I recorded these 2 files : mp3 audio file and mp4 video file(no sound).

Now I want to mix them and create a new mp4 video file(with sound). From Android 4.3, Google suggests using the MediaMuxer class to mix stream audio and video. I have tried many times without success.

Any solution to resolve my issue with MediaMuxer API from Google? Any help will be greatly appreciated.

Answers


MediaMuxer does not transcode. If you write out an MPEG4 file, it will expect the video file to be MPEG4/AAC and the audio file to be an AAC file (m4a) as well.

Once you feed it with an m4a, muxing will succeed.


This is a full sample source code to merge wav audio file to mp4 video file :

https://github.com/tqnst/MP4ParserMergeAudioVideo


Need Your Help

Recieving string at Views from Urls

python django

All I want to do is pass the 'koala 2-2' string from the url to the views. currently it returns a blank string in sitename.

Script to use SFTP

shell unix sftp

I have an FTP Script as below. And I want the same to be converted to Secured FTP (SFTP) script.