gooseworks-ai/goose-skills / skills/video/render-street-interview
render-street-interview
VerifiedWrite a street-interview ad from a complete inspected commercial interaction and current brand facts. Render product guessing, or prepare mic-only, prepared-sample or visible-task conversation script/prompt previews. Premise, actions and ad connection vary; capture rules stay fixed. Conversation media delivery is unverified.
scripts/measure-pace.py
View on GitHub#!/usr/bin/env python3
"""Measure the internal shot lengths of a finished file. Free, ffmpeg only.
python measure-pace.py <file.mp4> [<file2.mp4> ...] [--thresh 0.30] [--trim 2.2]
The pace gap in SKILL.md item 15 is a MEASUREMENT, and it has to be re-measurable or it is an
anecdote. This reads the cuts off the file with the same ffmpeg scene detector check-cut.py
uses, at the same threshold, and prints shot lengths, the median and the final shot.
--trim drops that many seconds off the end before measuring, so a render that carries a 2.2s
end card is not counted as having one very long final shot. Measure the RENDER, per CLAUDE.md,
but do not count the brand layer as pace.
Reference bar, measured on three real references (refs/REFERENCES.md):
Salary Transparent Street 1.60s Chris Klemens 1.62s SubwayTakes 1.54s
"""
import argparse
import subprocess
import sys
def sh(cmd):
return subprocess.run([str(x) for x in cmd], capture_output=True, text=True)
def duration(path):
r = sh(["ffprobe", "-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", path])
try:
return float(r.stdout.strip())
except ValueError:
sys.exit(f"ffprobe could not read a duration from {path}: {r.stderr.strip()[:200]}")
def cuts(path, thresh):
r = sh(["ffmpeg", "-v", "error", "-i", path, "-vf",
f"select='gt(scene,{thresh})',metadata=print:file=-", "-fps_mode", "vfr",
"-f", "null", "-"])
if r.returncode:
sys.exit(f"ffmpeg scene detect failed on {path}: {r.stderr[-300:]}")
return [float(ln.split("pts_time:")[1].split()[0])
for ln in r.stdout.splitlines() if "pts_time:" in ln]
def median(xs):
s = sorted(xs)
n = len(s)
if not n:
return None
return s[n // 2] if n % 2 else (s[n // 2 - 1] + s[n // 2]) / 2
def main():
ap = argparse.ArgumentParser()
ap.add_argument("files", nargs="+")
ap.add_argument("--thresh", type=float, default=0.30,
help="scene-change threshold; 0.30 is what check-cut.py uses")
ap.add_argument("--trim", type=float, default=0.0,
help="seconds of end card to exclude from the measurement")
A = ap.parse_args()
for f in A.files:
dur = duration(f) - A.trim
cs = [c for c in cuts(f, A.thresh) if 0.4 < c < dur]
bounds = [0.0] + cs + [dur]
lens = [b - a for a, b in zip(bounds, bounds[1:])]
print(f"{f}")
print(f" measured over {dur:.2f}s (trimmed {A.trim:.2f}s), {len(lens)} shots")
print(" cuts " + (", ".join(f"{c:.2f}" for c in cs) or "(none)"))
print(" shots " + ", ".join(f"{x:.2f}" for x in lens))
print(f" MEDIAN {median(lens):.2f}s FINAL {lens[-1]:.2f}s "
f"(real references 1.54-1.62s)")
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |