Skip to main content

Single-stream live player with rolling buffer, clipping, and recording

Project description

Clippiti

Single-stream live player with rolling buffer, clipping, and recording.

Clippiti is a PyQt6 desktop app that opens a live stream through Streamlink, keeps a rolling local buffer, and lets you export clips or recordings without leaving the player.

Features

  • Live stream playback via Streamlink + mpv
  • Rolling HLS buffer pipeline (Streamlink -> ffmpeg)
  • Clip export from buffered timeline
  • Recording with optional auto-remux to MP4
  • Floating controls, keyboard shortcuts, and OSD feedback
  • YAML config with runtime-editable settings dialog
  • CLI overrides for Streamlink and mpv options

Supported OS: Linux, Windows, macOS

Requirements

  • Python 3.12+
  • Desktop environment that supports PyQt6 apps

Non-Python dependencies

Clippiti requires these external tools at runtime:

  • mpv / libmpv (used by python-mpv for playback)
  • ffmpeg

streamlink is installed from Python packaging (clippiti-player dependency), so you do not need to install a system streamlink package.

Install them with your OS package manager.

Linux:

# Ubuntu / Debian
sudo apt install mpv libmpv2 ffmpeg

# Fedora
sudo dnf install mpv mpv-libs ffmpeg

# Arch Linux
sudo pacman -S mpv ffmpeg

macOS:

brew install mpv ffmpeg

Windows (PowerShell, using Scoop):

scoop install mpv ffmpeg

Verify they are available in PATH:

mpv --version
ffmpeg -version

Verify Python-installed Streamlink version from the same environment used to run Clippiti:

python -m streamlink --version

Install

From PyPI (recommended):

pip install clippiti-player

or with pipx:

pipx install clippiti-player

Run:

clippiti <url> <quality>

Install from source (development)

git clone <your-repo-url>
cd clippiti
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e .

Alternative without editable install:

PYTHONPATH=src ./.venv/bin/python -m clippiti <url> <quality>

Command-line options

positional:
  url                      Stream URL to open
  quality                  Desired stream quality

optional:
  --sl TEXT                Pass-through Streamlink arguments string
  --mpv TEXT               Additional mpv options (YAML or key=value)
  --config PATH            Path to config YAML file
  --workdir PATH           Path to runtime working directory
  --verbose                Enable verbose startup logs

Example:

clippiti https://www.twitch.tv/example_channel best --sl "--retry-max 5" --mpv "vf=hflip"

Configuration

Clippiti stores configuration in YAML.

Resolution order:

  1. --config <path> if provided
  2. User config location (clippiti.yaml) if it exists
  3. <workdir>/config.yaml if it exists
  4. Fallback to <workdir>/config.yaml (or ./clippiti.yaml if no workdir)

User config location (clippiti.yaml) is typically:

  • Linux: ~/.config/clippiti.yaml
  • Windows: %APPDATA%\clippiti.yaml
  • macOS: ~/Library/Application Support/clippiti.yaml

Default workdir is:

  • /tmp/clippiti

Development

Install dev/test deps (already included in requirements.txt):

source .venv/bin/activate
pip install -r requirements.txt

Run tests:

PYTHONPATH=src ./.venv/bin/python -m pytest -q

Documentation

Troubleshooting

  • Stream metadata probe fails:
    • Verify URL is online/public
    • Verify streamlink is installed and runnable
  • Playback pipeline does not start:
    • Verify ffmpeg is installed and reachable
    • Use --verbose to inspect startup logs
  • mpv/video issues:
    • Verify python-mpv is installed
    • Try with simpler --mpv options first

License

MIT License - see LICENSE if present in this repository.

Acknowledgments

  • Streamlink
  • ffmpeg
  • PyQt6
  • python-mpv

Screenshots

Main Window Clip Dialog Settings Dialog

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

clippiti_player-0.1.9.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

clippiti_player-0.1.9-py3-none-any.whl (170.5 kB view details)

Uploaded Python 3

File details

Details for the file clippiti_player-0.1.9.tar.gz.

File metadata

  • Download URL: clippiti_player-0.1.9.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clippiti_player-0.1.9.tar.gz
Algorithm Hash digest
SHA256 4246b793c3d9767db418f466d921f995bc16a2c2a495b5fd18ed4d6728b5c89a
MD5 5c0a63188c146e194078410cbc71da19
BLAKE2b-256 a249a46c75ac617af0690aaeb8a2f09b07f50619cd029d34bf4f9f1bc27823a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for clippiti_player-0.1.9.tar.gz:

Publisher: publish.yml on tarzasai/clippiti

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clippiti_player-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: clippiti_player-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 170.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clippiti_player-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 081595001dcc258aa0bda0d123b5fcd52ae230e14ebce8bbe8fe4d081dcaa3b0
MD5 836b1b6216561813ab20c9450d6781ab
BLAKE2b-256 e9bf3bcf7ae9fae68eeb1056edb426c3a72409a4ce2ff0d3774069e6ae383d66

See more details on using hashes here.

Provenance

The following attestation bundles were made for clippiti_player-0.1.9-py3-none-any.whl:

Publisher: publish.yml on tarzasai/clippiti

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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