Watch
1
0
Fork
You've already forked bitrot
0
A desktop video editor for datamoshing and glitch effects, including pixel sorting, RGB distortion, and VHS-style artifacts. Create experimental and distorted videos through a simple interface 💫
  • TypeScript 61.6%
  • Rust 27%
  • SCSS 9.6%
  • JavaScript 1.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-02-02 20:31:03 +01:00
.github/workflows chore(ci): update draft release workflow 2026-02-01 20:45:39 +01:00
public fix(web): serve favicon from tauri png 2026-02-01 20:45:46 +01:00
scripts build(ffmpeg): resolve real binaries to avoid shim sidecars 2026-02-01 00:34:36 +01:00
src Merge branch '1.0.2' of github.com:sixem/bitrot into 1.0.2 2026-02-02 20:31:03 +01:00
src-tauri Merge branch '1.0.2' of github.com:sixem/bitrot into 1.0.2 2026-02-02 20:31:03 +01:00
.gitignore chore: portable script + miscellaneous 2026-01-28 17:03:12 +01:00
icon.png feat: fix stream mapping/odd-size scaling, harden datamosh export, update README 2026-01-27 16:56:11 +01:00
index.html fix(web): serve favicon from tauri png 2026-02-01 20:45:46 +01:00
LICENSE Initial commit 2026-01-26 18:10:29 +01:00
package.json chore(release): bump package version to 1.0.2 2026-02-02 20:30:42 +01:00
pnpm-lock.yaml chore: rest commits 2026-01-29 17:35:54 +01:00
README.md fix: correct header formating 2026-02-02 04:00:08 +01:00
TESTS.md docs: refresh test docs and README 2026-01-30 23:39:25 +01:00
tsconfig.json feat: fix stream mapping/odd-size scaling, harden datamosh export, update README 2026-01-27 16:56:11 +01:00
tsconfig.node.json feat: fix stream mapping/odd-size scaling, harden datamosh export, update README 2026-01-27 16:56:11 +01:00
vite.config.ts chore(repo). update docs and add test tooling 2026-01-29 17:34:22 +01:00

BitRot

BitRot (/ˈbɪt.rɒt/ noun) — A simple interface for creating glitchy video effects

ui

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):

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:

  1. ffmpeg(.exe) / ffprobe(.exe) next to the app executable (packaged builds)
  2. Sidecars in binaries/ (packaged into app resources) or src-tauri/binaries/ (dev)
  3. System PATH as a final fallback

For development and building, use names that match your platform target triple:

  • Windows (x64 MSVC):

    • ffmpeg-x86_64-pc-windows-msvc.exe
    • ffprobe-x86_64-pc-windows-msvc.exe
  • macOS (Intel):

    • ffmpeg-x86_64-apple-darwin
    • ffprobe-x86_64-apple-darwin
  • Linux (x64 GNU):

    • ffmpeg-x86_64-unknown-linux-gnu
    • ffprobe-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.264 requires even dimensions. If a clip is odd-sized (for example 1921x1081), 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.