v3.5 — CPU-Only, Fully Offline

AI Video Encoding
Per Shot, Not Per Video

BAVE analyzes every scene individually and predicts optimal x264 parameters using a forward-surrogate ML model. Professional delivery presets: Theatrical, Streaming, Festival. No GPU required — all inference runs on CPU.

3
Delivery Presets
~500
Parameter Candidates / Shot
25
Content Features Analyzed
0
GPU Required

Built for Professional Encoding

Every feature serves one goal: optimal quality per shot with predictable, repeatable results.

🎬

AI Per-Shot Encoding

The forward-surrogate ML model evaluates ~500 parameter candidates per shot and selects optimal x264 settings (CRF, preset, tune, AQ, psy-rd, bframes, subme, deblock, me_range, rc_lookahead, AQ-mode, b-adapt, trellis, direct, hqdn3d, CAS) for that specific scene.

🔍

Dual-Detector Scene Detection

Fused AdaptiveDetector + ContentDetector cascade with adaptive thresholds. Catches hard cuts and gradual transitions. Precision guard drops boundaries where frame-MAD ≤ 2× baseline. No magic numbers — thresholds derived from content's own motion energy.

🎯

Three Delivery Presets

Theatrical: CRF unconstrained, VMAF 96 target, veryslow, grain rewarded.
Streaming: CRF+VBV, ~2500kbps target, VMAF 93, slow preset.
Festival: Two-pass bitrate, exact 1GB file size, slow preset.

🧠

ViT-B/32 Semantic Analysis

INT8-quantized Vision Transformer computes whole-video visual diversity (cosine similarity of frame embeddings). Sampled 30–300 frames adaptively. Cached once per video, reused across all shots. Runs fully on CPU.

🔊

Smart Audio Routing

Auto-detects stereo/surround (5.1/7.1), downmix/upmix with libfdk_aac VBR5, 48kHz SOXR resampling. Single continuous audio track — no per-shot cuts, no clicks. Loudness measured via EBU R128.

⚙️

Format Conversion Pipeline

HDR→SDR tonemap, deinterlace, scale to FHD 8-bit BT.709 in one FFmpeg filter chain. Lossless intermediate (qp=0, ultrafast). Blackbar detection via cropdetect at multiple sample points. All reuse cached media_info — zero redundant ffprobe.

💾

Crash-Resilient Checkpointing

Shot-level state machine: pending → processing → encoded → concatenated → finalized. SQLite checkpoint DB survives power loss/OOM. Resume from any shot. Automatic 72-hour TTL cleanup.

📦

Professional Output Naming

Project folder: FilmName Year Director
Video: FilmName Year Director FHD STEREO THEATRICAL BAVE.mp4
Stills: FilmName Year Director/Stills/FilmName Year Director Stills 00h00m18s.png
Zero underscores. Metadata & copyright embedded in output and stills.

🖥️

Custom Frameless UI

Premium dark theme with glassmorphism. Horizontal filmstrip with shot thumbnails, palette strips, per-shot parameter preview. Real-time resource gauges (CPU/RAM/disk I/O). Drag-drop import. Batch queue with multiple preset selection.

How the AI Pipeline Works

BAVE's encoding pipeline reuses every heavy computation exactly once. No redundant ffprobe, no re-analysis, no silent fallbacks.

Phase 1: Preview (Runs Once Per File)

  1. ffprobe → media_info (duration, fps, resolution, codec, color space, HDR)
  2. inspect_media → deep container analysis
  3. detect_audio_config → audio topology
  4. measure_audio_loudness → LUFS/peak
  5. detect_blackbars_full_video → crop info
  6. analyze_format → conversion decision (HDR→SDR, deinterlace, scale)
  7. convert_video_for_model → FHD 8-bit intermediate (shared with encode)
  8. detect_scenes_fast → shot_starts (dual detector fusion)
  9. compute_semantic_similarity → ViT-B/32 INT8 (cached LRU=20)
  10. analyze_shots_parallel → features + thumbnails + palettes (ThreadPoolExecutor)

Phase 2: Encode (Per-Shot AI Selection)

  1. VideoProfile from pre-provided media_info — zero new ffprobe
  2. Reuse: converted path, shot_starts, features, semantic similarity (cached)
  3. frame_align_cut_points → exact frame boundaries (0-frame drift)
  4. Per-shot: forward surrogate predicts (bitrate, VMAF, time) for each candidate
  5. Scoring: quality_reward − bitrate_penalty − time_penalty − ceiling_penalty ± tune_reconciliation
  6. Best candidate → FFmpeg x264 command (crf, preset, tune, aq, psy-rd, bframes, subme, deblock, me_range, rc_lookahead, aq-mode, b-adapt, trellis, direct, hqdn3d, cas)
  7. Parallel encode pool (mp.Pool, workers = encoding_workers())
  8. Retry: up to 2 inner retries, preset escalation on timeout
  9. Concat via concat demuxer with exact frame counts (-frames:v)
  10. mux_final_output → single continuous audio track + verify_output

Forward Surrogate Models (v5.0)

Three CatBoost GBDT models exported to ONNX for CPU inference. Trained on 178,208 rows from 896 unique clips.

📊

Bitrate Model

R² = 0.633 | MAE = 3591 kbps
Kendall τ = 0.635 | Spearman ρ = 0.823

VMAF Model

R² = 0.530 | MAE = 1.79
Kendall τ = 0.592 | Spearman ρ = 0.775

⏱️

Time Model

R² = 0.757 | MAE = 7.00s
Kendall τ = 0.709 | Spearman ρ = 0.888

Available on Windows, macOS & Linux

Native installers for all major desktop platforms. CPU-only — no GPU, CUDA, Metal, or drivers required.

🪟

Windows 10/11

NSIS installer (~2 GB)
Intel Quick Sync, AMD VCE, NVIDIA NVENC passthrough

Download Windows
🍎

macOS 12+

DMG bundle (~2 GB)
Apple Silicon native, Metal Performance Shaders ready

Download macOS
🐧

Linux (Beta)

AppImage (~2 GB)
Ubuntu 20.04+, VAAPI, NVENC, AMF

Download Linux

Watch BAVE in Action

See how BAVE encodes, licenses, and delivers — all in one platform.

BAVE Demo Video

Real Work Encoded by BAVE

See what independent filmmakers have created using BAVE's AI video encoding pipeline.

Before/After Sample 1

Short Film: "Neon Dreams"

4K → 2K DCP, 24fps, 120 min

Before/After Sample 2

Documentary: "City Pulse"

HDR → SDR, 6K → 4K, 85 min

Before/After Sample 3

Music Video: "Midnight Run"

Upscale 1080p → 4K, 240 fps

License Tiers

Per-seat perpetual license with 1 year updates. Offline activation — no subscription, no phone home.

Personal
$195/seat

1 workstation • Under 45 min videos

  • 1 encoding workstation
  • All 3 delivery presets
  • AI per-shot encoding
  • Ed25519 offline license
  • 1 year updates
  • Email support
  • Device transfer
  • Grant eligibility
  • Streaming preset
  • DCP module
Buy Personal
Enterprise
$4,999/seat

Unlimited + enterprise features

  • Unlimited workstations
  • All 3 delivery presets
  • AI per-shot encoding
  • Ed25519 offline license
  • 1 year updates
  • 24/7 dedicated support
  • Device transfer + bulk mgmt
  • Air-gapped certificates
  • API access for automation
  • Custom SLAs
Contact Sales

Try Before You Buy

Free 7-day trial — full features, no credit card. Offline activation via machine config exchange.

Download Trial

Independent Filmmaker Grant

We provide 100% free Personal licenses for student directors, indie filmmakers, and creators facing regional or financial hardship. Reviewed directly by director Benyamin Khodabandeh.

Apply for Grant