适用于iOS的视频编码库 [英] Video encoding libraries for iOS

查看:174
本文介绍了适用于iOS的视频编码库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的遇到了这个问题,因为在互联网上没有足够的信息在iOS中看到视频编码,但是我们可以观察到很多应用程序能够成功处理视频流的问题(Skype,qik,justin)。电视等)

我要开发一个应用程序,它应该发送从相机获取的视频帧,并将其编码在h.263(h.264或MPEG-4正在决定中)到网络服务器。为此,我需要一些视频编码库。显然,ffmpeg可以处理这个任务,但是它是在LGPL许可证下,这可能会导致在AppStore中提交应用程序的一些问题。另一方面,有一些应用程序,这似乎使用ffmpeg库,但只有 Timelapser 清楚在应用程式说明中说出这个事实这是否意味着其他应用程序不使用ffmpeg或仅隐藏此信息?

I really stucked with that problem, because I haven't seen enough information in the internet regarding video encoding in iOS, however we can observe plenty of apps that deal with the problem of video streaming successfully (skype, qik, justin.tv, etc.)
I'm going to develop an application, that should send video frames obtained from camera and encoded in h.263 (h.264 or MPEG-4 it is under decision) to a web-server. For this, I need some video encoding library. Obviously, ffmpeg can deal with that task, but it is under LGPL license, which could probably lead to some problems in submitting the app in the AppStore. On the other hand, there are some applications, which are seemed to use ffmpeg library, but only Timelapser clearly states this fact in app description. Does this mean, that other apps are not using ffmpeg or just hiding this information?

请分享您的想法和经验。我开放dicsussion。

Please, share your thoughts and experience in this topic. I'm open for dicsussion.

推荐答案

在这个领域进行搜索和研究之后,我发现这一个图书馆 http://www.foxitsolutions.com/iphone_h264_sdk.html 。他们真的使用硬件编码。我用仪器检查了演示示例,他们告诉我,编码时,使用〜12%的cpu,并且系统调用 read()不断调用。从那里我可以得出结论,他们的图书馆使用标准AVFoundation的 AVAssetWriter 写入临时文件,(最可能)并发线程用于读取此临时文件以检索编码框架。

After googling and making some research in this area, I found this one library http://www.foxitsolutions.com/iphone_h264_sdk.html. They really use hardware encoding. I've examined demo example with instruments, and they showed me that while encoding, ~12% cpu is used and syscall read() constantly called. From that I can conclude, that their library uses standard AVFoundation's AVAssetWriter to write into the temporary file, and (most probably) concurrent thread is used to read this temp file for retrieving encoded frames.

另外,请查看 http://www.videolan.org/developers/x264.html 。它是在GPL下,但仍然有用。

Also, take a look at http://www.videolan.org/developers/x264.html. It is under GPL, but still can be useful.

这篇关于适用于iOS的视频编码库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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