chore: sync code and project files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user