chore(repo): 将生产源码基线同步回 main #1

Merged
WuYongJie merged 265 commits from codex/production-48-20261030 into main 2026-10-30 16:39:58 +08:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit a5f4ad0385 - Show all commits

View File

@ -88,7 +88,7 @@ export async function renderEditPlan(
audio = `a${i}`;
}
await ffmpeg([
...normalized.flatMap((file) => ["-i", file]),
...normalized.flatMap((file) => ["-threads", "2", "-i", file]),
"-filter_complex",
filters.join(";"),
"-map",

View File

@ -41,6 +41,8 @@ def analyze(data):
result={'scenes':[], 'active':[], 'subtitles':[], 'beats':[], 'warnings':[]}
duration=data.get('duration',0)
if data.get('video'):
import cv2
cv2.setNumThreads(2)
from scenedetect import detect,AdaptiveDetector
result['scenes']=[[round(a.get_seconds()*1e6),round(b.get_seconds()*1e6)] for a,b in detect(data['video'],AdaptiveDetector(min_scene_len=15),start_in_scene=True)] or [[0,duration]]
if data.get('audio'):