如何从 iPhone SDK 中的视频中提取屏幕截图?
我希望能够以设定的时间间隔截取使用 iPhone 摄像头录制的 MPEG 屏幕截图。
我已经看到了几种方法可以做到这一点;即编译和使用 FFmpeg (将 FFMPEG 库与 iPhone SDK 一起用于视频编码),但是似乎很难遵守 LGPL(http://ffmpeg.org /legal.html)用于商业用途。
合同条款对我们来说几乎毫无用处:
问:将整个 FFmpeg 核心合并到我自己的商业产品中是否完全可以?
A:您可能在这里遇到问题。已经有一些公司在他们的产品中使用了 FFmpeg 的案例。这些公司发现,一旦你开始尝试从专利技术中赚钱,专利的所有者就会追索他们的许可费。值得注意的是,MPEG LA 对于收集 MPEG 相关技术保持着警惕和勤勉的态度。
还有其他办法吗? - 或者仅仅通过访问 MPEG 的渲染层我就能“从专利技术中赚钱”?
像往常一样 - 对此的任何帮助将不胜感激。
干杯!
I'd like to be able to take a screenshot of an MPEG recorded using the iPhone camera at set intervals.
I've seen a few ways to do this; namely compiling and using FFmpeg (Using FFMPEG library with iPhone SDK for video encoding), however it seems it's quite difficult to comply with the LGPL (http://ffmpeg.org/legal.html) for commercial use.
This term of the contract pretty much makes it useless to us:
Q: Is it perfectly alright to incorporate the whole FFmpeg core into my own commercial product?
A: You might have a problem here. There have been cases where companies have used FFmpeg in their products. These companies found out that once you start trying to make money from patented technologies, the owners of the patents will come after their licensing fees. Notably, MPEG LA is vigilant and diligent about collecting for MPEG-related technologies.
Is there any other way? - or simply by accessing the rendering layer of an MPEG am I going to be "making money from patented technologies"?
As usual - any help on this would be greatly appreciated.
Cheers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,你可以做到 - 如果我没记错的话,从 iOS 3.2 开始......至少对于你库中的视频来说是这样。将影片加载到 MPMoviePlayerController 对象后,执行以下操作
Yes, you can do it - if I am not wrong, since iOS 3.2... at least for the videos you have on your library. After loading the movie on your MPMoviePlayerController object, do this
不幸的是,没有官方的方法可以从相机中实时抓取图像帧。
我鼓励您向 Apple 提交错误报告/功能请求。很多人都想要这个。如果很多人要求某个特定功能,那么他们可能会考虑实际添加该功能。
Unfortunately there is no official way to grab image frames from the camera in realtime.
I encourage you to file a bug report / feature request with Apple. Many people want this. If many people request a specific feature then they might consider to actually put this in.