Windows¶
-
Tools
Open a new terminal so both are on PATH. -
Code: copy the repo folder (everything except
streams/,.venv/,logs/) toC:\clipper(or anywhere), then in it:Theuv sync --extra gpu --extra faces --extra discord # worker + serve + bot; a bot-only machine needs only --extra discordgpuextra pulls torch 2.8 with CUDA 12.8 from the PyTorch index (pinned in pyproject.toml). The CUDA toolkit is not needed; the wheels bring the runtime and cuDNN. Ifclippa doctorsays torch sees no CUDA GPU, the CPU wheel slipped in: -
Config: copy
clipper.tomlfrom the main machine. Things to change per machine: [paths] streams: the NAS share, e.g."//nas/clipper/streams"or a mapped drive. Every machine must see the same streams folder.[cut] clip_codec:h264_qsvneeds an Intel GPU; on an NVIDIA-only desktop useh264_nvenc(driver 610+ for ffmpeg 8.1) orlibx264.clippa doctortest-encodes it.-
[transcribe] compute_type = "int8_float16"andbatch_size = 4on cards under 8 GB. Anything can also be set per machine inclipper.local.toml(whatclippa setupwrites) or with an env varCLIPPER_<SECTION>_<KEY>, e.g.CLIPPER_CUT_CLIP_CODEC=libx264, so one shared clipper.toml can stay identical. -
Secrets: copy
secrets/(discord_token.txt,youtube_client_secret.json,youtube_token.json; only the machine that uploads needs the YouTube files). -
Keys as user environment variables (System > About > Advanced system settings > Environment Variables, or):
Add[Environment]::SetEnvironmentVariable('ANTHROPIC_API_KEY', '<key>', 'User') [Environment]::SetEnvironmentVariable('KITSU_TOKEN', '<Kitsu bot token>', 'User')ANTHROPIC_WORKSPACE_IDif the key isn't scoped to a workspace. Open a new terminal. -
Fonts: thumbnails and Short captions use Impact and Bahnschrift, both standard on Windows. On Linux install
ttf-mscorefonts-installer(Impact) and Roboto Condensed (fonts-roboto-unhinted). The weekly issue needs a few more.
Optional: cover layouts and photos, the cast library, faces.
-
Check:
clippa doctor --role gpu(or--role serve,--role bot). -
Run unattended. Serve and the bot run as containers (Docker compose,
deploy/hub, on the NAS or any Docker host: Roles and services). On Windows the scheduled task is for the GPU worker (at logon, restarted if it exits, no admin needed; the scripts sharedeploy\common.ps1, which lists the user env vars the task copies in, since scheduled tasks don't always see ones set after logon: a new key goes there too):-Status,-Restart,-Stop,-Uninstallwork. Logs go tologs\.clippa servicesshows the task plus the recorder and any NAS cuts, with serve's and the bot's heartbeats from the share;clippa services restart workerruns the same script, andserveorbotover ssh once[serve] hubnames the compose folder. The bot reaches serve at[serve] url(empty = this machine); on different machines set it, give both the same[warroom] token(orsecrets/warroom_token.txt), and put[paths] scheduleand[paths] newsunder the streams share on both (the bot reads what serve writes there;clippa doctor --role botchecks).