问题描述
我的Cocoa应用程序是一个套接字服务器,它从我的iphone接收视频帧,并将其作为视频显示在屏幕上。
我收到数组后保存每个图像。
有一种方法可以将此图像数组转换为视频文件,并让用户将此文件保存到磁盘?
感谢
请查看。特别是,一旦你创建了一个电影实例,你可以使用 - [QTMovie addImage:forDuration:withAttributes:]
添加一个框架到电影。 p>
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
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.
这篇关于Cocoa Objective C - 如何将图像数组转换为视频文件,并将其保存到磁盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!