android - How to mux audio file and video file?

前端 未结 3 700
傲寒
傲寒 2020-12-05 06:09

i have a 3gp file that is recorded from the microphone and a mp4 video file. i want to mux audio file and video file in to a mp4 file and save it. i searched a lot but didn\

3条回答
  •  温柔的废话
    2020-12-05 06:30

    What you'll need to get working in ffmpeg. Here's a link to help with that:

    FFmpeg on Android

    ffmpeg requires the NDK on Android.

    Once you have that working, you can work on muxing the audio and video together using ffmpeg. Here's a link to a question that does it with 2 video files (the answer should be similar).

    FFMPEG mux video and audio (from another video) - mapping issue

提交回复
热议问题