fix(P0): legacy渲染引擎5项normalize补全 + ffmpeg错误日志增强 #511

Merged
auto-approve-bot merged 3 commits from fix/p0-legacy-normalize-and-error-log into develop 2026-07-18 15:07:59 +08:00

3 Commits

Author SHA1 Message Date
CI Bot 957e0c12a6 style: ruff修复f-string前缀和getattr常量
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 24s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 58s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 57s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 38s
AI Code Review / AI Code Review (pull_request) Successful in 2m22s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m47s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 3m21s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m19s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 5m45s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 32s
2026-07-18 15:02:01 +08:00
CI Bot be082ff6a3 style: black格式化测试文件
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 16s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 21s
AI Code Review / AI Code Review (pull_request) Failing after 37s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 49s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 39s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 1m9s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 26s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 1m40s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m33s
2026-07-18 14:41:27 +08:00
CI Bot 9a2eb0ca60 fix(P0): legacy渲染引擎补全5项normalize + 错误日志增强
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 16s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5s
AI Code Review / AI Code Review (pull_request) Failing after 34s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 51s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 40s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 1m28s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 25s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 1m50s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m48s
背景:one_take模式用横屏+不同编码/采样率的素材渲染exit=234崩溃。
根因是concat前视频/音频格式不完全统一,且错误日志只输出版本号看不到真正报错。

修复1 — 视频像素格式统一:
- _build_clip_filter 加 format=yuv420p,放在pad之后fps之前
- 确保 concat 前所有片段像素格式一致(yuv420p/yuv422p/yuv444p/nv12等都统一)

修复2 — xfade路径音频归一化:
- _build_xfade_filter 的音频concat前加 aformat 归一化(48000Hz+stereo+fltp)
- 之前只修了concat路径,xfade(转场)路径漏了

修复3 — legacy渲染错误日志增强:
- 失败时输出完整 ffmpeg 命令(前2000字符)
- 输出完整 stderr 最后1500字符(真正的错误信息)
- 输出 exit code
- 之前只输出版本号,完全看不到 concat 失败的真实原因

测试:新增3个单测(format=yuv420p、xfade音频归一化、xfade单音频acopy),42个相关单测全过

关联:#406
2026-07-18 14:27:56 +08:00