timeline-layout-reveal

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Timeline Layout Reveal

时间轴布局揭示

Use
packages/brand/src/TimelineLayoutReveal.tsx
and its registration in
packages/brand/src/Root.tsx
. Save screenshots outside Git, then use offload-r2 to upload them under versioned
timeline-reveal/
keys. Update the composition's image URLs after verifying the public SHA-256 hashes.
使用
packages/brand/src/TimelineLayoutReveal.tsx
及其在
packages/brand/src/Root.tsx
中的注册。将截图保存在 Git 仓库之外,然后使用 offload-r2 将其上传到带版本号的
timeline-reveal/
键下。验证公开的 SHA-256 哈希后,更新 composition 的图片 URL。

Matching captures

匹配的截图采集

Capture the requested composition from
packages/jonnys-videos
. Start Studio with
bunx remotion studio --no-open --port=<free-port>
and open the printed URL. For the existing reveal, use
RollerSkiCommute-new
, frame 2025: the cow close-up. Confirm the cow still appears there if the composition has changed.
The approved framing is a 1280 × 800 CSS viewport at device scale factor 2, with a 336-pixel timeline panel. This gives a MacBook-like 16:10 screenshot and a timeline 30% shorter than the original 480-pixel panel. Adapt these values when the user requests different framing. A 2x capture must contain 2560 × 1600 pixels; changing only the CSS viewport size is insufficient.
Keep the viewport, panel split, timeline zoom, scroll position, playhead, and selection identical between captures. Zoom out to show the entire horizontal duration. Capture the full Studio viewport when the composition preview should remain visible; capture only the timeline when requested. Move the pointer away from the timeline to avoid hover feedback and tooltips.
Wait for the composition, timeline activity scan, thumbnails, and waveforms to load. Empty render-delay handles alone do not establish that timeline media has finished loading: inspect a screenshot before saving the final captures.
从
packages/jonnys-videos
中截取用户指定的 composition。使用以下命令启动 Studio,并打开终端中打印的 URL:
bash
bunx remotion studio --no-open --port=<free-port>
对于现有的 reveal,使用
RollerSkiCommute-new
的第 2025 帧:奶牛特写。 如果 composition 已有变化,请确认该位置仍然出现奶牛。
已确认的取景参数为 1280 × 800 的 CSS viewport,设备缩放因子为 2, 时间轴面板宽度为 336 像素。这样可以生成类似 MacBook 的 16:10 截图, 且时间轴比原来的 480 像素面板短 30%。用户要求不同的取景时,请调整这些 参数。2x 截图必须包含 2560 × 1600 像素;仅修改 CSS viewport 尺寸是不够的。
两次采集之间必须保持 viewport、面板分栏、时间轴缩放、滚动位置、播放头和 选中状态完全一致。缩小时间轴以展示完整的横向时长。当 composition 预览 需要保持可见时,截取完整的 Studio viewport;用户要求时则仅截取时间轴。 将指针移 away 以避免悬停反馈和工具提示。
等待 composition、时间轴活动扫描、缩略图和波形加载完成。仅看到空的 渲染延迟手柄,并不能说明时间轴媒体已经加载完成:保存最终截图前应先检查 截图内容。

Historical before view

历史 before 视图

Inspect the flags and source at both revisions. Main now enables tracks by default, so disabling sequence activity on current main does not recreate the original staircase layout. The existing before capture used revision
836e5f3597f90cb7b24a5de89b501e89942b0f41
with both experimental tracks and sequence activity disabled. Choose a different baseline when the requested comparison requires it.
Use a suitable existing checkout or a temporary managed worktree at the baseline revision. For a fresh checkout, run
bun install
and
bunx turbo run make --filter='@remotion/jonnys-videos...'
before starting Studio; building only CLI dependencies misses fonts, noise, and layout utilities.
Different ports have separate browser storage. Match the framing and playhead explicitly in both Studios. Preserve saved screenshots until their R2 uploads are verified before closing the baseline server and archiving a temporary managed worktree. Restore any temporarily changed config. Update from main only when requested.
检查两个修订版本的 flags 和源代码。当前 main 默认启用轨道,因此仅在 当前 main 上禁用序列活动无法还原原始的阶梯式布局。现有的 before 截图使用 修订版本
836e5f3597f90cb7b24a5de89b501e89942b0f41
,其中同时禁用了实验性 轨道和序列活动。当用户要求的对比需要其他基线时,请选择不同的基线。
使用合适的现有 checkout,或在基线修订版本上创建临时托管 worktree。 对于全新 checkout,请先运行
bun install
和
bunx turbo run make --filter='@remotion/jonnys-videos...'
,然后再启动 Studio; 仅构建 CLI 依赖会遗漏字体、噪声和布局工具。
不同端口使用相互独立的浏览器存储。请在两个 Studio 中明确匹配取景参数和 播放头位置。在验证 R2 上传成功之前,请保留已保存的截图,然后再关闭基线 服务器并归档临时托管 worktree。恢复所有临时修改的配置。仅在用户要求时才从 main 更新。

Reveal and delivery

揭示动画与交付

Use only the two screenshot layers, unless the user requests additional content. Keep the before image underneath the after image. Animate the after image's
cropRight
from 1 to 0 with an inline
interpolate()
driven by
useCurrentFrame()
, clamped at both ends. Use crop props rather than a CSS animation so the wipe renders deterministically and remains editable in Studio.
Match the composition dimensions to the screenshot pixels. The existing reveal is six seconds at 60 fps: hold before for 1.2 seconds, wipe until 3.8 seconds, then hold after. Preserve or adjust timing according to the request.
Render from
packages/brand
, following remotion-render:
bash
bunx remotion render src/index.ts TimelineLayoutReveal ../../out/timeline-layout-reveal.mp4 --codec=h264 --crf=16 --image-format=png --pixel-format=yuv420p --concurrency=4
Inspect the beginning, midpoint, and ending of the exported video, checking that the preview and playhead stay aligned and only the timeline changes. Run focused formatting and lint checks for the changed source files.
For phone viewing, follow upload-r2 to upload the rendered MP4 under a unique content-hashed key, verify its public URL, and return a direct watch link. Retain the local screenshots when the user requested them in brand. This workflow does not itself request a commit, push, or PR.
除非用户要求添加其他内容,否则仅使用两个截图图层。将 before 图像放在 after 图像下方。使用由
useCurrentFrame()
驱动的内联
interpolate()
, 将 after 图像的
cropRight
从 1 动画过渡到 0,并在两端进行钳制。使用 crop 属性而不是 CSS 动画,以确保划变效果能够确定性渲染,并可在 Studio 中继续编辑。
使 composition 的尺寸与截图像素一致。现有 reveal 时长为六秒、帧率为 60 fps: 先保持 before 画面 1.2 秒,在第 3.8 秒前完成划变,然后保持 after 画面。 根据用户要求保留或调整时间安排。
从
packages/brand
执行渲染,并遵循 remotion-render:
bash
bunx remotion render src/index.ts TimelineLayoutReveal ../../out/timeline-layout-reveal.mp4 --codec=h264 --crf=16 --image-format=png --pixel-format=yuv420p --concurrency=4
检查导出视频的开头、中点和结尾,确认预览与播放头保持对齐,且只有时间轴 发生变化。对变更的源文件执行针对性的格式化和 lint 检查。
如需在手机上观看,请遵循 upload-r2,使用基于内容 哈希的唯一键上传渲染后的 MP4,验证其公开 URL,并返回直接观看链接。当用户 要求在 brand 中保留本地截图时,请予以保留。本工作流本身不会要求 commit、 push 或创建 PR。