preview_mix
Mix background music under a video with optional speech ducking, generating a preview MP3, low-res MP4, ffmpeg command, and re-appliable mix spec JSON for editors.
Instructions
Mix BGM under the video: hook trim, loop if needed, optional speech ducking.
Returns preview mp3 + low-res mp4 paths, the ffmpeg command, and a mix_spec JSON an editor (CapCut / Premiere / DaVinci / your agent) can re-apply.
Ducking uses ffmpeg sidechaincompress when the video has speech. Seed tracks without audio files get a synthesized CC0 demo bed so the pipeline still runs offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bgm_db | No | ||
| ducking | No | ||
| asset_id | Yes | ||
| track_id | Yes | ||
| voice_db | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||