带图像的 AVAssetWriter VS 一组图像
我正在开发一个 iPhone 应用程序,需要通过互联网发送一些图像...
如果我有一组图像是视频帧,并且我需要通过互联网发送这些图像...
我有 2 个选项请注意,按原样(图像)发送它们,或者将它们与 AVAssetWriter 组合在一起成为视频,并在发送之前发送单个视频。
这 2 个选项中哪一个会发送更多的数据量?当我将图像写入电影格式时,AVAssetWriter 是否会压缩图像(因为它们相似)?
I am working on an iphone application that needs to send some images over the internet...
If I have a set of images that were frames of a video and I need to send this images over the internet...
I have 2 options in mind, send them as just they are (images), or to put them together with AVAssetWriter to become a video, and send the single video before sending over.
Which of the 2 options will have a bigger amount of data send over? Does AVAssetWriter compress the images (since they are similar) as I write them into a movie format?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将图像作为电影发送会更小,因为 AVAssetWriter 将使用帧相似性来帮助压缩(除非您设置所有 i 帧,这在功能上相当于发送您的图片集)。
Sending the images as a movie will be smaller, because AVAssetWriter will use the frame similarities to aid compression (unless you set all i frames, which is functionally equivalent to sending your set of pictures).