Skip to content

feat: a teaser from several matches (python main.py teaser) - #66

Merged
duffarn-dev merged 1 commit into
developfrom
feat/teaser-many
Nov 4, 2026
Merged

duffarn-dev merged 1 commit into
developfrom
feat/teaser-many

Conversation

@duffarn-dev

Copy link
Copy Markdown
Owner

The user's choice for teasers from a match with few kills (2026-11-04): take kills from several matches, "best of the week", so it's always about 30 s.

python main.py teaser runs/<id> runs/<id> ... --music "<song>" [--out <folder>]

  • It takes the kills of all the runs. The best climax kill of them all is the hero on the drop, and the other runs' climax kills are ordinary cuts. Otherwise it's the same teaser as finish --teaser (feat: a teaser next to the film (finish --teaser) #65): it speeds up into the drop, the climax goes on the drop, then quicker cuts and an end card.
  • Runs without an edit plan or raw clips are skipped, with a note. It uses the raw clips, so it has to run before cleanup.
  • The song is found by name in the music folder, subfolders included, with or without the extension. A path works too. The default is the first run's track.
  • The output is runs/teaser-<time>/teaser.mp4, or --out.
  • build_teaser now takes a list of runs, and finish --teaser passes one.

How it was tested

tests/test_teaser.py, new section "best of the week":

  • the hero is the best climax across two runs
  • the other run's climax kill is one of the cuts
  • the rendered teaser: 9 cuts plus the hero, the drop in the middle (12.26 of 24.6 s), the music's drop on the hero kill
  • with two runs, it's longer than with one (24.6 s against 14.4 s)

The one-run tests pass unchanged.

Real matches: the four matches from the mixtape, with "Final Braam": 30.7 s, 23 kills, the drop at 15.4 s. That's filmer/fragsmith-teaser-ukas-beste.mp4.

🤖 Generated with Claude Code

"Best of the week": the kills of several finished runs, so a teaser gets
its 30 s. The best climax kill goes on the drop; the others' climax kills
are cuts. The song is found by name in the music folder's subfolders too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@duffarn-dev duffarn-dev added this to the v0.4.0 milestone Nov 4, 2026
@github-actions github-actions Bot added the feature A new feature or effect label Nov 4, 2026
@duffarn-dev
duffarn-dev merged commit 75d716c into develop Nov 4, 2026
5 checks passed
@duffarn-dev
duffarn-dev deleted the feat/teaser-many branch November 4, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new feature or effect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant