This is a thin web client for a directory containing video files.
Installation is optional. It's recommended to use multimedia directly either by using uvx or docker (see running below).
pip install multimediaFFmpeg is required for video processing (thumbnail generation and metadata extraction).
- macOS:
brew install ffmpeg - Ubuntu/Debian:
sudo apt install ffmpeg - Windows: Download from ffmpeg.org or use
choco install ffmpeg
When using Docker, FFmpeg is included in the image.
docker run \
-p 8028:8028 \
-v ${PWD}:/media \
ozkatz/multimediaIf you have uv installed, you can call multimedia directly with uvx:
MULTIMEDIA_DIR="${PWD}" uvx multimediaIf installed via pip, simply run:
MULTIMEDIA_DIR="${PWD}" multimediaConfiguring Multimedia is done using environment variables. Typically, minimal configuration is required:
| Env var | Default Value | Description |
|---|---|---|
MULTIMEDIA_DIR |
. |
Path to the directory to index video files and images from |
MULTIMEDIA_PASSPHRASE |
(none) | If set, requires this passphrase to access the UI and API |
To protect your multimedia server with a passphrase:
MULTIMEDIA_DIR="${PWD}" MULTIMEDIA_PASSPHRASE="your-secret-passphrase" uvx multimediaWhen a passphrase is configured:
- Users must enter the passphrase in the browser before accessing the UI
- API requests require a
Bearertoken in theAuthorizationheader - The passphrase is stored in the browser's session storage (cleared when tab closes)
Once you have a multimedia server running, access it in your web browser:
http://localhost:8028/
- Python 3.10+
- Node.js 18+
- uv (Python package manager)
- FFmpeg (for video processing)
Clone the repository and install dependencies:
git clone https://github.com/ozkatz/multimedia.git
cd multimedia
# Install Python dependencies
uv sync
# Install frontend dependencies
cd frontend
npm installThe React frontend must be built before running the server:
cd frontend
npm run buildThis outputs the production build to src/multimedia/static/.
Start the backend server:
MULTIMEDIA_DIR="/path/to/videos" uv run multimediaFor frontend development with hot reload, run in a separate terminal:
cd frontend
npm run devThe Vite dev server proxies API requests to http://localhost:8028.
Build the Python package:
# Ensure frontend is built first
cd frontend && npm run build && cd ..
# Build wheel
uv buildThe wheel will be in dist/.
To publish a new version:
# Build frontend and package
cd frontend && npm run build && cd ..
uv build
# Publish to PyPI (requires PyPI token)
uv publishTo publish to TestPyPI first:
uv publish --publish-url https://test.pypi.org/legacy/Set your PyPI token via environment variable or keyring:
export UV_PUBLISH_TOKEN=pypi-your-token-heredocker build -t multimedia .This project is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.