Skip to content

About

Next-gen desktop subtitle & lyric video studio — featuring native Japanese Furigana, per-word vocal timing, cosmic particles, and FFmpeg export.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SubStellar

SubStellar

Next-Generation Animated & Particle Subtitle Studio

English • Bahasa Indonesia • 日本語 • 简体中文

License: MIT OR Apache-2.0 Tauri v2 Rust 1.94+ React 19 PixiJS v8 TypeScript Platform: Windows | macOS | Linux Performance

A high-performance desktop studio for crafting animated lyric & subtitle videos with cosmic particle effects, double-stroke glow typography, native Japanese Furigana tokenization, per-word vocal synchronization, and 1-click YouTube integration — engineered with a Rust Core and wrapped in an obsidian Gatefold interface.

Key Features • Rust Core Architecture • Tech Stack • Quick Start • Keyboard Shortcuts • License


SubStellar Studio Demo

Gatefold OKLCH Studio — Native Japanese Furigana, Per-Word Vocal Timing, PixiJS v8 60 FPS Viewport & RMS Waveform Timeline


Why SubStellar?

Creating expressive animated lyric and subtitle videos today usually forces creators into one of two extremes:

  • Too Complex: Traditional subtitle tools (Aegisub) require writing complex Lua automation scripts (kara-templater / PyonFX) for word animations and particle effects.
  • Too Heavy & Rigid: Mainstream video editors (CapCut / Premiere Pro / After Effects) lack native support for Japanese Furigana (ruby readings above Kanji), consume massive amounts of RAM (often 16 GB+), and make manual per-word vocal timing tedious.

SubStellar bridges the gap: as intuitive as CapCut, as visually expressive as After Effects, and as lightweight as Aegisub—engineered to maintain a rock-solid 60 FPS even on low-end laptops with 4 GB RAM and integrated Intel HD Graphics.


Key Features

  • High-Performance Rust Core Engine: Heavy computation tasks (morphological tokenization, audio waveform downsampling, and subtitle parsing/generation) run natively in Rust for near-instant execution and zero-GC memory efficiency.
  • Native Japanese Furigana Tokenizer (Lindera + IPADIC): Fast, accurate morphological analysis with embedded dictionary support, mapping Kanji to Hiragana/Romaji without bloating the browser heap.
  • Dynamic RMS Waveform Peak Extractor (Symphonia + FFmpeg): Native audio decoding with RMS + averaged peak downsampling, displaying clear musical dynamics without brick-wall waveform clipping.
  • 1-Click YouTube Media Downloader (yt-dlp): Paste any YouTube URL, choose your target video resolution (360p to 4K) or audio stream, and download directly into the studio with automatic thumbnail & palette extraction—no Google API key required.
  • Multi-Source Synced Lyrics Engine: Search and import synchronized lyrics from 5 online providers (LRCLIB, NetEase Cloud Music, QQ Music, Kugou, Musixmatch) or local .lrc, .srt, and .vtt files via native zero-copy Rust parsers.
  • Granular Per-Word & Per-Character Vocal Timing:
    • Automatic smart tokenization for Latin, CJK (Japanese/Chinese), and mixed scripts.
    • Split & Merge Controls: Split any word into individual characters (Split to Chars / All Chars) or merge neighboring tokens (← Merge Left / Merge Right →).
    • Per-Word Animation Mute: Disable vocal animation on specific words or punctuation (Anim: OFF (Static)) so non-sung tokens remain still without triggering motion or particles.
    • Word-to-Word Transition Styles: Choose between Pop Bounce, Karaoke Sweep, Smooth Sweep, and Vocal Float with customizable transition duration (0ms–500ms) and draggable word boundaries directly on the waveform timeline.
  • Furigana / Ruby Text & Secondary Translations: Supports {漢字|かんじ} inline ruby syntax with visual click-to-edit controls, plus dedicated secondary translation subtitles rendered simultaneously.
  • Real-Time Zero-GC Particle Engine (PixiJS v8): Hundreds of stardust, sparkle, sakura, cosmic, firefly, and heart particles burst on vocal beats at 60 FPS using pre-allocated object pooling and reused GPU textures to prevent memory leaks.
  • Unlimited Typography & Position Customization: Customize fill colors, active word highlight color, gradient stops, double-stroke outlines, vertical anchor (Bottom / Center / Top), and unrestricted X/Y pixel offsets with both sliders and direct numeric inputs.
  • Gatefold 3-Zone Workspace & Resizable Inspector: Obsidian dark UI with dynamic OKLCH ambient backlighting, classic top menu bar (File, Subtitle, View, Export), multi-lane non-overlapping timeline, and a draggable divider to resize the right inspector sidebar.
  • Native Project Save/Open & Hardware Video Render (FFmpeg):
    • Save and restore complete .substellar project files via native OS Explorer dialogs, backed by automatic session recovery (localStorage + IndexedDB media cache).
    • Full Canvas Overlay Pipe (WebSocket Sparse RLE): Ultra-fast streaming of rendered canvas frames to local FFmpeg with full particle and furigana visual parity (BT.709 colorimetry).
    • Fast Hardware ASS Burn-In: Direct GPU-accelerated video encode (NVENC / QSV / AMF / libx264) with multi-layer styled subtitle burn-in.
    • Subtitle File Export: Native Rust export for .ass (with full \k karaoke tags & Furigana positioning) and .srt with target path confirmation and Show in Explorer.

Rust Core Engine

SubStellar features a dedicated Rust Core (src-tauri/) that offloads compute-heavy workloads from the TypeScript frontend:

flowchart LR
  subgraph FE["Frontend — React 19 & TypeScript"]
    UI["Gatefold OKLCH Studio UI"]
    PIXI["PixiJS v8 60 FPS Viewport & Zero-GC Particles"]
    TIMELINE["Interactive Waveform & Ruby Editor"]
    STORE["Zustand High-Frequency Store"]
  end

  subgraph CORE["Rust Core — Tauri v2 (src-tauri)"]
    LINDERA["Lindera Morphological Analyzer (IPADIC)"]
    SYMPHONIA["Symphonia Audio Decoder & RMS Peaks"]
    PARSER["Zero-Copy ASS / SRT / LRC Parser"]
    PIPE["WebSocket Sparse RLE Pipe & FFmpeg Prober"]
  end

  FE -- "Tauri v2 IPC & Loopback WS" --> CORE
Loading

Tech Stack

Layer Technology Role
Desktop Shell & Core Tauri v2 (Rust 1.94+) Native window management, file dialogs, process control, and core computing engines.
Frontend React 19 + TypeScript (Strict) Declarative studio UI, strict type safety, and zero-re-render playback loop.
Rendering Canvas PixiJS v8 (WebGPU / WebGL) Zero-allocation 60 FPS subtitle layout, double-stroke typography, and particle bursts.
Design & Theming Tailwind CSS + Gatefold OKLCH Perceptually uniform OKLCH color tokens and ambient dynamic palette extraction.
State Management Zustand High-frequency playhead synchronization (getState() in RAF) without React tree thrashing.
NLP & Furigana Lindera (Rust) + Kuromoji Fallback Native Japanese morphological tokenization with memory-mapped dictionary support.
Audio Processing Symphonia (Rust) + Web Worker Native audio decoding with RMS + peak downsampling for timeline waveform.
Media & Render FFmpeg (Native / Sidecar) Hardware encoder probing (NVENC/QSV/AMF), sparse RLE frame pipe, and ASS hardware burn-in.
Media Fetcher yt-dlp + Rust Allowlist Proxy Multi-resolution YouTube video/audio downloading and CORS-free lyrics fetching.

Quick Start (Build from Source)

1. Common Prerequisites

2. OS-Specific Setup

Windows (10 / 11)
  1. Install Visual Studio C++ Build Tools and select the "Desktop development with C++" workload.
  2. Ensure Microsoft Edge WebView2 is installed (already included in Windows 11 and updated Windows 10).
  3. Install FFmpeg and yt-dlp (for example via winget):
    winget install Gyan.FFmpeg yt-dlp.yt-dlp
macOS (Apple Silicon / Intel)
  1. Install Xcode Command Line Tools:
    xcode-select --install
  2. Install FFmpeg and yt-dlp via Homebrew:
    brew install ffmpeg yt-dlp
Linux (Ubuntu / Debian / Fedora / Arch)
  1. Install Tauri v2 WebKitGTK dependencies, build tools, FFmpeg, and yt-dlp:
    # Ubuntu / Debian
    sudo apt update && sudo apt install -y \
      libwebkit2gtk-4.1-dev build-essential curl wget file \
      libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev \
      ffmpeg yt-dlp
    (For Fedora, use webkit2gtk4.1-devel + @development-tools; for Arch, use webkit2gtk-4.1 + base-devel.)

3. Clone, Run & Build

# 1. Clone the repository
git clone https://github.com/SayMaven/sub-stellar.git
cd sub-stellar

# 2. Install frontend dependencies
npm install

# 3. Launch the Tauri v2 desktop app in development mode
npm run tauri dev

# 4. Or compile a native production installer
npm run tauri build

Generated installers will be placed under src-tauri/target/release/bundle/:

  • Windows: msi/ (.msi) & nsis/ (.exe)
  • macOS: dmg/ (.dmg) & macos/ (.app)
  • Linux: deb/ (.deb) & appimage/ (.AppImage)

Keyboard Shortcuts

Shortcut Action
Space Play / Pause media playback
Ctrl + N Add new empty subtitle line at playhead
Ctrl + S Save Project (.substellar)
Ctrl + Shift + S Save Project As (.substellar)
Delete Delete selected subtitle line
Ctrl + K Open YouTube Media Downloader
Ctrl + Q Cycle Hardware Quality Profile (Low / Balanced / Ultra)
Ctrl + Shift + D Toggle Real-Time Performance Telemetry (FPS, Frame Time, Particles)

License & Acknowledgments

SubStellar is dual-licensed under your choice of either:

See LICENSE for details.

Special Thanks & Inspiration:

  • Gatefold: Inspiration for the OKLCH design language and multi-source lyrics architecture.
  • PixiJS: High-performance 2D WebGL/WebGPU rendering engine.
  • Tauri: Lightweight, secure cross-platform desktop framework.
  • Lindera: Fast morphological analysis library in Rust.
  • Symphonia: Pure Rust media decoding library.

About

Next-gen desktop subtitle & lyric video studio — featuring native Japanese Furigana, per-word vocal timing, cosmic particles, and FFmpeg export.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages