chore: sync code and project files

This commit is contained in:
Tony Zhang
2026-01-09 14:09:16 +08:00
parent 3d1fb37769
commit 30d7eb4b35
94 changed files with 12706 additions and 255 deletions

View File

@@ -502,11 +502,20 @@ class VideoComposer:
current_video = fancy_path
# 7. 添加 BGM
# 说明add_bgm 的 ducking=True 路径使用 sidechaincompress但该滤镜本身不做“混音”
# 在某些 ffmpeg 版本/参数组合下会导致 BGM 听起来像“没加上”。
# 我们在 compose() 里已禁用 ducking这里保持一致使用 amix 叠加并提高默认音量。
if bgm_path:
bgm_output = str(Path(temp_root) / f"{output_name}_bgm.mp4")
ffmpeg_utils.add_bgm(
current_video, bgm_path, bgm_output,
bgm_volume=0.15
current_video,
bgm_path,
bgm_output,
bgm_volume=0.20,
ducking=False,
duck_gain_db=-6.0,
fade_in=1.0,
fade_out=1.0,
)
self._add_temp(bgm_output)
current_video = bgm_output