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-clipsRun 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
- 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 - Python environment:
python3 -m venv /var/cache/clips/venv && /var/cache/clips/venv/bin/pip install -r requirements.txt - Speech model (downloaded once, loaded offline afterwards):shPut the printed path in
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'))"asr.model. The face model for the caption speaker check:shinstall -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 - 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. - Config: copy
config/clips.example.tomlto/etc/clips/clips.toml(0640 root:clips) and set the category (twitch.category_name),run.timezoneandweb.bind.twitch.client_idis optional: leave it asREPLACE_MEto paste the Client ID on the review site during first setup instead. - 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 - Install a release: on Proxmox, copy
deploy/deploy.env.exampletodeploy/deploy.env, fill it in and rundeploy/deploy.sh. For a host without Proxmox, build the review app on your deploying machine first:shCopy the source tree topnpm --dir web install --frozen-lockfile pnpm --dir web generate/opt/clips/releases/<rev>and copy the contents ofweb/.output/public/into that release'swebui/directory. Then rundeploy/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.