HDR layered composite repeats video frames: ~50% duplicates when the source <video> is HLG
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Start at the HDR auto-promotion and capture_hdr_layered path named in the report, then trace how it captures and composites the extracted video frames. The report confirms the frame cache contains 300 distinct frames, so compare those with frames from the HDR layered output and use the SDR render as a control. Done means the HLG render preserves all source frames without duplicates.
由索引模型根据 Issue 内容生成。
描述
Summary
When a composition contains an HLG (HDR) <video>, the render auto-promotes to HDR and goes through the HDR layered composite path. In that path the output repeats video frames: about half of the frames are duplicates of the previous one, so playback visibly stutters. The same composition with an SDR copy of the same clip renders every frame correctly.
Reproduction
A blank project from npx hyperframes init with one full-frame video. No other elements or animation.
# 10 s, 30 fps HLG test clip (synthetic, so every source frame is distinct)
ffmpeg -f lavfi -i "testsrc2=size=1920x1080:rate=30" -f lavfi -i "sine=frequency=440" -t 10 \
-c:v libx265 -pix_fmt yuv420p10le \
-x265-params "colorprim=bt2020:transfer=arib-std-b67:colormatrix=bt2020nc" \
-tag:v hvc1 -c:a aac -shortest assets/hlg.mp4
# SDR control clip
ffmpeg -f lavfi -i "testsrc2=size=1920x1080:rate=30" -f lavfi -i "sine=frequency=440" -t 10 \
-c:v libx264 -pix_fmt yuv420p -c:a aac -shortest assets/clip.mp4
<div id="root" data-composition-id="main" data-start="0" data-duration="10" data-width="1920" data-height="1080">
<video id="footage" class="clip" src="assets/hlg.mp4" data-start="0" data-duration="10"
data-track-index="0" data-has-audio="true"></video>
</div>
<script>
const tl = gsap.timeline({ paused: true });
window.__timelines["main"] = tl;
tl.seek(0);
</script>
npx hyperframes render --quality draft --output out.mp4
# count distinct frames (300 expected)
ffmpeg -i out.mp4 -vf "mpdecimate=hi=200:lo=100:frac=0.1,showinfo" -an -f null - 2>&1 | grep -c pts_time
Results
| Source | Distinct frames in output | Render time |
|---|---|---|
SDR H.264 (clip.mp4) |
300 / 300 | 9.9 s |
HLG HEVC 10-bit (hlg.mp4) |
155 / 300 | 34.5 s |
| Real iPhone HLG recording (8-bit re-encode, HLG tags kept) | 64 / 302 | — |
The log for the HLG run shows HDR auto-promotion triggered by "assets/hlg.mp4", then capture_hdr_layered with captureMode: screenshot, useLayeredComposite: true. The frames HyperFrames extracts into its frame cache are all distinct (checked: 300/300), so the repeats appear to come from the layered capture/composite step rather than from extraction.
--experimental-fast-capture=false, --workers 1, and an all-intra source (-g 1 -bf 0) did not change the result.
Expected
Every source frame appears once in the output, as with SDR input.
Environment
- hyperframes 0.8.208 (also seen on 0.8.206)
- macOS 15.7.9, Apple M1 Pro
- Google Chrome 156.0.8078.48 (hardware GPU)
- FFmpeg 8.1.1
Workaround
Tone-map the HLG clip to SDR BT.709 before using it in a composition. iPhones record HDR (HLG / Dolby Vision) by default, so phone footage hits this path without the author choosing HDR.
- 主要语言
- TypeScript
- 星标
- 54.1k
- 派生
- 4.9k
- 平均合并
- 15 小时 19 分钟
- 30 天内合并 PR
- 769
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
heygen-com/hyperframes 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
heygen-com/hyperframes#6481 · 1 条评论 ·
维护者通常 1 天内回复
-
Timeline: show a clip's full name when its label is cut off可能已有人在做 @DanielMcSheehy 于 9 天前认领。 未关闭desktop-candidate difficulty/easy enhancement good first issue help wanted triage/ready
难度 2/5 1-3 小时 新手友好度 85/100
heygen-com/hyperframes#5582 · 2 条评论 ·
维护者通常 1 天内回复
-
Studio: press ? to open the keyboard shortcuts panel可能已有人在做 @B-Payal 于 14 天前认领。 未关闭desktop-candidate difficulty/easy enhancement good first issue help wanted triage/ready
难度 2/5 1-3 小时 新手友好度 82/100
heygen-com/hyperframes#5580 · 1 条评论 ·
维护者通常 1 天内回复
-
lint: add tests for three caption rules that have none可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭difficulty/easy enhancement help wanted triage/ready
难度 2/5 1-3 小时 新手友好度 85/100
heygen-com/hyperframes#5388 · 1 条评论 ·
维护者通常 1 天内回复
-
macOS XProtect "Malicious Script Blocked" kills `hyperframes render` at "Compiling composition" (5%)未关闭bug triage/needs-triage
难度 4/5 3-5 天 新手友好度 48/100
heygen-com/hyperframes#6530 ·
维护者通常 1 天内回复
查看 heygen-com/hyperframes 的全部 Issue
相似的 Issue
-
Plugin: sheet music can't be scrolled by hand before playback可能已有人在做 @snakajima 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
receptron/jinglescript#51 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 9 天内回复
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
难度 2/5 1-3 小时 新手友好度 78/100
openclaw/openclaw#186424 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
chore(worker): five module header comments describe the code from before later issues changed it未关闭area:dev U2-later
难度 2/5 1-3 小时 新手友好度 78/100
bentleypark/aiwatch#1824 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
Pal-AI-Lab/Coopanion#469 ·
维护者通常 1 天内回复