Terafilm is a cli tool for editing videos with natural language.
It uses groq for generating ffmpeg commands.
- Node.js 18+
- ffmpeg and ffprobe available on your PATH
- Groq API key (stored locally)
Global (from npm):
npm i -g termafilmFrom source (this repo):
npm install
npm run build
npm linkSet once (writes to ~/.termafilm):
termafilm -k YOUR_GROQ_API_KEYCheck what is stored:
termafilm -gBasic flow (approve before running):
termafilm -i input.mp4 -p "Extract audio to mp3" -o output.mp3Auto‑execute without prompt:
termafilm -i clip.mov -p "Resize to 1920x1080 at 30 fps" -o clip_1080p.mp4 -yQuiet execution (suppress ffmpeg stdout/stderr):
termafilm -i input.mp4 -p "Trim first 10 seconds" -o trimmed.mp4 -y -qIf any required flag is missing, TermaFilm prints:
Usage: termafilm -i <input file> -p <prompt> -o <output file>
Use termafilm -h for help
-i, --inputInput file path (required)-p, --promptNatural‑language request (required)-o, --outputOutput file path (required and must NOT already exist)-y, --yesExecute without interactive confirmation-q, --quietSuppress ffmpeg output while running-k, --setkeySave Groq API key to~/.termafilm-g, --getkeyPrint the saved key