包含内容: - 应用程序: temp-auto-editor (带货短视频自动化剪辑系统) - 项目: auto-editor, FableCut, footage_screener - 文档: 视频工作流, chatcut, latentdync - 配置: config.toml, .env - 技能: kimi-webbridge - MCP 包装器: gitea wrapper.js - 记忆文件: memories/*.md - 会话摘要: session_index.jsonl 备份日期: 2026-07-27 14:00:28
15 lines
492 B
Python
15 lines
492 B
Python
import sys
|
|
sys.path.insert(0, "C:\\Users\\runst\\Projects\\auto-editor\\src")
|
|
|
|
from pathlib import Path
|
|
from auto_editor.core.scene_detector import SceneDetector
|
|
|
|
video_path = Path("C:\\Users\\runst\\Downloads\\test_meimei.mp4")
|
|
|
|
detector = SceneDetector()
|
|
scenes = detector.detect_scenes(video_path, threshold=0.5)
|
|
|
|
print(f"TransNetV2: {len(scenes)} scenes detected")
|
|
for i, s in enumerate(scenes[:5]):
|
|
print(f" Scene {i+1}: {s['start']:.2f}s - {s['end']:.2f}s ({s['duration']:.2f}s)")
|