Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Closed
#5,003 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Monster-GM is already working on this.

Since Oct 4, 2026.

  • #5029 by @Monster-GM — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
54.1k
Forks
4.9k
Avg merge
7h 41m
Merged PRs (30d)
729

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from heygen-com/hyperframes

All issues in heygen-com/hyperframes

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.