mcp-demo/applications/temp-auto-editor/temp-auto-editor/test_transnetv2_final.py
Codex Backup 6d96585d42 Initial backup of Codex development projects
包含内容:
- 应用程序: 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
2026-07-27 14:00:29 +08:00

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)")