新增剪接點轉場: 畫面淡出淡入 + 聲音恆定功率交叉淡化

- 畫面用 FFmpeg xfade(預設 fadeblack 淡出到黑再淡入),逐段串接並正確計算 offset
- 聲音用 acrossfade 等功率曲線(c1=qsin:c2=qsin)= 恆定功率,與畫面同步重疊
- 開啟轉場會自動重新編碼;偵測到 NVIDIA 顯卡時用 h264_nvenc 硬體加速 4K
- 新增 config 參數: transition / transition_duration / video_transition
- 轉場長度自動夾到比最短片段小,避免 xfade 出錯;單一片段時免轉場直接無損切出
- 已實測 3 段 4K 片段串接,輸出時長與音畫同步皆正確;同步更新 README

本次調整由 Claude Opus 4.8 (1M context) 協助開發與處理。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-02 18:59:35 +08:00
parent 8f5c01b56c
commit cebe6e3bd5
3 changed files with 137 additions and 3 deletions
+3
View File
@@ -17,5 +17,8 @@
"min_keep": 0.8,
"use_gpu": true,
"reencode": false,
"transition": true,
"transition_duration": 0.5,
"video_transition": "fadeblack",
"base_dir": "E:\\videos"
}