Skip to content
Back to skills

Aie Video Webinar Publish

BSecurity

BETA. Turn a recorded webinar into a publish-ready YouTube video — pull the recording off the webinar platform, strip the umms and ahs, cut the "can you hear me" cold open, build a thumbnail that still reads at 168px, write the title, description and chapters, and upload it private for review. Every stage verifies itself by re-measuring the output. Use this skill whenever someone says "edit the webinar recording," "publish last week's webinar," "take out the umms and ahs," "remove filler word...

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentspythonrustgoswiftshellbashexpressgitapi

Works with

  • cli
  • api

Security analysis

B76/100
  • highPerforms destructive filesystem operations
  • criticalSends environment variables or credentials to an external URL
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 9 files and shows the line behind each finding

Scanned October 6, 2026

npx -y skills add mrhinkle/aienterprise-skills --skill aie-video-webinar-publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aie Video Webinar Publish?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Aie Video Webinar Publish
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/mrhinkle-aie-video-webinar-publish/badge)](https://www.skillsdirectory.com/skills/mrhinkle-aie-video-webinar-publish)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aie-video-webinar-publish
description: >
  BETA. Turn a recorded webinar into a publish-ready YouTube video — pull the
  recording off the webinar platform, strip the umms and ahs, cut the "can you hear
  me" cold open, build a thumbnail that still reads at 168px, write the title,
  description and chapters, and upload it private for review. Every stage verifies
  itself by re-measuring the output. Use this skill whenever someone says "edit the
  webinar recording," "publish last week's webinar," "take out the umms and ahs,"
  "remove filler words from this video," "cut the dead air at the start," "put this
  on YouTube," "make a thumbnail for the video," or hands over a recording of a
  slides-plus-webcam session and asks to ship it. Works for any recording of that
  shape regardless of platform. Configure per channel in `webinar.config.md`.
---

# Webinar → YouTube (BETA)

> **Beta.** The editing and verification stages are proven on real hour-long
> recordings. The upload stage assumes a Composio-connected YouTube account; if
> yours is wired differently, stop after step 7 and upload by hand — everything
> before that is platform-independent.

One job: take an hour of raw webinar and produce something worth someone's click,
without silently mangling the speech in the process.

The reason this is not a two-line ffmpeg script is that **every stage here has a
failure mode that produces a plausible-looking wrong result.** A cut list can look
perfect and land on the wrong words. A render can be exactly the right duration and
contain exactly the wrong audio. The only defence that worked was re-measuring the
output instead of trusting the plan, so that is built into each step.

Copy `reference/webinar.config.example.md` to `webinar.config.md` and fill in your
channel, brand and platform details before the first run. That file is for you,
the agent: channel, brand, and where the recording lives. The Python scripts do
not parse it. Filler lists and the pass/fail gate are hardcoded in the scripts;
if the config and a script disagree, the script wins.

Work in a per-webinar folder. The scripts are not in that folder. Run them by
the path next to this SKILL.md (`scripts/build_edit.py` and the rest). Pass
absolute paths for the MP4, wav, and output so the shell's current directory
does not matter.

## Process

### 1. Get the recording

Webinar platforms rarely expose recordings through their API even when they have
one — `reference/platform-retrieval.md` covers where the file actually lives on the
common hosts, and the traps (expired replay links, download buttons that are not
in the API, config wizards that look like the right menu but aren't).

Whatever the source: get an MP4 on disk, and check its duration against the session
length the platform reports before going further.

### 2. Extract audio — the step that silently breaks everything

```bash
ffmpeg -y -i raw.mp4 -vn -af "aresample=async=1:first_pts=0" \
  -ac 1 -ar 16000 -c:a pcm_s16le audio_sync.wav
```

**`-af aresample=async=1` is not optional.** Recordings from live platforms carry
timestamp gaps where the stream hiccuped. Without the resampler ffmpeg *collapses*
those gaps: on one 58-minute recording the WAV came out 4 seconds shorter than the
MP4's audio track. Every transcript timestamp then drifted against the video, and
every cut landed on the wrong word.

This is the most expensive bug in the pipeline because it hides: comparing the
source transcript to the edited transcript still lines up perfectly, since both
sides share the drift. `build_edit.py` refuses to run unless these match:

```bash
ffprobe -v error -select_streams a -show_entries stream=duration -of csv=p=0 raw.mp4
ffprobe -v error -show_entries format=duration -of csv=p=0 audio_sync.wav
```

### 3. Transcribe with a verbatim ASR

Use an ASR that keeps disfluencies. **Whisper does not** — it is trained to tidy
speech, and on the same hour of audio it found 5 filler words where a verbatim
model found 294. An `initial_prompt` asking for verbatim output does not fix it.

ElevenLabs Scribe works and is what the scripts expect. Make the mp3 from the
synced wav first — same timebase, far less upload — then send that file. Do not
upload the wav under an `.mp3` name. If the conversion fails, stop before any
request. A leftover `audio_sync.mp3` is a different file on a different clock,
and uploading it would replace `transcript.json` with the wrong transcript.

Do not pass the key with `-H`. The shell puts that value on curl's argument
list. Write it into a mode-0600 config, pass that with `-K`, delete the file,
and stop unless curl itself succeeded and the HTTP status is 2xx.

```bash
ffmpeg -y -i audio_sync.wav -ac 1 -ar 16000 -c:a libmp3lame -b:a 64k audio_sync.mp3 || exit 1
scribe_cfg=$(mktemp)
chmod 600 "$scribe_cfg"
# Same escaping as verify_edit.py: a quote or backslash in the key must not break the config line.
escaped=$(printf '%s' "$ELEVENLABS_API_KEY" | sed 's/\\/\\\\/g; s/"/\\"/g')
printf 'header = "xi-api-key: %s"\n' "$escaped" > "$scribe_cfg"
code=$(curl -sS -X POST "https://api.elevenlabs.io/v1/speech-to-text" \
  -K "$scribe_cfg" \
  -F "model_id=scribe_v1" -F "timestamps_granularity=word" -F "diarize=true" \
  -F "file=@audio_sync.mp3" \
  -o transcript.json -w "%{http_code}") || code="000"
rm -f "$scribe_cfg"
case "$code" in
  2*) ;;
  *) echo "Scribe request failed (HTTP $code)" >&2; exit 1 ;;
esac
```

Scribe attaches punctuation to tokens (`"uh,"`, `"Um..."`), so strip non-word
characters before matching or your filler count comes back zero. That mistake reads
as "this speaker is remarkably clean," which is why it survives review.

### 4. Build the cut list

```bash
pip install numpy soundfile pillow   # once; ffmpeg must be on PATH too
python3 /path/to/aie-video-webinar-publish/scripts/build_edit.py --src raw.mp4 --audio audio_sync.wav \
  --transcript transcript.json [--cold-open cold_open.json]
```

**Do not cut on the transcript's word boundaries.** Word *onsets* are accurate;
word *ends* are not. Scribe reported an audibly ~280 ms "uh" as lasting 10 ms, so a
window built from `[start, end] + padding` clipped only the filler's tail and left
it plainly audible in the render.

So the transcript locates each filler and **the audio decides where it starts and
stops**: a filler is one burst of speech energy bounded by silence, and that burst
is what gets cut.

The script deliberately **skips** roughly a third of fillers — the ones whose energy
merges into a neighbouring word, where there is no silence to cut on. Removing those
clips real speech. **60–70% removal with zero words lost is the correct outcome;
100% is not.** A tool that claims all of them is either lying or cutting words.

Single-token discourse markers (`like`, `basically`, `actually`, `literally`,
`right`) are counted and reported but never cut — removing them changes
sentences, not just noise. Multi-word habits such as "you know" are not in the
filler list, so the script neither cuts nor counts them.

Every filler cut is also logged in `cuts.csv` (word, start, end) so a human
can read it. Nothing in this skill reads that file. `render.py` uses `keeps`
in `cuts.json`. To drop a cut, put that span back inside a keep, then
re-render. Do not re-run `build_edit.py` to do it: the builder ignores the
CSV and overwrites `cuts.json` from the transcript, which puts the cut back.

### 5. Cold open

Webinars routinely open with several minutes of "can you hear me", waiting for a
guest to get logged in, and chat chatter. That is the worst possible opening on
YouTube. But **don't just lop off the first N minutes** — there is usually a good
line buried in there.

Read the opening transcript, pick the keepers, and write the removals into
`cold_open.json` as `[[start, end], ...]` in source seconds. A working pattern: the
greeting, the one-line guest introduction, the strongest hook the host says, the
handoff — then straight into the guest's first substantive sentence.

Watch for lines that stop making sense once the cut lands: an apology for a delay
that no longer exists, "as I mentioned earlier", a reference to a poll you removed.

The script prints how many cold-open ranges it removed and their total seconds.
It does not print the words that remain. Reconstruct that opening from the
transcript with those ranges removed, and read it before rendering.

### 6. Render

```bash
python3 /path/to/aie-video-webinar-publish/scripts/render.py --src raw.mp4 --cuts cuts.json --out edited.mp4
```

Three constraints are baked in, each learned from a wrong render:

- **`select`/`aselect`, not `trim`+`concat`.** Hundreds of trim branches force
  ffmpeg to split the input that many ways and buffer most of the file.
- **ffmpeg's expression parser dies past ~100 `between()` terms** with "Cannot
  allocate memory" — 100 works, 140 does not. Keeps are rendered in batches of 80
  and joined with the concat demuxer.
- **Never `-ss` to seek to a batch.** Input seeking lands on the preceding keyframe
  without discarding the pre-roll, which shifts the filter's `t` by up to a GOP and
  puts every cut on the wrong word. Each pass decodes from 0 — around 100×
  realtime — and uses absolute timestamps.

### 7. Verify — non-negotiable

```bash
python3 /path/to/aie-video-webinar-publish/scripts/verify_edit.py --before transcript.json --after edited.mp4 --cuts cuts.json
```

Pass `--cuts`. Without it, a legitimate cold-open cut that removes real
dialogue (apologies, chit-chat) is scored as clipped speech and a healthy edit
fails. `--cuts` exempts `cold_open` ranges only. A filler cut is not an
approved deletion: if it also takes a real word, the check fails. Do not
widen the exemption to every merged cut — that hides the loss, because the
render and the baseline both drop the word and the drift reads 0%.
Re-transcribes the **rendered output** and diffs it against the source.
The script's pass gate, not a vibe, decides it:

| Signal | Pass gate | Healthy target |
|---|---|---|
| fillers removed | at least 40% | 60–70% removed, not 100% |
| non-filler words vs words outside the cold open | within ±1.5% | about 0% |

Fillers barely moving **and** real words vanishing is the timebase-drift signature
from step 2. Then spot-check the actual audio at one mapped timestamp — a
transcript-to-transcript comparison cannot detect a timebase problem, because both
sides drift together.

### 8. Thumbnail

Judge it at **168px**, not at full size. The most common failure is a beautiful
1280×720 image that is an unreadable smudge in a results grid. Measure rather than
squint:

```bash
python3 - <<'PY'
from PIL import Image; import numpy as np
a = np.array(Image.open("thumb.jpg").convert("L")).astype(float)
print(f"mean luma {a.mean():.0f}/255, below-40 {(a<40).mean()*100:.0f}%")
PY
```

Rules of thumb that held up:

- **Over ~65% of pixels below luma 40 and the tile disappears** in a bright grid.
  Moody night scenes are exactly the trap.
- **A face needs to be recognisable at 168px** — roughly 80px+ of head height in the
  1280-wide master. A person composited at photorealistic scale inside a scene ends
  up ~7px tall and communicates nothing.
- ≤ 4 words per line, ≤ 3 lines, one highlight colour. State the payoff, not the
  topic. Don't repeat the video title — it already sits under the thumbnail.
- Faces come from real sources only: a frame of the footage, or a photo the person
  supplied. Never an AI-invented face of a real person.
- `scripts/liftsubject.swift` does background removal locally and free on macOS via
  Vision's foreground-instance mask — the same engine as Preview's Lift Subject. No
  image API needed.

If a real person's face is composited into a scene they were never in, get their
consent before publishing.

### 9. Metadata

Chapters come from the slides, not from memory. Sample one frame every 10
seconds of the *edited* file, OCR the titles, then collapse consecutive
repeats yourself. `ocr_slides.swift` only reads images you hand it. macOS only
(Vision).

```bash
frame_dir=$(mktemp -d)
ffmpeg -y -i edited.mp4 -vf "fps=1/10" "$frame_dir/f%04d.jpg" || { rm -rf "$frame_dir"; exit 1; }
swift /path/to/aie-video-webinar-publish/scripts/ocr_slides.swift "$frame_dir"/*.jpg
status=$?
rm -rf "$frame_dir"
exit "$status"
```

Each run samples into a new empty directory and passes only that directory to
OCR. `ffmpeg -y` overwrites names it writes and leaves higher-numbered JPEGs
from a longer previous render in place, so do not reuse a `frames/` folder and
do not pass any other images. If extraction fails, the block removes the
directory and exits before OCR. A shorter re-render cannot inherit the
previous video's later titles.

Those frames are already on the edited timeline. Do not map them through the
cut list a second time. The command above does not set `-start_number`, so
`f%04d` starts at 1: `f0001.jpg` is edited 00:00, `f0007.jpg` is edited 01:00,
and frame N is edited time `(N - 1) * 10` seconds. Read the title off the
tool's stdout; the directory is removed at the end of the block. A ten-second
opening cut puts a slide that was at source 01:10 at edited 01:00 in this
file. Subtracting the cuts again would place that chapter at 00:50.

If the tool prints nothing and exits 1, no title was recognized. A blank frame
or a frame whose text sits below the title band does not count. Exit 2 means
no images were passed. Do not invent chapter names.

- Unwrap any hard-wrapped markdown into real paragraphs before sending. YouTube does
  its own wrapping.
- Keep the title under ~70 characters so it survives truncation in search results.

### 10. Publish

`reference/publishing.md` has the staging chain for a Composio-connected account,
including the part that trips people up: the upload wants a file already in
Composio's storage, and a local path fails.

**Upload private.** The owner publishes. Then verify duration, custom thumbnail,
processing status and privacy through the API rather than assuming the upload did
what it said.

## Rules

- Report what you measured, not what you intended. "70% of fillers removed, no
  speech lost" is a claim you can defend; "removed all the umms" is not.
- Keep the raw download. Every re-cut re-renders from it.
- If a step's verification fails, fix the cause — do not loosen the check.

## What this skill does NOT do

- Short vertical clips from the recording
- Live-stream production
- Publishing public — that stays a human decision

## Reference

- `reference/webinar.config.example.md` — copy to `webinar.config.md` and fill in
- `reference/platform-retrieval.md` — getting the MP4 off the webinar host
- `reference/publishing.md` — the upload chain and its failure modes

## Self-improvement

When a run teaches a durable lesson — a correction from the user, a failure mode,
a step that was ambiguous — tell the user what you'd change and why. Do not edit
this skill's installed files, scripts, or config examples unless the user
explicitly asks you to change the skill. Offer a patch or an issue. A marketplace
install is not a scratchpad.

Files in this skill

  • SKILL.md11.4 KB
  • reference/platform-retrieval.md3.2 KB
  • reference/publishing.md3.9 KB
  • reference/webinar.config.example.md2.4 KB
  • scripts/build_edit.py7.8 KB
  • scripts/liftsubject.swift1.3 KB
  • scripts/ocr_slides.swift843 B
  • scripts/render.py3.1 KB
  • scripts/verify_edit.py5.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.