Skip to content

v0.3.3 — Shorts music intelligence

Choose a tag to compare

@Hao0321 Hao0321 released this 22 Jun 18:28
· 82 commits to main since this release

Music intelligence for vertical Shorts — auto-pick the right track, start it at the hook, and keep the volume even. Distilled from cutting a batch of food/travel Shorts where ambient picks felt flat and dynamic tracks swung loud→quiet.

Added (silent_vlog_maker.shorts_vertical)

  • find_music_highlight(bgm, dur) — Shorts BGM shouldn't start at the boring intro. Uses ebur128 short-term loudness as an energy proxy and returns the start second of the most energetic dur-length window, so the whole Short rides the chorus/drop. Wired into build_one_short(bgm_start='auto') (default). (Don't add metadata=1 to ebur128 — it suppresses the per-frame lines this parses.)
  • beat_rate(bgm) — rhythmic-density proxy (peak count per second of ebur128 momentary loudness). Ambient ~1/s, upbeat/quick-cut/vocal-chop ~2.5–3/s. Tell energetic tracks from mood pieces by measurement, not filename guessing.
  • pick_bgm(candidates, dur, prefer='energetic') — automatic track selection: from same-theme candidates, pick the one that's long enough (no loop) AND most energetic. prefer='chill' for relaxed footage.

Fixed

  • BGM volume swings loud→quiet — build_one_short now compresses the BGM with acompressor so chorus/breakdown dynamics even out while per-beat transients survive. dynaudnorm/loudnorm do NOT fix this (measured); a compressor does (≈8→4 dB swing).
  • Short-track loop seam — warns when BGM is shorter than the video; use pick_bgm to avoid the audible loop jump.

Full changelog: CHANGELOG.md → [0.3.3].