polli-video
БесплатноЗапускает вложенные скриптыНе проверенRecord terminal demo videos of the polli CLI using VHS (charmbracelet) with polli-generated voiceover and background music. Ships a working…
от pollinations★ 5 348 звёзд на GitHubОб этом скилле
polli-video — record polli CLI demos
VHS records silent terminal video. Polli generates audio. ffmpeg merges. VHS cannot capture system audio — either capture it live via BlackHole, or overlay narration in post with adelay.
When to use
- Demo video for polli CLI, pollinations.ai, or terminal workflows
- LinkedIn / social clip with voiceover and lofi background
- Iterating on an existing
.tapescript
Quick start
mkdir -p temp/vhs-demo && cp .claude/skills/polli-video/example/* temp/vhs-demo/
cd temp/vhs-demo
# Set system default output → BlackHole 2ch (see Pipeline A)
./render.sh
Produces demo.mp4. Edit demo.tape to change content.
Pipeline A — BlackHole live capture (recommended)
Single command, no adelay math, perfect sync. Requires BlackHole 2ch and default system output set to it (Option+click menu-bar speaker, or SwitchAudioSource -s "BlackHole 2ch").
See example/render.sh — archives old renders, captures while VHS runs, muxes trimmed to video length with a 5s audio pre-roll shift (ffmpeg startup + API roundtrip offset) and a 3s audio fade-out at the end. Copy and adapt.
Capture tool: sox over ffmpeg avfoundation. ffmpeg dropped samples on long recordings (choppy audio) even with -thread_queue_size 4096, -async 1, nice -20. sox + coreaudio is stable end-to-end, addresses device by name ("BlackHole 2ch") instead of a flaky index, and needs no post-trim:
AUDIODRIVER=coreaudio sox -q -c 2 -r 48000 -t coreaudio "BlackHole 2ch" \
-c 2 -r 48000 -b 16 captured.wav 2>/tmp/sox-capture.log &
Music gen must use --play so BlackHole captures it. Switch default output back to Speakers after.
Pipeline B — post-hoc ffmpeg overlay (fallback)
When BlackHole unavailable. Pre-generate narration + music, overlay with manual timestamps:
vhs demo.tape # produces demo-silent.mp4
ffmpeg -y -i demo-silent.mp4 -i speech.mp3 -i music.mp3 \
-filter_complex "[1:a]adelay=16000|16000[narr]; \
[2:a]volume=0.18,atrim=end=75[bg]; \
[narr][bg]amix=inputs=2:duration=longest[a]" \
-map 0:v -map "[a]" -c:v copy -c:a aac demo.mp4
adelay=16000|16000 = ms, left|right (must be stereo pair). Tune to tape timestamp where narration should hit. Ducking: 0.12–0.20 under narration, 0.25–0.35 music-only. Never pass -shortest — truncates video to shortest audio.
VHS tape conventions
Set Shell "bash"is mandatory. zsh + longTypelines triggers a VHS command-concatenation bug: two consecutive long commands get glued onto a single prompt line and theEnterbetween them is lost. Root cause is zsh's ZLE + VHS's wall-clock-timed CDP keystroke injection (no prompt-wait primitive). Bash's simpler line editor has no such race. Not fixable withWait+Line(regex fails on colored prompts),precmdhooks (VHS #691), longerSleeps, orCtrl+Lsubstitution. Just use bash.- 960×720 or 960×640, Menlo 16pt — reads on mobile, fits
polli gen text --model X "...". - Absolute path in
Hide-blockcd; relative path inOutput(parser splits on/). - Always
export FORCE_COLOR=1inHide— VHS pty failsisTTY, chalk strips colors otherwise. - Scene titles via ANSI from shell (no VHS primitive).
\033[1;38;5;141m= polli purple. announce()pattern: one function that prints the bold title AND fires backgrounded TTS. Every later scene is a one-liner. Seeexample/demo.tape.
Canonical bash Hide block (copy verbatim — fixes job notices, heredoc prompts, prompt trailing-line):
Set Shell "bash"
Hide
Type "cd /absolute/path/to/working/dir"
Enter
Type "export FORCE_COLOR=1"
Enter
Type "export PS1='» '"
Enter
Type "export PS2='» '"
Enter
Type "PROMPT_COMMAND='echo'"
Enter
Type "set +m"
Enter
Type "clear"
Enter
Show
PS2='» '— hides heredoc/continuation>prompts that leak on wrappedTypelines.PROMPT_COMMAND='echo'— trailing blank line between scenes so output doesn't crash into the next prompt.set +m— disables job-control, suppresses[1] 12345notices from&backgrounding.- Wrap backgrounded commands in a subshell anyway:
( cmd & )never prints a PID even in interactive shells.
The announce function
One-liner per scene: prints a bold purple title AND fires backgrounded TTS. The sed strip removes ElevenLabs emotion cues ([whispers], [excited], …) from the printed title while keeping them in the spoken audio.
announce() {
printf '\n\033[1;38;5;141m»» %s\033[0m\n\n' "$(sed -E 's/\^*\] *//g' <<< "$1")"
( polli gen audio --play --output /tmp/narr-$$-$RANDOM.mp3 "$1" >/dev/null 2>&1 & )
}
Usage:
Type `announce "[excited] first — we need some backing music"`
Enter
ElevenLabs emotion cues (must use ElevenLabs-backed voice, e.g. default sage): [whispers], [excited], [confident], [curious], [sighs], `[l
Установить polli-video в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(vhs *)Bash(ffmpeg *)Bash(ffprobe *)Bash(sox *)Bash(afplay *)Bash(polli *)Bash(open *)Bash(ls *)Bash(pkill *)Bash(rm *)Bash(cp *)Bash(mv *)ReadWriteEditВложенные файлы
FAQ
Что делает скилл polli-video?
Record terminal demo videos of the polli CLI using VHS (charmbracelet) with polli-generated voiceover and background music. Ships a working `example/demo.tape` + `example/render.sh` pipeline. Use when the user asks to make, record, or iterate on a polli demo video, LinkedIn/social clip of the CLI, or any terminal screencast for pollinations.
Как установить скилл polli-video?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл polli-video запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub