Repository navigation
v0.3.3 — Shorts music intelligence
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. Usesebur128short-term loudness as an energy proxy and returns the start second of the most energeticdur-length window, so the whole Short rides the chorus/drop. Wired intobuild_one_short(bgm_start='auto')(default). (Don't addmetadata=1to 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_shortnow compresses the BGM withacompressorso chorus/breakdown dynamics even out while per-beat transients survive.dynaudnorm/loudnormdo 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_bgmto avoid the audible loop jump.
Full changelog: CHANGELOG.md → [0.3.3].