cebe6e3bd5
- 畫面用 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>
24 lines
445 B
JSON
24 lines
445 B
JSON
{
|
|
"roi": [
|
|
3300,
|
|
1770,
|
|
300,
|
|
140
|
|
],
|
|
"sample_interval": 1.0,
|
|
"progress_every": 60,
|
|
"stop_seconds": 4.0,
|
|
"speed_threshold": 0,
|
|
"min_confidence": 0.5,
|
|
"smooth_window": 5,
|
|
"merge_gap": 3.0,
|
|
"cut_before_stop": 2.0,
|
|
"keep_after_stop": 2.0,
|
|
"min_keep": 0.8,
|
|
"use_gpu": true,
|
|
"reencode": false,
|
|
"transition": true,
|
|
"transition_duration": 0.5,
|
|
"video_transition": "fadeblack",
|
|
"base_dir": "E:\\videos"
|
|
} |