fix(#463): 直通模式调速失效 - final_duration未考虑调速导致减速场景被截断 (#625)
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1m29s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1395h48m11s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1395h48m13s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1395h48m13s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1395h48m15s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Has been skipped
CI/CD Pipeline / Build Staging Web Image (push) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1396h20m19s
CI/CD Pipeline / Build Production API Image (push) Failing after 1396h20m20s
CI/CD Pipeline / ACR Image Cleanup (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1m29s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1395h48m11s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1395h48m13s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1395h48m13s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1395h48m15s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Has been skipped
CI/CD Pipeline / Build Staging Web Image (push) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1396h20m19s
CI/CD Pipeline / Build Production API Image (push) Failing after 1396h20m20s
CI/CD Pipeline / ACR Image Cleanup (push) Has been skipped
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #625.
This commit is contained in:
@@ -1050,8 +1050,10 @@ class UnifiedRenderService:
|
||||
|
||||
vf_str = ",".join(filters)
|
||||
|
||||
# 最终输出时长:取 clip 有效时长和 video_duration 的较小值
|
||||
final_duration = effective_duration
|
||||
# 最终输出时长:取 clip 调速后有效时长和 video_duration 的较小值
|
||||
# 注意:必须用调速后的时长,否则减速场景(speed<1)会被 -t 截断
|
||||
adjusted_duration = UnifiedRenderService._clip_adjusted_duration(clip)
|
||||
final_duration = adjusted_duration
|
||||
if video_duration > 0 and (final_duration <= 0 or final_duration > video_duration):
|
||||
final_duration = video_duration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user