Skip to content

Install stream-clips ​

Check the requirements first. These steps prepare the Linux service host; they do not run on the phone or desktop used to review clips.

Clone or download the repository on your deploying machine:

sh
git clone https://github.com/slugb0t/stream-clips.git
cd stream-clips

Run the host setup as root. In a Proxmox deployment, prepare the container first and run the deployment script on the Proxmox host.

Prepare the host and deploy ​

  1. User and directories (as root):
    sh
    useradd --system --home /var/lib/clips --shell /usr/sbin/nologin clips
    install -d -o root -g clips -m 0750 /etc/clips /etc/clips/secrets
    install -d -o clips -g clips -m 0750 /var/lib/clips /var/cache/clips /srv/clips-media
    install -d -o clips -g clips -m 0700 /var/lib/clips/secrets
  2. Python environment: python3 -m venv /var/cache/clips/venv && /var/cache/clips/venv/bin/pip install -r requirements.txt
  3. Speech model (downloaded once, loaded offline afterwards):
    sh
    HF_HOME=/var/cache/clips/hf /var/cache/clips/venv/bin/python -c \
      "from huggingface_hub import snapshot_download; print(snapshot_download('mobiuslabsgmbh/faster-whisper-large-v3-turbo'))"
    Put the printed path in asr.model. The face model for the caption speaker check:
    sh
    install -d -o clips -g clips /var/cache/clips/models
    curl -fL -o /var/cache/clips/models/face_landmarker.task \
      https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task
  4. Twitch app: register an application in the Twitch developer console with client type Public (the form requires an HTTPS redirect URL such as https://localhost; the device code flow does not use it). Copy the Client ID.
  5. Config: copy config/clips.example.toml to /etc/clips/clips.toml (0640 root:clips) and set the category (twitch.category_name), run.timezone and web.bind. twitch.client_id is optional: leave it as REPLACE_ME to paste the Client ID on the review site during first setup instead.
  6. Review-site password: openssl rand -base64 18 > /etc/clips/secrets/web_password && chown root:clips /etc/clips/secrets/web_password && chmod 0640 /etc/clips/secrets/web_password
  7. Install a release: on Proxmox, copy deploy/deploy.env.example to deploy/deploy.env, fill it in and run deploy/deploy.sh. For a host without Proxmox, build the review app on your deploying machine first:
    sh
    pnpm --dir web install --frozen-lockfile
    pnpm --dir web generate
    Copy the source tree to /opt/clips/releases/<rev> and copy the contents of web/.output/public/ into that release's webui/ directory. Then run deploy/install.sh <rev> on the service host as root. Node is not needed there.

Open the app ​

Open the private address configured by web.bind and sign in with the review-site password. Basic auth is provided by the browser.

Continue with Connect Twitch and add streamers. You do not need a measured pilot run to start reviewing clips.

When the services look healthy, you can optionally start a measured run with clips run start --days 7. See How the pipeline works for what it measures.