1

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.

Simon MᶜKenzie
  • 8,344
  • 13
  • 50
  • 77
Daniel Chernenkov
  • 715
  • 1
  • 7
  • 23
  • This doesn't seem to be a programming problem. Are you trying to put video editing functionality into your app? – jscs May 12 '14 at 21:13
  • I'd suggest you take a look at AVFoundation, specifically AVAssetWriter. They should do what you're needing to do, and unlike ffmpeg, they'll take full advantage of any hardware acceleration available. – David Berry May 12 '14 at 21:15
  • possible duplicate of [How to write a movie with video AND audio using AVAssetWriter?](http://stackoverflow.com/questions/5481268/how-to-write-a-movie-with-video-and-audio-using-avassetwriter) – David Berry May 12 '14 at 21:38

1 Answers1

1

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

Community
  • 1
  • 1
Rafał Sroka
  • 39,540
  • 23
  • 113
  • 143