包含内容: - 应用程序: 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
14 lines
465 B
Python
14 lines
465 B
Python
from scenedetect import detect, ContentDetector
|
|
|
|
video_path = "C:\\Users\\runst\\Downloads\\test_meimei.mp4"
|
|
|
|
print(f"Testing PySceneDetect on: {video_path}")
|
|
print()
|
|
|
|
# Detect scenes
|
|
scene_list = detect(video_path, ContentDetector(threshold=27.0))
|
|
|
|
print(f"Detected {len(scene_list)} scenes:")
|
|
for i, (start, end) in enumerate(scene_list):
|
|
print(f" Scene {i+1}: {start.get_timecode()} - {end.get_timecode()} ({end.get_seconds() - start.get_seconds():.2f}s)")
|