fix: address AI code review - probe defaults to no audio, safe af filter
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 35s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 40s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 29s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m32s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m46s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m51s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m22s
AI Code Review / AI Code Review (pull_request) Failing after 2m36s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m44s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m33s
CI/CD Pipeline / Validate - Code Quality (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 567h15m6s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 567h15m22s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 567h15m54s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 567h15m54s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 567h15m54s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 567h15m58s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 567h15m56s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 567h15m58s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 567h49m12s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 567h49m48s

- render_audio.py: simple mode builds af_parts list then joins into single -af (defensive against future multi-clip)
- unified_render_service.py: probe_has_audio exception now defaults to False with warning log (was unsafe True)
- test: add test_pass_through_probe_exception_defaults_to_no_audio
This commit is contained in:
xiaoxia
2026-08-24 00:10:07 +08:00
parent e3420610a3
commit 2f76509a5b
3 changed files with 29 additions and 3 deletions
+5 -1
View File
@@ -294,9 +294,13 @@ def concat_main_audio(
"-ac",
"2",
]
# 单 clip 简单模式:将所有音频滤镜合并为单个 -af 参数(避免多个 -af 冲突)
af_parts: list[str] = []
vol = _clip_volume(clip)
if abs(vol - 1.0) >= 1e-6:
command.extend(["-af", f"volume={vol:.4f}"])
af_parts.append(f"volume={vol:.4f}")
if af_parts:
command.extend(["-af", ",".join(af_parts)])
if trim_start > 0:
command.extend(["-ss", f"{trim_start:.3f}"])
if final_duration > 0: