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
- Local
ffmpeg. - Source campaign with at least 1 rendered test video.
Steps
- Find split point: Call
get_campaign. SumdurationSecondsthrough the last dynamic page (lead_urlor per-lead variables) →SPLIT_SECONDS. If the final page is dynamic, stop—this trick doesn't apply. - 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 - Create new campaign (never modify/delete the source campaign):
- Upload
pitch-dynamic.webmandoutro-static.mp4viacreate_media_upload. - Call
create_campaignwith only the pages up to the last dynamic page,pitch-dynamic.webmas pitch, andoutro-static.mp4as outro.
- Upload
- Verify seam: Render 1 test video on the new campaign, share
videoUrlso the user can check the cut atSPLIT_SECONDS, and wait for explicit approval before bulk rendering.