Skip to content

Film editor: speed, detached clip sound, fades, clip-sound blend (render v5, #408) - #155

Merged
apedintensor merged 1 commit into
mainfrom
design/v5-editor-408
Oct 21, 2026
Merged

apedintensor merged 1 commit into
mainfrom
design/v5-editor-408

Conversation

@apedintensor

Copy link
Copy Markdown
Member

Frontend for inkseq/h3-studio#408 against the accepted render-v5 backend contract (fields selectedVideoRange.playback_rate, track detached / slow_rate_audio_enabled / fade_in_s / fade_out_s, filmCuts[chapterId].clip_sound_crossfade_s). Gated on chapter_render.render_contract_version >= 5.

Verified:

  • New film-v5.test.js reproduces Codex's fixture lengths (3 s @0.75 → 96, 2 s @2 → 24, 2 s @0.5 → 96; 216 frames) plus span pinning, allowlist, filmCuts sibling preservation, detach placement, slow-rate mute and fade limits. npm test all pass.
  • Local preview against staging as qa-user: speed buttons show; 2× turns a 3.0 s clip into 1.5 s, the preview video plays at playbackRate 2; back to 1× restores 3.0 s. Crossfade select shows.
  • Not browser-tested: detach and fades with a real generated FLAC (no QA story has one); covered by unit tests. A real export comparison comes with the #408 UI acceptance.

🤖 Generated with Claude Code

…end (render v5, #408)

Controls appear only when chapter_render advertises render_contract_version 5.
- Speed 0.5-2x on selectedVideoRange.playback_rate; the first change pins the span the
  clip plays now; length N = floor(M/rate + 1/2) with exact fractions, as the exporter.
- A clip's own sound plays at the clip's speed and is silent below 0.75x unless turned on
  (slow_rate_audio_enabled). Detach makes it an independent track at its current place,
  normal speed, movable and trimmable.
- Music/voice/detached tracks get fade in/out (fade_in_s/fade_out_s, within the track).
- filmCuts[chapter].clip_sound_crossfade_s (0/0.25/0.5/1, default 0.5) kept beside shotIds.
- Remotion preview: playbackRate on video and own sound, volume envelopes for fades and
  the half-window boundary blend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apedintensor
apedintensor merged commit 4c2f48b into main Oct 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant