Pitchlane / Leadgen Skills
official script Evaluated (1 test)

pitchlane-faster-videos

Speed up Pitchlane rendering using the outro trick — splits off the static tail of a rendered video with ffmpeg into a reusable outro so only the per-prospect dynamic portion renders per lead.

npx skills add pitchlane-video/leadgen-skills --skill pitchlane-faster-videos View SKILL.md on GitHub →

Pitchlane — Faster Videos (Outro Trick)

When a Pitchlane campaign ends with a static page that never changes between leads, split that tail into a reusable outro so only the dynamic section renders per prospect (~1s stitch for the outro).

Prerequisites

Steps

  1. Find split point: Call get_campaign. Sum durationSeconds through the last dynamic page (lead_url or per-lead variables) → SPLIT_SECONDS. If the final page is dynamic, stop—this trick doesn't apply.
  2. Cut locally with ffmpeg:
    ffmpeg -y -i pitch.webm -t <SPLIT_SECONDS> -c copy pitch-dynamic.webm
    ffmpeg -y -ss <SPLIT_SECONDS> -i rendered-test.mp4 -c copy outro-static.mp4
    
  3. Create new campaign (never modify/delete the source campaign):
    • Upload pitch-dynamic.webm and outro-static.mp4 via create_media_upload.
    • Call create_campaign with only the pages up to the last dynamic page, pitch-dynamic.webm as pitch, and outro-static.mp4 as outro.
  4. Verify seam: Render 1 test video on the new campaign, share videoUrl so the user can check the cut at SPLIT_SECONDS, and wait for explicit approval before bulk rendering.