将图像数组编码到电影文件中? (iPhone)
我的应用程序拍摄延时照片,并录制音频来配合它。问题是,我完全不知道如何将其转换为 .mov/.mpeg 文件(我是此类 iPhone 开发的新手)。我听说过一些关于 FFMPEG 的事情,但显然该许可证不涵盖 iPhone 应用程序的公开分发。有人有什么建议吗?
My app takes time-lapse photos, and also records audio to go with it. The problem is, I have absolutely no idea how to go about turning it into a .mov/.mpeg file (I am new to this type of iPhone development). I have heard some things about FFMPEG, but apparently the license doesn't cover the public distribution of iPhone apps. Anyone have any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你可以使用 Theora 又名 VP3。它可以在任何应用程序中免费使用,并且具有相当不错的质量/比特率比
you can use Theora aka VP3. it is free to use in any application and has a pretty decent quality/bitrate ratio
我不知道 FFmpeg 执行此操作所需的部分是否是 GPL,但 FFmpeg 的某些部分是 LGPL 许可的。
他们有一个法律页面详细介绍了这一点,因此 FFmpeg 可能值得仔细研究。
I do not know whether the necessary parts of FFmpeg to do this is GPL or not, but there are parts of FFmpeg that are LGPL-licensed.
They have a legal page that covers this in detail, so FFmpeg might be worth a closer look.
FFmpeg 本身可以在应用程序商店中分发的 iPhone 应用程序中使用。以 wunderradio 为例: http://www.wunderradio.com/code.html
但是...我现在正在尝试它,我对结果的质量有点失望。 (更不用说 iPhone 上的编码速度很慢)在我看来,如果没有 x264 库,就不可能创建质量不错的 mpeg-4 视频。而且x264是GPL许可的,所以如果你使用它,你必须公开你的项目的完整源代码。 (或者有人知道如何从 LGPL-d FFmpeg 中选择一些可用的编解码器吗?)
我不明白的是,应用程序商店现在有很多视频编辑应用程序。它们如何工作?我进行了相当彻底的搜索,但找不到任何具有足够宽松许可证的 mpeg-4 编解码器。他们违反了 GPL 吗?他们使用私有 API 吗?我真的不相信他们构建了自制的 mpeg4 编码器。
FFmpeg itself can be used in iphone apps distributed on the appstore. See wunderradio as an example: http://www.wunderradio.com/code.html
BUT... I am experimenting with it right now and I am kinda disappointed with the quality of the result. (not to mention that encoding is sloooow on the iphone) It seems to me that without the x264 library it is impossible to create mpeg-4 videos with decent quality. And x264 is GPL licensed, so if you use it, you must disclose the full source of your project. (Or did anyone figure out how to select some usable codec from the LGPL-d FFmpeg?)
What I don't understand is that the appstore has now a lot of video editing apps. How do they work? I made a pretty thorough search, and couldn't find any mpeg-4 codec with a permissive enough license. Do they violate GPL? Do they use private API? I really don't believe that they built a homebrew mpeg4 encoder.