Jonovono
Jonovono

Reputation: 2085

Mac Merge an Audio and Video file together

So I have a audio and video clip that are the same lengths together and I would like to merge them into one file to make a video clip with sound.

I found this answer, but it is for iPhone it seems: Merging Audio with Video Objective-C

Basically, what I want to do is this command from FFMPEG:

ffmpeg -i TestRecording-20140363110156.mov -i 1393956048.wav -vcodec copy out.mov

Is this possible? If not, can I just include the compiled ffmpeg file into my project and call that?

Thanks.

Upvotes: 0

Views: 458

Answers (1)

jsd
jsd

Reputation: 7703

You can certainly include the compiled ffmpeg in your app bundle. I would use NSTask to run the command. You can find the path of the embedded ffmpeg with this code:

NSString ffmpegPath = [[NSBundle mainBundle] pathForResource:@"ffmpeg" ofType:@""];

Upvotes: 1

Related Questions