Auto-editor for raw video recordings — cuts silences and filler words and writes a native Kdenlive project with synced .srt captions.
Find a file
pedro-bento 6e75312c97
Some checks failed
CI / lint-and-test (push) Successful in 13s
CI / lint-and-test (pull_request) Successful in 12s
Version bump / version-bump (pull_request) Failing after 6s
feat(render): support multi-input concatenated --render
Render the kept segments of multiple inputs into one MP4 by normalizing
each branch (yuv420p video, stereo fltp 48 kHz audio) and joining them
with ffmpeg's concat filter in input order, matching the order used by
the generated .kdenlive project. A single input keeps the existing
single-`-i` graph and output unchanged.

- add MultiRenderPlan, build_multi_render_graph, build_multi_render_command
- extract shared _input_render_fragments for single/multi builders
- render_video now accepts one track or a sequence of tracks
- default multi-input render output is <first-stem>_concat.mp4
- drop the single-input --render guard; update README and --render help
2026-10-06 20:40:12 +01:00
.forgejo/workflows Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00
tests feat(render): support multi-input concatenated --render 2026-10-06 20:40:12 +01:00
.gitignore Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00
cadence.py feat(render): support multi-input concatenated --render 2026-10-06 20:40:12 +01:00
LICENSE Initial commit 2026-09-30 16:53:46 +01:00
pytest.ini Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00
README.md feat(render): support multi-input concatenated --render 2026-10-06 20:40:12 +01:00
ruff.toml Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00

cadence

High-retention auto-editor for raw video recordings. It transcribes your audio, cuts silences and filler words, and writes a native .kdenlive project ready for final polish — plus .srt captions and an LLM-friendly transcript.

Quick start

Linux

# uv — installs to ~/.local/bin
curl -LsSf https://astral.sh/uv/install.sh | sh

# FFmpeg — pick your distro
sudo apt install ffmpeg                           # Debian / Ubuntu
sudo dnf swap ffmpeg-free ffmpeg --allowerasing   # Fedora
sudo pacman -S ffmpeg                             # Arch

# Run
uv run cadence.py recording.mp4 --preset balanced --captions
  • uv installs to ~/.local/bin; make sure that directory is on your PATH (the installer normally adds it — otherwise export PATH="$HOME/.local/bin:$PATH" in your shell profile).
  • Fedora: enable RPM Fusion first. Fedora ships ffmpeg-free, which conflicts with the full ffmpeg package, so swap rather than install — sudo dnf swap ffmpeg-free ffmpeg --allowerasing.
  • Nobara: codecs are managed by Nobara and manual changes are blocked. Run nobara-sync install-codecs (or the Codec Wizard) instead of dnf swap.

macOS

brew install uv ffmpeg

uv run cadence.py recording.mp4 --preset balanced --captions

Windows (PowerShell)

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"   # uv
winget install -e --id Gyan.FFmpeg                                                   # FFmpeg

uv run cadence.py recording.mp4 --preset balanced --captions

Install as a command (Linux & macOS)

Make cadence available everywhere by symlinking the script into a directory on your PATH:

chmod +x cadence.py
mkdir -p ~/.local/bin
ln -sf "$PWD/cadence.py" ~/.local/bin/cadence

Now call it from any directory:

cadence recording.mp4 --preset balanced --captions

~/.local/bin is added to PATH by the uv installer; if it isn't, add export PATH="$HOME/.local/bin:$PATH" to your shell profile (~/.bashrc, ~/.zshrc, etc.).

Output

  • recording.kdenlive — the edited project.
  • recording.srt and recording_llm_transcript.txt — generated when --captions is used.

Pass --render to have cadence encode the final recording.mp4 itself (same cut decisions) instead of opening Kdenlive; with multiple inputs the kept segments are concatenated in sequence order into one MP4. Add --keep-project to also write the .kdenlive project.

Presets: relaxed, balanced, punchy. See all options with uv run cadence.py --help.

Development

Run the linter and tests locally:

uvx ruff check .
uv run --with pytest pytest -q

The test suite needs only pytest — cadence.py imports nothing third-party at module level, so no torch/whisper/ffmpeg is required to run it. CI runs both via Forgejo Actions (.forgejo/workflows/ci.yml).