Communitygithub.com

Drama2557/4RealDigital-Video-Studio

视频技术目录:五种速度匹配的 SEAM 技术(缩放穿越、反向缩放穿越、切曲线、瀑布切、移焦模糊切)加两种场景内技术——瀑布进场(标题卡/片段开场白的交错级联入场)和微移曲线(慢-快-慢三阶段组滑动)。涵盖通过镜像 Power4 缓动实现的局部移动(约 12% 帧宽)速度匹配、Z 轴缩放符号规则、尺寸缩放模糊(文字 10px / 全屏 18-20px)、逐字交错剪切、按元素权重调整的级联节奏,以及 10/65/25 滑动比例。在创作任何转场、文字节拍交接、动态文字入场或组重定位前,请先阅读。

4RealDigital-Video-Studio 是什么?

这个技能提供了一个完整的视频动态和转场技术目录,专门用于在 AI 代理驱动的视频制作环境中实现专业级、电影感的运动图形。其核心原则是“在峰值速度处剪切,并在剪切两侧匹配方向和速度”,从而创造出无缝、有冲击力的视觉过渡。技能文档详细阐述了七种主要技术:五种基于“接缝”的转场(如缩放穿越、切曲线)用于场景或文本元素之间的过渡,以及两种场景内动画(瀑布进场和微移曲线)用于元素进入和组重定位。该技能明确规定了关键参数,包括 Z 轴缩放的方向符号规则(避免不匹配的推/拉动画)、不同元素类型的模糊值(文字 10px,全屏 18-20px)、精确的缓动函数(如用于速度匹配的 power4.in/out)以及用于局部移动的特定像素距离(约 12% 帧宽)。它还提供了一份详细的使用指南,包括用于实现这些技术的 GSAP 代码模板,明确禁止的反模式(如双向模糊+不透明度补间),以及一个用于快速选择正确变体的决策矩阵。此技能是为与运动图形、视频编辑和基于 AI 的动画工具集成的开发者和 AI 代理设计的。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Drama2557/4RealDigital-Video-Studio/tree/HEAD/.agents/skills/cut-the-curve

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

切曲线——技术目录

五种接缝技术,一个原则:在峰值速度处剪切,并在剪切两侧匹配方向和速度——加上两种场景内技术(§6 进场,§7 滑动)。接缝法则——向量法则、流向、清单、接缝门——位于 motion-doctrine 中;请先阅读它。本技能提供参数和机制。 所有 GSAP 代码模板(工作器 + 注册表):examples/gsap-implementation.md。

目录

#技术范围轴用途
1缩放穿越(正向)场景内文字交换Z,朝向观察者深入同一想法的推进
2反向缩放穿越进场/高潮拍Z,远离观察者更重大的内容落地
3切曲线场景间X / Y默认边界,影片的流向
4瀑布切文字到文字接缝X,逐字大文字拍之间的逐字交接
5移焦模糊切同表面状态交换X / Y / Z你希望被看到的那个剪切——一种 DSLR 焦点拉动手法
6瀑布进场场景内进场(无接缝)Y,从下方标题卡、片段开场白、列表介绍
7微移曲线场景内组滑动(无接缝)X / Y重定位已编排的组以腾出空间

Z 轴方向是一个符号

在 Z 轴上,“相同轴”是不够的——剪切两侧的 d(scale)/dt 符号必须匹配:

Z 向量退场缩放进场缩放变体
推(正向)增大 1 → 1.2增大 0.75 → 1缩放穿越
拉(反向)缩小 1 → 0.8缩小 1.25 → 1反向缩放穿越

禁止的镜像:退场缩小接进场从小放大(拉翻转为推——常见错误,因为从小放大是默认元素入场方式),以及推的退场接一个超大尺寸的收缩。这约束了进场场景在接缝窗口(剪切 + 约 0.5s)内的自身入场动画,而不仅仅是包装器补间:保持进场帧已编排好,或者将其入场动画设计为匹配符号。请根据接缝门规则 7 验证。

模糊逻辑(所有 Z 变体)

对象峰值模糊原因
文字缩放(标题、词组)10px20px 会模糊字形——剪切读起来像故障,而不是速度
全屏表面(窗口、卡片、截图)18–20px在大表面上的较轻模糊会读作渲染卡顿

在交换帧上,两侧使用相同的峰值模糊。模糊包装器,永远不要模糊子元素。


1. 缩放穿越(正向)

Z 轴速度匹配剪切;两段文本从不同时可见。 所有元素都在增大:退场文字向相机加速,在峰值模糊处进行硬交换,进场文字继续增长进入焦平面。仅用于标题和短句。总时长约 0.4s。

阶段缩放模糊不透明度缓动函数时长
退场1 → 1.20 → 10px1 → 0.15power3.in(不透明度:单独的 none 补间)0.2s
剪切 (tl.set)in: 0.7510px退场: 0 / 进场: 0.15——
进场0.75 → 110 → 0px0.15 → 1expo.out0.5s

退场不透明度必须使用自己的线性补间——power3.in 会让不透明度在接近 1 的状态保持太久。进场时,所有属性共享 expo.out。

2. 反向缩放穿越(反向)

后拉镜像:退场元素后退;进场元素过大(就像刚在相机后面)并收缩进入焦平面。所有元素都在缩小。用于进场/高潮拍——如高潮台词、巨大回应、最终状态——而不是普通边界。总时长约 0.7s(30% 退场 / 70% 进场)。

阶段缩放模糊不透明度缓动函数时长
退场1 → 0.80 → 10px1 → 0.15power3.in(不透明度:单独的 none 补间)~0.2s
剪切 (tl.set)in: 1.2510px退场: 0 / 进场: 0.15——
进场1.25 → 110 → 0px0.15 → 1expo.out~0.5s

模糊为 10px 文字缩放;仅当两侧都是全屏表面时才使用 18–20px。

符号纪律: 进场场景以已编排好的帧形式出现在收缩的包装器内——在接缝窗口中不得有从小放大的介绍。阶段性入场在收缩稳定后发生,或者从 ≥1 开始然后收缩。

3. 切曲线(默认场景边界)

X/Y 速度匹配剪切——所有场景到场景边界的默认方式,在影片的流向上,而不是强调效果。退场主角向一个方向加速,剪切在运动中途落下,进场主角继续相同方向并减速。总时长约 0.6s;方向 LEFT / RIGHT / UP / DOWN(默认 LEFT)。

局部移动: 约 12% 帧宽(在 1920 分辨率下约 230px)——永远不做全屏离场移动。

方向退场进场起始 → 结束
向左x: 0 → −230x: +230 → 0
向右x: 0 → +230x: −230 → 0
向上y: 0 → −230y: +230 → 0
向下y: 0 → +230y: −230 → 0

机制:

  • 镜像缓动: 退场 power4.in + 进场 power4.out,相同距离和时长——它们是同一个 power4.inOut 的两半,因此在剪切处速度完全匹配。
  • 淡出技巧: 退场不透明度在其行程的约 25–30% 处完成(淡出约 0.18–0.3s vs 运动 0.3–0.34s);进场在其路径中点处从不透明度约 0.35 开始。计时使最后一个淡出元素恰好在剪切处消失——如果出现没有任何东西移动的空隙,会显得死寂。
  • 退场 0.2–0.4s;进场时长 ≥ 退场时长。可选模糊 8–10px。
  • 舞台背景: #root 必须是不透明的(background: var(--canvas-deep, var(--canvas, #000)))——中间窗口剪切会打开一个总和不透明度 < 1 的窗口,否则会闪烁出白色(参见 seam-craft)。

存在 push-slide,但它违反了局部移动和运动中途阶段;优先使用切曲线。

4. 瀑布切(逐字切曲线)

在单词粒度上的切曲线——用于文字到文字接缝的最强向左剪切。退场单词沿着各自的曲线加速离开;进场单词在半空中级联进入——形成一道眼睛跨过接缝时跟随的波浪。

范围: 由工作器在一个多拍合成(堆叠的全屏 .beat 层)内编写,不是注册表/注入器类型——它补间的是单词跨度,而不是剪辑包装器。进出文字拍块的边界仍然使用正常的注册表转场。不占用 2–3 个转场预算。

参数值原因
行程±230px(约 12% 帧宽)局部移动 + 速度 > 全帧推动
退场0.34s power4.in加速本身即是剪切
退场淡出0.18s,与 x 同时开始单词在约 25–30% 行程处消失——无拖影
退场交错按阅读顺序 +0.022s行被剥离,而不是块状滑动
进场0.3s power4.out复合的后半部分——速度匹配
进场起始不透明度0.35路径中点触发;二进制 0→1 会显得生硬
进场间隙0.05s × 0.84 衰减加速级联,最终编排完成

规则:

  • 每个链条只有一个方向,顺应流向。仅当链条的进场拍时才使用反向缩放穿越。
  • 在构建时将所有单词预设为 x: +230, opacity: 0——仅靠 immediateRender: false 会使未开始的单词在静止时可见。
  • 较短的第一个拍可以整行退场:其淡出在剪切前约 0.02s 结束,这样当下一个单词触发时它仍在冲刺——不会出现死寂空隙。
  • 仅使用变换/不透明度(查找安全);不透明舞台背景适用。

5. 移焦模糊切(可见剪切)

唯一一个剪切可见的变体:散焦模糊尖峰隐藏了一个单帧硬交换——类似手持 DSLR 的焦点拉动。偶尔用作同一个视觉主题内同表面状态交换的花式效果;永远不是默认边界。

与其他技术的区别:退场元素保持完全不透明直到剪切(模糊隐藏了交换——没有提前淡出);缓动函数 power2.in / power2.out(柔和光学效果,而非动量)。

规则:

  • 仅在叙事节拍时触发,每约 8s 最多一次;决不在字幕中间或保持期间触发。
  • 在峰值模糊处剪切(≥6px;峰值 8–12px,最大 ≤16–18px)——在模糊上升过程中交换会暴露剪切。
  • 微弱的缩放(约 1.06 镜头呼吸感)使其看起来像光学效果。
  • 两侧方向相同——向量法则仍然适用。进场时长 ≥ 退场时长。
  • 模糊包装器;永远不要对一个元素进行模糊+不透明度合在一个补间中(无头合成错误);永远不要直接模糊 <video>(用包装器包裹它)。

6. 瀑布进场(场景内进场——不是接缝)

交错进场级联:单词/元素从下方(一个一致的方向)快速进入,每个在前一个稳定之前开始——形成一道加速的波浪,最终编排成一个静止布局。用于标题卡、片段开场白、列表/功能特性介绍。其接缝对应的是 §4;不要混淆它们的规则:

§6 进场(到达)§4 瀑布切(接缝)
不透明度通过入场时的 tl.set 进行二进制 0→1——从不淡入在路径中点以 0.35 触发——淡出本身就是速度技巧
默认轴Y,从下方X,顺应流向
退场方无单词在镜像的 power4.in 上加速离开

编排:

  • 重叠,不要排队——下一个元素在前一个稳定后 ±2 帧内开始;间隙在级联中缩小;最后一个元素快速到位。
  • 速度随重量变化——重/锚点元素行程更远、时长更长;轻单词/标点快速到位:
参数锚点/重正常单词轻/标点
Y 偏移60–80px40–50px30–48px
时长0.16–0.20s0.13–0.16s0.10–0.13s
重叠0–2f 间隙1f 重叠1–2f 重叠
  • 缓动 power4.out(使用 expo.out 以获得额外快速感);入场永远不要用 .inOut。
  • 每个级联只有一个方向。
  • 将最后一个单词拆分为片段以延长高潮;片段行程更远。
  • 稳定后,组合通常滑动以腾出空间给下一个拍——这是 §7。

7. 微移曲线(场景内组滑动——不是接缝)

慢-快-慢地重定位一个已编排的组合(单词行、卡片堆、列表)以揭示内容或腾出空间。没有内置的单一缓动函数能做到这一点——power4.inOut 会突然停止。在同一个属性上串联三个补间:

阶段缓动距离时间感觉
1 斜坡进入power3.in约 10%约 20%几乎不动——运动被感知,无冲击
2 爆发none(线性)约 65%约 18%约 2× 平均像素/帧——有目的性
3 尾部power4.out约 25%约 62%衰减至静止——消除冲击感

规则:

  • 尾部时间 ≥ 斜坡进入时间的 3 倍。如果仍有冲击感:延长尾部的时间(而不是距离)或使用 power5.out。
  • 阶段 2 保持线性——缓动它会导致失去爆发对比。
  • 在阶段 2 期间揭示新内容——爆发掩盖其出现。
  • 垂直方向保持相同比例;按比例缩放距离,保持时间比例。

选择变体

缩放穿越反向缩放穿越切曲线瀑布切
范围场景内文字交换进场/高潮拍场景间文字到文字接缝
Z 符号/轴增大(推)缩小(拉)X / YX,逐字
行程/缩放1→1.2, 然后 0.75→11→0.8, 然后 1.25→1±230px±230px
峰值模糊10px 文字 / 18–20 全帧10px 文字 / 18–20 全帧8–10px 可选无
缓动函数power3.in / expo.outpower3.in / expo.outpower4.in / power4.outpower4.in / power4.out
感觉深入探索到达被侧向带动横跨接缝的波浪

反模式

不要这样做为什么
混合接缝类型(例如,在同一剪切中使用缩放穿越和切曲线)破坏视觉流向,造成不连贯的节奏。
在场景内文字交换中使用全屏缩放穿越会显得生硬且脱离上下文;优先使用切曲线或瀑布切。
对进场使用 power4.inOut使入场显得无力且无目标感;使用 power4.out 以获得自然减速。
为模糊而设置模糊,但不匹配速度模糊必须支持速度错觉;否则只是一个花哨的屏幕效果。
在剪切后立即进行从小放大的入场违反 Z 方向符号规则;造成运动冲突。
在一个元素上同时进行模糊+不透明度补间导致无头合成错误;分别处理。
在两个不同方向上连续进行两次切曲线在不自然的方向变化上浪费视觉预算;坚持一个流向。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Drama2557/4RealDigital-Video-Studio

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Drama2557/4RealDigital-Video-Studio

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Drama2557/4RealDigital-Video-Studio

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Drama2557/4RealDigital-Video-Studio

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Drama2557/4RealDigital-Video-Studio

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

Drama2557/4RealDigital-Video-Studio

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

Drama2557/4RealDigital-Video-Studio

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

Drama2557/4RealDigital-Video-Studio

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

Drama2557/4RealDigital-Video-Studio

Install, discover, and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

Drama2557/4RealDigital-Video-Studio

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

Drama2557/4RealDigital-Video-Studio

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Drama2557/4RealDigital-Video-Studio

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Drama2557/4RealDigital-Video-Studio

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Drama2557/4RealDigital-Video-Studio

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

Agent skill / project related to launch or product demo video: Drama2557/4RealDigital-Video-Studio

相关技能