feat(#1758): FFmpeg 渲染加速——preset medium→fast + 多线程 + 环境变量可覆盖 (#1757)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 3s
CI/CD Pipeline / Check push changed paths (push) Successful in 10s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 35s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 42s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Successful in 56s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 32s
CI/CD Pipeline / Validate - Style (push) Has been cancelled
CI/CD Pipeline / Validate - Security (push) Has been cancelled
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Has been cancelled
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Unit Tests (push) Has been cancelled
CI/CD Pipeline / Build Staging Web Image (push) Has been cancelled
CI/CD Pipeline / Retag skipped Staging API Image (push) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Web Image (push) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
CI/CD Pipeline / PR Build Web Image (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
Preview Deploy / Deploy Preview Environment (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 214h45m37s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 214h45m44s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 214h45m38s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 214h45m45s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 214h45m46s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 214h45m48s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 214h45m47s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 214h46m29s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 214h46m30s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 214h46m31s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 214h46m31s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 214h46m31s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 214h46m32s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 214h46m36s
CI/CD Pipeline / Frontend Lint (push) Failing after 214h46m38s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 214h46m40s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 214h46m40s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 214h46m40s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 214h46m40s
CI/CD Pipeline / PR Build API Image (push) Failing after 214h46m41s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 214h46m41s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 214h46m42s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 215h20m17s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 215h20m25s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 215h21m8s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 215h21m9s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 215h21m10s
CI/CD Pipeline / PR Build Web Image (push) Failing after 215h21m18s

Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #1757.
This commit is contained in:
2026-09-07 16:37:35 +08:00
committed by auto-approve-bot
parent 87a61b7f2b
commit debb3a5d67
6 changed files with 388 additions and 15 deletions
+3 -2
View File
@@ -9,6 +9,7 @@ from dataclasses import dataclass
from typing import List
import ffmpeg
from shared.ffmpeg_utils import FFMPEG_ENCODE_CRF, FFMPEG_ENCODE_PRESET
logger = logging.getLogger(__name__)
@@ -90,8 +91,8 @@ class VideoProcessor:
acodec="aac",
s=f"{width}x{height}",
r=fps,
preset="medium",
crf=23,
preset=FFMPEG_ENCODE_PRESET,
crf=int(FFMPEG_ENCODE_CRF),
)
.overwrite_output()
.run(capture_stdout=True, capture_stderr=True)