Cocoa Objective C - 如何将图像数组转换为视频文件,并将其保存到磁盘? [英] Cocoa Objective C - How can i convert an array of images to a video file, and save it to disk?

查看:186
本文介绍了Cocoa Objective C - 如何将图像数组转换为视频文件,并将其保存到磁盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Cocoa应用程序是一个套接字服务器,它从我的iphone接收视频帧,并将其作为视频显示在屏幕上。
我收到数组后保存每个图像。
有一种方法可以将此图像数组转换为视频文件,并让用户将此文件保存到磁盘?



感谢

解决方案

请查看 QTMovie 。特别是,一旦你创建了一个电影实例,你可以使用 - [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 - 如何将图像数组转换为视频文件,并将其保存到磁盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆