开发者

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

开发者 https://www.devze.com 2023-01-14 12:50 出处:网络
My Cocoa application is a socket server which receives video frame from my iphone, and displays them on the screen as a video.

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 t开发者_如何学JAVAhis file to disk?

Thanks


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消