Skip to content

raea cut: take audio-only takes (a voice-over cut by its words) - #101

Closed
SirSicard wants to merge 1 commit into
shinyobjectz:mainfrom
SirSicard:cut-audio
Closed

SirSicard wants to merge 1 commit into
shinyobjectz:mainfrom
SirSicard:cut-audio

Conversation

@SirSicard

Copy link
Copy Markdown
Contributor

Requested by Mattias

Part of #89 (item 2).

raea cut take.wav --at 0-1 refused with no take "tone.wav" under media/ (none). The take list only knew video extensions, and shot detection opened every take as video.

What changes

  • engine/cli/src/native.ts lists wav, mp3, m4a, aac, flac, aif, aiff, ogg and opus.
  • Audio cuts skip shot detection and snap to a 30 fps grid, and cuts.ts gets kind: "audio".
  • The template plays audio clips as <Audio>. The registry is regenerated with bun tools/pack.ts.

Tested on main 5b2c773

raea cut tone.wav --at 0-1 --at 2-3:

  • main: REFUSED ... (none).
  • This branch: 2 clips, 2.0 s, words.json written.

Rendering the template over the result gives a 2.0 s mp4 with the tone at -21.1 dB mean. cargo test -p raea-cli passes.

Also merged onto main 0ea4eab together with the other open PRs from this review: their crates' tests pass (118, 0 failed).


🤖 Generated with Claude Code

…rds)

takes() listed only video extensions, so a .wav or .mp3 under media/ was
"no take ... (none)", and cutPlan's `media cuts` refuses audio anyway.
Audio takes (wav mp3 m4a aac flac aif aiff ogg opus) are now listed, cut
without jump-cut detection on the 30 fps grid, written to cuts.ts with
kind: "audio", and the edit template plays them as <Audio>. Checked:
`raea cut take.wav --at 0-1 --at 2-3` and `raea cut vo "I didn't start
in tech" "That's the whole job"` on an mp3, then a render of the template
edit with the tone audible.
Part of shinyobjectz#89

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shinyobjectz

Copy link
Copy Markdown
Owner

Thanks. raea cut takes sound-only takes as of 09ee785 (audio files become sound clips with no shot cuts, and the edit template plays them with ). Closing as covered; the report and this PR shaped it.

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.

2 participants