Reverse-engineer any video, shot by shot: filmed, AI-generated or coded, and how to remake it. Breakdowns in the open VIDEO.md format. 逆向一切视频,逐个镜头看是拍的、AI 生成的还是代码做的,再告诉你怎么复刻;拆解结果按 VIDEO.md 格式输出。
Python agent-skillsai-videoaigc-detectionclaude-codecodexffmpegprompt-engineeringremotionreverse-engineeringshort-videoshot-detectionsubtitlesvideo-analysisvideo-breakdownvideo-editingvideo-generationvideomdvlm
Tell Windows users how to install ffmpeg and Python, and how to link the skill
xdAsaah1526ca3b3c9c
diff --git a/rea_video/cli.py b/rea_video/cli.pyindex bc864a8..ebcb990 100644--- a/rea_video/cli.py+++ b/rea_video/cli.py@@ -1002,8 +1002,8 @@ def main(argv: list[str] | None = None) -> int:except MediaError as exc: # missing ffmpeg / unreadable video: one line, not a tracebackhint = ""if "not found on PATH" in str(exc):- hint = T("\n安装 ffmpeg:macOS `brew install ffmpeg`,Ubuntu/Debian `sudo apt install ffmpeg`",- "\ninstall ffmpeg: macOS `brew install ffmpeg`, Ubuntu/Debian `sudo apt install ffmpeg`")+ hint = T("\n安装 ffmpeg:macOS `brew install ffmpeg`,Ubuntu/Debian `sudo apt install ffmpeg`,Windows `winget install Gyan.FFmpeg`",+ "\ninstall ffmpeg: macOS `brew install ffmpeg`, Ubuntu/Debian `sudo apt install ffmpeg`, Windows `winget install Gyan.FFmpeg`")print(f"rea-video: {exc}{hint}", file=sys.stderr)if args.verbose:raisediff --git a/scripts/install_skill.sh b/scripts/install_skill.shold mode 100755new mode 100644index a788c5f..f363968--- a/scripts/install_skill.sh+++ b/scripts/install_skill.sh@@ -6,7 +6,7 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd)"# ---- ffmpeg ----if ! command -v ffmpeg >/dev/null 2>&1 || ! command -v ffprobe >/dev/null 2>&1; then- echo "⚠ 没找到 ffmpeg / ffprobe,rea-video 跑不起来。安装:macOS 'brew install ffmpeg',Ubuntu/Debian 'sudo apt install ffmpeg'" >&2+ echo "⚠ 没找到 ffmpeg / ffprobe,rea-video 跑不起来。安装:macOS 'brew install ffmpeg',Ubuntu/Debian 'sudo apt install ffmpeg',Windows 'winget install Gyan.FFmpeg'" >&2fi# ---- Python >= 3.10 ----@@ -32,7 +32,7 @@ if [ -z "$PY" ]; thenfiif [ -z "$PY" ] || ! py_ok "$PY"; thenecho "✗ 需要 Python ≥ 3.10(当前 ${PY:-python3}: $("${PY:-python3}" --version 2>&1 || echo 未安装))。" >&2- echo " macOS: brew install [email protected];Ubuntu: sudo apt install python3.12 python3.12-venv;然后 PYTHON_BIN=python3.12 bash $0" >&2+ echo " macOS: brew install [email protected];Ubuntu: sudo apt install python3.12 python3.12-venv;Windows: winget install Python.Python.3.12;然后 PYTHON_BIN=python3.12 bash $0" >&2exit 1fiecho "使用 $PY($("$PY" --version 2>&1))"diff --git a/skills/rea-video/references/setup.md b/skills/rea-video/references/setup.mdindex a7030c2..5492b13 100644--- a/skills/rea-video/references/setup.md+++ b/skills/rea-video/references/setup.md@@ -8,6 +8,16 @@ pip install "rea-video[ocr] @ git+https://github.com/JuneYaooo/rea-video" #rea-video --help```+**Windows**(`install_skill.sh` 是 bash 脚本,没装 Git Bash 时手动做这三步):++```powershell+winget install Gyan.FFmpeg # 或 choco install ffmpeg;装完新开一个终端+pip install "rea-video[ocr] @ git+https://github.com/JuneYaooo/rea-video"+New-Item -ItemType Junction -Path "$HOME\.claude\skills\rea-video" -Target "<仓库路径>\skills\rea-video"+```++`Junction` 不需要管理员权限(`SymbolicLink` 需要);仓库路径带中文或空格不用特殊处理。`rea-video pdf` 会用 `Program Files` 或 `%LOCALAPPDATA%` 下的 Chrome / Edge,装在别处就设 `REA_CHROME`。+pip 报 `externally-managed-environment`(Homebrew / 新版 Ubuntu 的系统 Python)时,不要加 `--break-system-packages`,改用`pipx install "rea-video[ocr] @ git+https://github.com/JuneYaooo/rea-video"`,或直接跑 `install_skill.sh`(会自动改用 pipx 或仓库内 `.venv`)。