- TypeScript 61.6%
- Rust 27%
- SCSS 9.6%
- JavaScript 1.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| public | ||
| scripts | ||
| src | ||
| src-tauri | ||
| .gitignore | ||
| icon.png | ||
| index.html | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| TESTS.md | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
BitRot
BitRot (/ˈbɪt.rɒt/ noun) — A simple interface for creating glitchy video effects
Showcase
Pixelsort: Smears and reorders pixels along lines or bands, turning motion and edges into streaky, glitchy gradients.
-
Example (Pixelsort)
Chroma Glitch: Splits and offsets color channels to create RGB drift, halos, and jittery color separation.
-
Example (Chroma Glitch)
Datamosh: Emulates compression corruption and motion‑vector bleed for fluid, melting transitions between frames.
-
Example (Datamosh)
VHS: Adds retro tape artifacts/scanlines, noise, wobble, and soft tracking drift, for that worn‑out analog feel.
-
Example (VHS)
Development
Prereqs (typical Tauri + Vite stack):
-
Node 20.19+/22.12+
-
pnpm (or npm if you absolutely prefer)
- Can be installed via:
npm install -g pnpm
- Can be installed via:
-
Rust (stable)
- See: https://rustup.rs/
-
Tauri system prereqs for your OS/distro
Install and run:
# install packages
pnpm install
# if you need to load the ffmpeg/ffprobe binaries from PATH:
pnpm run setup:ffmpeg
# start development environment
pnpm tauri dev
Tests
Frontend tests (Vitest):
pnpm test
Rust tests:
cd src-tauri
cargo test
See TESTS.md for coverage details.
Dependencies (ffmpeg/ffprobe)
This project expects ffmpeg and ffprobe as sidecar binaries.
Place them in:
src-tauri/binaries/
Quick setup (copies from your PATH):
pnpm run setup:ffmpeg
ffmpeg is resolved in this order:
ffmpeg(.exe)/ffprobe(.exe)next to the app executable (packaged builds)- Sidecars in
binaries/(packaged into app resources) orsrc-tauri/binaries/(dev) - System
PATHas a final fallback
For development and building, use names that match your platform target triple:
-
Windows (x64 MSVC):
ffmpeg-x86_64-pc-windows-msvc.exeffprobe-x86_64-pc-windows-msvc.exe
-
macOS (Intel):
ffmpeg-x86_64-apple-darwinffprobe-x86_64-apple-darwin
-
Linux (x64 GNU):
ffmpeg-x86_64-unknown-linux-gnuffprobe-x86_64-unknown-linux-gnu
Tauri resolves these from the base names binaries/ffmpeg and binaries/ffprobe.
Build + portable zip (Windows)
To build a portable zip on Windows:
pnpm run setup:ffmpeg
pnpm tauri build
pnpm run make:portable
Notes
- Some files include multiple video tracks; BitRot always targets the first video stream plus the first audio stream (if present).
H.264requires even dimensions. If a clip is odd-sized (for example1921x1081), BitRot trims a single pixel to keep encoders happy.- Datamoshing is intentionally destructive, so the result isn't always perfect, and some videos may work better than others for certain modes.