带图像的 AVAssetWriter VS 一组图像

发布于 2024-12-17 01:54:59 字数 234 浏览 5 评论 0原文

我正在开发一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一杆小烟枪 2024-12-24 01:54:59

将图像作为电影发送会更小,因为 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文