aryaxt
aryaxt

Reputation: 77646

Cocoa Objective C - How can i convert an array of images to a video file, and save it to disk?

My Cocoa application is a socket server which receives video frame from my iphone, and displays them on the screen as a video. I am saving every image in an array after i receive them. Is there a way to convert this array of images to a video file and let the user to save this file to disk?

Thanks

Upvotes: 1

Views: 2831

Answers (1)

Barry Wark
Barry Wark

Reputation: 107774

Have a look at QTMovie in QTKit.framework. In particularly, once you've created a movie instance, you can use -[QTMovie addImage:forDuration:withAttributes:] to add a "frame" to the movie.

Upvotes: 5

Related Questions