简体   繁体   中英

Combining an audio file with a video file

I have two files: one audio and one video (mp4).

I want to create from those two files, one video file that will contain both the audio and video output. The main issue is the synchronization between both of those recorded files. There's a man speaking, and the movement and sound need to line up.

I heard about the FFmpeg library for iOS but didn't found any good information about it.

As others have pointed out in the comments, you should use AVFoundation to merge audio and video into one file. This answer shows how to do it:

How to write a movie with video AND audio using AVAssetWriter

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM