Duck soundtrack when using clip audio

This commit is contained in:
hbrain 2026-05-28 16:39:02 +00:00
parent 2ca263dd58
commit af3fd51226
2 changed files with 44 additions and 8 deletions

View file

@ -229,7 +229,7 @@ The most common visual timing/styling tweaks are exposed as constants near the t
| `INTRO_LOGO_EXTRA_HOLD` | Extra seconds the synthesized intro still remains before the first crossfade. | `6.0` |
| `INTRO_LOGO_FADE_OFFSET` | Minimum time (s) the logo stays fully visible before the first xfade is allowed to start. | `3.0` |
| `INTRO_LOGO_DEFAULT_ALPHA` | Default opacity for the intro logo (1 = fully opaque, 0 = invisible). | `1.0` |
| `INTRO_TITLE_FADE_DELAY` | Seconds after start before the main title begins fading in. | `2.0` |
| `INTRO_TITLE_FADE_DELAY` | Seconds after start before the main title begins fading in. | `3.0` |
| `INTRO_TITLE_FADE_LENGTH` | Seconds the fade-in/out lasts. | `1.0` |
| `INTRO_TITLE_VISIBLE` | Seconds the title stays fully visible between fade in/out. | `4.0` |
| `DEFAULT_IMAGE_DURATION` | Default fully visible time per still image before fades are added. | `6.0` |
@ -239,6 +239,7 @@ The most common visual timing/styling tweaks are exposed as constants near the t
| `DEFAULT_AUDIO_FADE_OUT` | Default audio fade-out duration. | `10.0` |
| `DEFAULT_VIDEO_FADE` | Default video fade-in/out duration for the first/last real clips. | `1.0` |
| `INTRO_VIDEO_FADE_ENABLED` | Whether the synthesized intro/logo pad gets the global fade-in effect (`False` keeps it fully visible from frame 0). | `False` |
| `CLIP_AUDIO_FADE` | Seconds used to fade video clip audio in/out while ducking the soundtrack. | `0.75` |
Adjust these constants and rerun `movmaker.py` to change the intro behavior without touching the rest of the pipeline.
@ -253,6 +254,7 @@ Adjust these constants and rerun `movmaker.py` to change the intro behavior with
- includes video clips inline
- crossfades between media items over `DEFAULT_CROSSFADE_DURATION` seconds by default (3s)
- loops/trims music to match the video
- when a clip's "Use video file audio" option is enabled, movmaker crossfades (`CLIP_AUDIO_FADE` seconds) from the soundtrack to that clip's audio, ducks the music while it plays, then fades the music back in
- if no audio file exists in the input folder, searches Jamendo using `--music-genre` and downloads one random Creative Commons track that allows non-commercial reuse and derivative works; default query is `cinematic punk rock`
- reads the Jamendo client ID from `JAMENDO_CLIENT_ID` or `~/.config/movmaker/jamendo.env`
- fades music in over `DEFAULT_AUDIO_FADE_IN` seconds (2s) and out over `DEFAULT_AUDIO_FADE_OUT` seconds (10s) by default