Agentic Video Editing
@codify/agentic-video-editing·Codify official·v1.0.0·Updated 15 h ago
Claude Code with ffmpeg, whisper.cpp, auto-editor, scene detection and a Remotion starter, so an AI agent can edit video for you.
1 appliesmacOS · Linux
Apply with CodifyCustomize a copyInstalls Codify first if you don’t have it.
Opens the template in the Codify dashboard. Applying doesn't create a setup; customizing makes a private copy you can edit.
Or from your terminal
curl -fsSL https://releases.codifycli.com/ensure.sh | bash && codify apply @codify/agentic-video-editingConfiguration
The exact file codify apply uses. Copy it into your own codify.jsonc, or download it.
codify.jsonc142 lines · 4.8 KB
[ { "type": "variable", "name": "desktopApps", "label": "Which desktop apps do you want for reviewing the agent's edits?", "description": "GUI apps installed with Homebrew casks (macOS only). Pick none for a headless setup.", "valueType": "multiEnum", "options": [ "vlc", "shotcut", "kdenlive", "handbrake-app" ], "default": [ "vlc" ] }, { "type": "variable", "name": "remotionStarter", "label": "Set up a Remotion starter project for programmatic video?", "description": "Clones the Remotion hello world template and installs its dependencies.", "valueType": "boolean", "default": true }, { "type": "variable", "name": "remotionDirectory", "label": "Where should the Remotion project go?", "default": "~/videos/remotion-studio", "when": { "remotionStarter": true } }, { "type": "notice", "stage": "plan", "level": "warning", "title": "Before you start", "message": "Claude Code will be allowed to run ffmpeg, whisper-cli, auto-editor and the other media tools without asking. Keep your source footage backed up, and work on copies in a project folder." }, { "type": "homebrew", "formulae": [ "ffmpeg", "whisper.cpp", "auto-editor", "yt-dlp", "imagemagick", "sox", "media-info", "exiftool", "jq" ], "casks": "${{ desktopApps }}" }, { "type": "uv", "pythonVersions": [ "3.12" ], "global": "3.12", "tools": [ "scenedetect" ] }, { "type": "nvm", "nodeVersions": [ "lts" ], "global": "lts" }, { "type": "git-repository", "name": "remotion-starter", "repository": "https://github.com/remotion-dev/template-helloworld.git", "directory": "${{ remotionDirectory }}", "when": { "remotionStarter": true } }, { "type": "project-installs", "name": "remotion-deps", "directories": [ "${{ remotionDirectory }}" ], "packageManagers": [ "npm" ], "dependsOn": [ "nvm", "git-repository.remotion-starter" ], "when": { "remotionStarter": true } }, { "type": "claude-code", "globalClaudeMd": "# Video editing\n\nYou are editing video with command-line tools. Follow these rules:\n\n- Never overwrite source footage. Write every output to a new file (for example `out/`), and keep originals read-only.\n- Inspect before editing: run `ffprobe -v error -show_format -show_streams -of json <file>` and read codecs, duration, resolution, and frame rate first.\n- Prefer stream copy (`-c copy`) for cuts and concatenation when codecs match; only re-encode when filters are needed.\n- Default delivery encode: H.264 (`-c:v libx264 -crf 20 -preset medium -pix_fmt yuv420p`) with AAC audio (`-c:a aac -b:a 192k`) and `-movflags +faststart`.\n- Transcribe with whisper.cpp (`whisper-cli`) to get timestamps, and use the transcript to choose cut points. Generate captions as SRT.\n- Use `auto-editor` to remove silence and `scenedetect` to find shot changes before planning cuts.\n- For programmatic or templated videos (titles, lower thirds, data-driven clips), use Remotion.\n- Render a short low-resolution preview before a full-length render, and report the output path, duration, and size when done.", "settings": { "permissions": { "allow": [ "Bash(ffprobe *)", "Bash(ffmpeg *)", "Bash(mediainfo *)", "Bash(exiftool *)", "Bash(whisper-cli *)", "Bash(auto-editor *)", "Bash(scenedetect *)", "Bash(magick *)", "Bash(sox *)", "Bash(jq *)" ], "deny": [ "Bash(rm -rf *)" ] } } }, { "type": "notice", "level": "success", "title": "Your video editing agent is ready", "message": "1. Download a speech model for whisper.cpp:\n `mkdir -p ~/.whisper && curl -L -o ~/.whisper/ggml-base.en.bin https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin`\n2. Sign in to Claude Code: run `claude`\n3. Open a folder of footage (`cd ~/Videos/my-project && claude`) and ask, for example:\n - \"Remove the silences from interview.mp4 and export it to out/\"\n - \"Transcribe talk.mov, burn in captions, and make a 9:16 version\"\n - \"Split raw.mp4 into scenes and cut a 30 second highlight reel\"" }, { "type": "notice", "level": "info", "title": "Remotion starter", "message": "Run `cd ${{ remotionDirectory }} && npm run dev` to open Remotion Studio, or start `claude` there and ask it to build a title card or data-driven video.", "dependsOn": [ "git-repository.remotion-starter", "project-installs.remotion-deps" ], "when": { "remotionStarter": true } }]