Communitygithub.com

gooseworks-ai/goose-skills

为完成的竖屏视频添加烧录字幕,支持三种风格。根据视频自身音频获取单词时间码,并生成固定或浮动位置的字幕。

goose-skills 是什么?

这是一套为 AI 代理设计的字幕烧录技能,适用于已完成剪辑的竖屏视频广告。它通过 GooseWorks 代理(使用 fal Whisper,按次计费,费用极少)从视频自身的音频中提取单词时间码,然后使用 Pillow 和 ffmpeg 生成字幕,无需 libass 依赖。支持三种字幕风格:plate(深灰圆角底板上的白色粗体文字)、outline(无底板、带深色描边的白色粗体文字)和 serif-word(一次性显示一个单词,位于固定基线,类似屏幕插入效果)。字幕可锚定在分屏接缝处(底板 25% 在上、75% 在下)或固定高度。还提供 plates.py 用于为无声视频格式生成按节拍同步的黑色字幕块,并支持可选的红色钩子卡片和品牌高亮。最后一条字幕(行动号召)会一直保留到最后一帧。该技能支持 Claude Code、Cursor 和 Codex 等 AI 代理平台。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/gooseworks-ai/goose-skills/tree/HEAD/skills/ads/capabilities/caption-burn

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

字幕烧录

字幕与完成视频中实际所说的内容同步,而非脚本的估计时间。

运行

python transcribe.py --media reel.mp4 --out reel.words.json          # 付费,按分计费
python captions.py --video reel.mp4 --beats cutlist.aligned.json \
    --words reel.words.json --out final.mp4 [--style plate|outline] [--highlight Brand]

--beats 提供台词(vo)、其时间码以及用于分屏布局的 seam、size 和每个节拍的 state。任何包含 beats: [{start, end, vo}] 的文件均可使用。

位置与样式

  • --anchor seam(当节拍包含 seam 时默认):在 split 节拍上,底板锚定在接缝处,由底板而不是文本定位:底板 25% 位于线条上方,75% 位于下方。全屏节拍使用 --full-y。

  • --anchor fixed --y 0.62:每条字幕的底板居中在该高度比例处。

  • plate(默认):深灰圆角底板上的白色粗体文字,1–2 个单词,高度上限约 0.019 H。

  • outline:带有深色描边的白色粗体文字,无底板,1–3 个单词,高度上限约 0.034 H。

  • --highlight WORD 将该单词标为黄色(行动号召关键词)。可重复使用。

  • serif-word:一次显示一个单词,粗衬线字体(Georgia Bold),白色带黑色描边,位于 0.77 H 的固定基线(屏幕插入外观)。高亮单词用引号括起。

  • --card "LINE ONE|LINE TWO" --card-until 4.7:白色圆角钩子卡片,顶部附近有两行粗体红色大写字母,用于开场几秒。每行约 14 个字符。

无声格式的字幕(plates.py)

python plates.py --video walk.mp4 --beats cutlist.json --out captioned.mp4 [--logo logo.png]

每个节拍的 caption(一个字符串或行列表)在整个节拍期间显示在单个黑色块上(方形矩形合并,然后作为单个轮廓圆角:逐行圆角会留下接缝),行左对齐,块以其最宽行居中。除非节拍固定了 cap_y,否则块会放在该节拍帧最空的区域。节拍上的 logo: true 会在块下方悬挂徽标磁贴。编写人们会键入的行:同样的简短“片段. 片段.”形状重复三次看起来像 AI 生成的。不要重复使用任何表情符号。

规则

  1. 转录完成后的音频。 拼接录音和对齐台词会改变时间码;只有最终视频的音频才能提供正确线索。
  2. 最后一条字幕保持到最后一帧。 它就是行动号召。
  3. Whisper 以不同方式写出的单词(如“200”代替“two hundred”)会在相邻单词之间插值,而不是丢弃或拉伸到整行。
  4. 没有 --words 时,时间码是通过音节估算的。 仅用于评估位置,绝不用于发布。
  5. 字体: 在 macOS、Linux 或 Windows 上会找到粗体无衬线字体;如果不存在,Roboto Bold 会被获取一次到 ~/.cache/gooseworks/fonts。--font 或 GW_CAPTION_FONT 可覆盖。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

gooseworks-ai/goose-skills

Assemble a cartoon / animated / hand-crafted music-video ad from a config — a sung song carries the whole narrative while N per-bar i2v clips (one recurring animated character, one look pack) are each cut to their BAR window from librosa beat-tracking and hard-concatenated on the bar, VEED-whisper white bold-sans captions in the BOTTOM third (Alignment 2, above the logo bug, no pill) burned from the song's word timings re-spelled against the locked lyrics, a persistent brand logo bug held over the body (suppressed on the end card), and closed on a solid-brand-color PIL end card with the song still playing under it — never AI-rendered text. This is the FREE deterministic assembly stage (cut-to-bar + hard concat + logo bug + captions + end card + song mux); the song, character, keyframes, and clips come from create-music-elevenlabs / create-image-fal / create-video-fal. Use for the cartoon-music-video format.

gooseworks-ai/goose-skills

Assemble a cinematic live-action-style music-video ad from a config — an original sung anthem carries the whole narrative while N 35mm-film-look i2v clips are each cut to their lyric window and hard-concatenated on the beat as a 3-act arc, the anthem muxed at loudnorm I=-14, cinematic lower-third serif captions built from the song's OWN word timings (never Whisper) with the hook line landing on the chorus drop, and closed on a brand end card composited from the real asset — never AI-rendered text. This is the FREE deterministic assembly stage (cut-to-window + hard concat + anthem mux + captions + end card); the anthem, keyframes, and clips come from create-music-elevenlabs / create-image-gpt-image-fal / create-video-fal. Use for the cinematic-music-video format.

gooseworks-ai/goose-skills

Assemble an editorial-motion podcast-clip ad from a config — a real clipped podcast MP3 carries the narrative while N flat limited-palette editorial-illustration keyframes (one look pack) are animated NOT by generative i2v but by DETERMINISTIC ffmpeg ken-burns (zoompan) + hard cuts (no crossfades, which expose geometric drift), each beat snapped to its spoken line, the real audio muxed, Whisper-driven captions burned only mid-sentence, and closed on a PIL brand end card — never AI-rendered text. This is the FREE deterministic assembly stage (ffmpeg ken-burns + hard concat + audio mux + captions + end card); the real audio is clipped from source and the keyframes come from create-image-fal. Use for the editorial-motion-podcast format.

gooseworks-ai/goose-skills

Analyze the message match between your ads and landing pages. Checks if the promise in the ad copy carries through to the landing page headline, body, and CTA. Flags disconnects that kill conversion rates. Works with Google, Meta, and LinkedIn ads.

gooseworks-ai/goose-skills

Generate a single 4-15s vertical video clip with ByteDance Seedance 2.0 reference-to-video via fal.ai. Multi-image reference (avatar + product + setting), native lip-synced VO + ambient audio (generate-audio on by default), internal multi-cut handling within one render. Routes through the GooseWorks FAL proxy (bills the Ads agent). The default clip atom for AI-creator UGC ads built on the NB2 + Seedance architecture. Validated on beauty-by-earth/video-01.

gooseworks-ai/goose-skills

Mandatory pre-publish review gate for a UGC video render. Transcribes the finished render's AUDIO with Whisper and word-diffs it against the approved spoken script, then gates set_final_render — blocking a render whose generated audio mis-voices a word (e.g. the approved "human-vetted" spoken as "human witted"), drops an approved phrase, or comes back silent. Runnable, gating counterpart to content-goose's review-transcript-integrity atom. Every ugc-video-formats recipe runs this after render and BEFORE set_final_render.

gooseworks-ai/goose-skills

Render pixel-accurate Apple Notes (iPhone, light mode) screenshot mockups from a JSON note spec. Outputs HTML + PNG at the iPhone 16/15 Pro native 1180×2556. Supports paragraphs, images, checklists, dividers, autocorrect underline, smart quotes, and an optional iOS keyboard chrome overlay used by the parent video-ad molecule.

gooseworks-ai/goose-skills

Extract competitor and customer intelligence from any company's landing page HTML. Discovers tech stack, analytics tools, ad pixels, customer logos, SEO metadata, CTAs, hidden elements, and more. No API keys required.

gooseworks-ai/goose-skills

Find speakers, hosts, and guest profiles at conferences and events on Luma. Two modes - free direct scrape for hosts, or Apify-powered search for full guest profiles with LinkedIn/Twitter/bio.

gooseworks-ai/goose-skills

Find Twitter/X influencers to promote a product or brand. Use when asked to find influencers, discover Twitter accounts for partnerships, identify creators in a niche, or build an influencer outreach list.

相关技能