Skip to main content

AI image generation platform and video-audio synchronization tool with real-time waveform visualization

Project description

Slopbox

Slopbox combines multiple AI image generation models into a web interface with video-audio synchronization capabilities. It handles AI image generation, stores results in a browsable gallery, maintains a database of prompts, and provides professional video sync tools.

Features

AI Image Generation

  • Multiple AI models (Flux, Recraft) with real-time progress tracking
  • Gallery with favorites, slideshows, and prompt management
  • Batch generation and Claude-powered prompt modification

Video Sync Tool

  • Browser-based video-audio synchronization with waveform visualization
  • Real-time crossfading between original and replacement audio
  • Dual export: browser-based (WebCodecs) and server-side (FFmpeg)
  • Optimized encoding with smart video stream copying

Quick Start

Easiest Way (No Installation)

Run directly with uvx:

# Full slopbox application (recommended)
uvx slopbox

# Video sync tool only
uvx videosync --from slopbox

# With custom options
uvx slopbox --port 8080 --host 0.0.0.0
uvx videosync --from slopbox --port 3000

Installation

Install from PyPI with any Python package manager:

# With uv (recommended)
uv add slopbox

# With pip
pip install slopbox

# With pipx (for CLI tools)
pipx install slopbox

Running the Applications

After installation, you can run either application with simple commands:

# Video sync tool only
videosync                        # Default: localhost:8000
videosync --port 3000            # Custom port
videosync --host 0.0.0.0         # Accessible from network
videosync --no-reload            # Disable auto-reload

# Full slopbox application  
slopbox                          # Default: localhost:8000
slopbox --port 8080 --host 0.0.0.0  # Custom host and port

# Get help
videosync --help
slopbox --help

Development

For development with hot reloading:

# Clone and install in development mode
git clone https://github.com/mbrock/slopbox
cd slopbox
uv sync

# Start development servers
make videosync    # or ./dev videosync
make slopbox      # or ./dev slopbox --port 8080

Environment Setup

# Set up API keys for image generation (optional for video sync)
export REPLICATE_API_KEY=your_replicate_api_key
export ANTHROPIC_API_KEY=your_anthropic_api_key

Video Sync Requirements

For server-side video export, install FFmpeg:

# macOS
brew install ffmpeg

# Ubuntu/Debian  
sudo apt install ffmpeg

Development Commands

make help          # Show all available commands
make videosync     # Start video sync tool
make slopbox       # Start full application
make install       # Install dependencies
make lint          # Run code linting
make format        # Format code
make test          # Run tests
make clean         # Clean temporary files

Project Structure

  • src/slopbox/ - Main application code
  • src/slopbox/videosync.py - Video sync router and functionality
  • videosync_app.py - Standalone video sync application
  • dev.py - Development server launcher
  • static/ - Client-side assets (CSS, JS)

The video sync tool can run standalone or as part of the main application at /video-sync.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slopbox-0.5.1.tar.gz (91.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slopbox-0.5.1-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file slopbox-0.5.1.tar.gz.

File metadata

  • Download URL: slopbox-0.5.1.tar.gz
  • Upload date:
  • Size: 91.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.18

File hashes

Hashes for slopbox-0.5.1.tar.gz
Algorithm Hash digest
SHA256 50e034a5df44f2788f2b34bdce6819322a3a855d7d1be527f76ce432d3cfd2ca
MD5 cbc6a0649763bcb79320085d10cbcdab
BLAKE2b-256 d95238afbcdc055b5999614d1cec8247ded7d5e90d57f2c9117f6a2a6b87f38c

See more details on using hashes here.

File details

Details for the file slopbox-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: slopbox-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.18

File hashes

Hashes for slopbox-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac133aad487970225108f15d231f6693975161b77cb7aeed693110ae3bd688b3
MD5 e6c7bc76e6b9c6f67607ce3da1c5b3a2
BLAKE2b-256 027e876055e12345380f108b32ec82c02af283d2beea0bb7c2f09211d2869d11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page