Skip to content
@tmg1-labs

TMG1 Labs

Lightweight 1-bit monochrome video format for microcontrollers (ESP32).

TMG1 Labs

TMG1 is a lightweight 1-bit monochrome (bitplane) video format designed for microcontrollers — small enough to store and play back smooth animation on an ESP32 driving a 128×64 OLED.

Compression runs on a PC; playback runs on the device. A single shared C++ codec is used on both sides so the encoder and decoder never drift apart.

Repositories

Repository Language Role
tmg1-codec C++17 Shared codec library (encoder/decoder). Used by both the firmware and the CLI via a C FFI.
tmg1-esp32-demo C++ / PlatformIO ESP32 firmware: reads a .tmg1 file from flash and plays it on a U8g2 OLED.
tmg1-cli Rust Command-line encoder/transcoder (ffmpeg pipeline → .tmg1).
tmg1-studio TypeScript / Tauri Desktop GUI for per-segment 1-bit (monob) conversion with live preview.

Format Specification

Highlights

  • 64-bit Range coder__uint128_t-free arithmetic coding (works on MSVC).
  • Rice coder — run-length entropy coding with fixed / per-line / per-frame k.
  • Prediction filters — None / Left / Up, auto-selected per frame.
  • Delta (P) frames, scene-change detection, and variable frame rate.
  • Streamed, low-memory I/O — frames are processed one at a time.

License

Each repository is published under the MIT License.

Popular repositories Loading

  1. .github .github Public

    Organization profile for tmg1-labs

  2. tmg1-codec tmg1-codec Public

    Shared C++ codec library for the TMG1 video format (64-bit range coder v2), used by the ESP32 demo and Rust CLI

    C++

  3. tmg1-cli tmg1-cli Public

    Rust CLI for the TMG1 codec — encodes/decodes TMG1 video via FFI to tmg1-codec

    Rust

  4. tmg1-esp32-demo tmg1-esp32-demo Public

    ESP32 reference demo that plays TMG1 video on an OLED display (PlatformIO)

    C++

  5. tmg1-studio tmg1-studio Public

    Desktop GUI (Tauri) for authoring 1-bit monochrome (monob) video with per-segment tuning; optional direct TMG1 export

    TypeScript

Repositories

Showing 5 of 5 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…