用于 C++ 的 Quicktime API

发布于 2025-01-04 07:08:08 字数 246 浏览 5 评论 0原文

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

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

发布评论

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

评论(2

若言繁花未落 2025-01-11 07:08:08

谷歌搜索:ffmpeg、libavcodec、libavformat

Google for: ffmpeg, libavcodec, libavformat

↘紸啶 2025-01-11 07:08:08

就我个人而言,对于 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

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