本页内容

从源代码构建 FFmpeg

本页面介绍了在受支持的平台上配置和构建FFmpeg的过程。

在以下情况下,您可能需要编译 FFmpeg:

  • 您需要 FFmpeg 的自定义配置或静态编译版本。
  • 网上提供的 FFmpeg 构建版本不适合您的产品。
  • 需要在两个 Qt 版本发布之间对现有产品中的 FFmpeg 进行更新。

在本指南中,我们将介绍如何构建 FFmpeg,使其支持的功能与Qt Online Installer 中捆绑的 FFmpeg 二进制文件相同。FFmpeg 提供了多种配置选项,可用于调整 FFmpeg 库的大小、性能和功能支持。如需进一步了解这些选项,请参阅《FFmpeg 编译指南》。

Windows

macOS

Linux

iOS

Android

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.