用于 C++ 的 Quicktime API
我正在开发一个可处理 mov 文件的 C++ 应用程序。这是我第一次使用 Quicktime API,而且 API 似乎不止一个。我想做的是从 mov 文件中提取帧和/或音频。该应用程序需要在 PC、Mac、Linux 上运行。
所以我的问题。
- 我需要使用哪个 API?
- 该 API 是否与所有 3 个终端平台兼容,或者我是否需要使用适用于 PC、Max、Linux 的不同 Quicktime API
I'm developing a C++ application that works with mov files. This is the first time I work with the Quicktime API, and it seems there's more than 1 API. What I'm trying to do is extract frames and/or audio from the mov file. The application needs to run on PC, Mac, Linux.
So my questions.
- Which API do I need to work with?
- Is this API compatible with all 3 end platforms, or do I need to work with different Quicktime APIs for PC, Max, Linux
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谷歌搜索:ffmpeg、libavcodec、libavformat
Google for: ffmpeg, libavcodec, libavformat
就我个人而言,对于 Linux,我发现 gmerlin-avdecoder[1] 比 ffmpeg 更容易处理(它有一个稳定的 API!)
理论上它可以在 w32 和 osx 上使用(尽管我听说过 OSX-10.7 的问题)
QuickTime/Carbon (C) API 已被 Apple 弃用:您将无法在本机中使用它来阅读视频64位应用程序(建议使用QTKit,仅ObjC)
[1] http://gmerlin.sourceforge.net/avdec.html
personally, for linux i found gmerlin-avdecoder[1] to be way easier to handle than ffmpeg (it has a stable API!)
in theory it is available on w32 and osx (though i've heard of problems with OSX-10.7)
the QuickTime/Carbon (C) API has been deprecated by Apple: you won't be able to use for reading videos it in native 64bit applications (it's suggested to use QTKit, which is ObjC only)
[1] http://gmerlin.sourceforge.net/avdec.html