Skip to content

build(deps): 预编译 FFmpeg 只保留三个元数据比特流过滤器 - #1325

Merged
skyhua0224 merged 1 commit into
AlkaidLab:masterfrom
skyhua0224:build/ffmpeg-scoped-bsf
Nov 17, 2026
Merged

skyhua0224 merged 1 commit into
AlkaidLab:masterfrom
skyhua0224:build/ffmpeg-scoped-bsf

Conversation

@skyhua0224

@skyhua0224 skyhua0224 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

预编译的 FFmpeg 依赖此前通过 --enable-bsfs 注册了 50 个比特流过滤器,而主机只需要 H.264、HEVC、AV1 三个元数据过滤器。依赖仓库已把它们精简为这三个(AlkaidLab/foundation-build-deps#2),本 PR 把 third-party/build-deps 更新到发布了新产物的 dist 提交,没有其他改动。

改动

  • third-party/build-deps:8e569811 → 1b6a3546(build(dist): publish FFmpeg deps from 897515e9)。各平台只有静态库和头文件内容变化,文件清单不变;FreeBSD-aarch64 沿用旧产物(该平台在依赖仓库的 CI 里无法启动虚拟机,在 master 上同样失败)。
  • Windows x64 的 libavcodec.a 从 17.76 MB 降到 12.70 MB,压缩包 17.74 MB → 15.96 MB(与改动前同一运行器、同一配置对比)。这是静态库体积,不等于主程序或安装器的体积收益。

验证

  • 编码器门禁(依赖仓库 PR 里有完整记录):同一台 Windows 机器,改动前后各链接一次,18 个编码器的「格式 × 硬件配置」清单逐字节相同;37 个「编码器 × 格式」组合的真实编码结果完全一致,包括 RTX 4080 上 H.264、HEVC、AV1 的 NVENC(8 位与 10 位)以及 libx264、libx265、SVT-AV1、AC3、E-AC3。
  • fork 上的完整构建工作流:https://github.com/skyhua0224/foundation-sunshine/actions/runs/44065800902 。主程序用新库链接成功,原生测试在重跑后全部通过(ds5_native_usbip_smoke 为既有跳过)。首次运行里 test_sunshine 在 WebhookConfigTest 处崩溃(段错误),那是与本改动无关的配置测试;之前另一个 PR 的 CI 里也出现过一次类似的偶发崩溃,重跑通过。
  • 尚未验证:HDR 码流(PQ/HLG 元数据)、编码延迟与画质、AMD AMF 与 Intel QSV 真实设备;旧版 Moonlight 客户端连接的回归检查。

依赖仓库把比特流过滤器从 50 个精简为 h264_metadata、hevc_metadata、av1_metadata 三个,编码器、硬件上下文和各平台编码选项不变。Windows x64 的编码器清单与 37 个编码组合的真实编码结果(含 RTX 4080 的 NVENC)与改动前逐项一致,结果见依赖仓库 PR #2。libavcodec.a 在 Windows x64 上从 17.76 MB 降到 12.70 MB。
Copilot AI balanced review requested due to automatic review settings November 17, 2026 11:08
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • third-party/build-deps is excluded by !third-party/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@skyhua0224
skyhua0224 merged commit c28f515 into AlkaidLab:master Nov 17, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants