Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

fix(engine): emit hvc1 for streaming H.265 GPU outputs

未关闭
#5,003 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Monster-GM 已经在做这个了。

开始于 2026年10月4日。

  • #5029 来自 @Monster-GM —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

Locate buildStreamingArgs() on current main and inspect the existing argument-construction tests. Verify how software, VideoToolbox, and supported GPU H.265 branches build their commands, then add coverage for H.265 and H.264 cases. Done means every H.265 path has exactly one hvc1 tag while H.264 and VP9 remain unchanged.

由索引模型根据 Issue 内容生成。

描述

Summary

The streaming encoder adds the MP4 hvc1 sample-entry tag for software H.265, but GPU H.265 branches can omit it. Those outputs may use FFmpeg's default hev1 tag even though the encoded HEVC stream itself is valid.

This reduces compatibility with Apple playback software and other consumers that expect parameter sets through an hvc1 sample entry.

Root cause

In buildStreamingArgs(), the existing:

args.push("-tag:v", "hvc1");

is nested inside the software-encoder branch. The common codec === "h265" decision is outside that branch, so VideoToolbox and the other supported GPU H.265 encoders do not necessarily receive the same container tag.

Affected version

Observed in HyperFrames v0.8.114 (01c6f6004a00ecfa6e77ab4025b47a46a5e925fc). Please confirm against current main.

Expected behavior

Every MP4 streaming H.265 path should append -tag:v hvc1 exactly once, independently of whether the selected encoder is libx265, VideoToolbox, NVENC, VAAPI, QSV, or AMF. H.264 and VP9 paths must remain unchanged.

Proposed change

Move the H.265 sample-entry decision after software/GPU encoder selection but keep it inside the common H.265 branch:

if (codec === "h265") {
  args.push("-tag:v", "hvc1");
}
Validation

Add argument-construction tests covering:

  • software H.265;
  • HDR VideoToolbox H.265;
  • each supported GPU H.265 encoder;
  • software and GPU H.264 negative cases;
  • exactly one hvc1 tag per H.265 command.

The change is container metadata only and does not alter encoded picture data, bitrate, transfer characteristics, or HDR metadata.

主要语言
TypeScript
星标
54.1k
派生
4.9k
平均合并
7 小时 19 分钟
30 天内合并 PR
746

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

heygen-com/hyperframes 的其他 Issue

查看 heygen-com/hyperframes 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。