How to add a paid partnership label with Claude

A small dark pill reading "Paid partnership" in white, with a white dot in front, fades in at the top left of the video and stays to the end.

Get this effect

  1. Switch to Code in your Claude Desktop App

  2. Install the skill (once)

    Show the prompt
    Install the Recharm video effects skill: download https://recharm-growth-staging.s3.us-east-2.amazonaws.com/website/downloads/recharm-video-effects.zip and unzip it into ~/.claude/skills
  3. Ask for the effect

    Add a paid partnership label to input.mp4
    Label: Paid partnership

Several videos, several effects, one ask

Put your clips in the folder, mention them with @, and ask for everything at once. Claude runs one tested script after another on each clip, then joins them.

Add a paid partnership label to @clip1.mp4, put a sale badge on @clip2.mp4, give @clip3.mp4 a VHS look, then join all three with crossfades.

Settings you can change

Ask Claude to change any of these, or edit them at the top of the script.

SettingDefaultWhat it does
LABELPaid partnershipThe disclosure text.
START0.3Second the label appears.
FADE0.3Seconds it takes to fade and slide in.
X, Y0.05, 0.05Top-left corner of the tag (0-1 across and down the frame).
TEXT_SIZE0.045Text height as a share of the frame width.
FILL(0, 0, 0, 150)Tag color and opacity (0-255).

Without the skill

Don’t want to install the skill? Paste this prompt into Claude Code and Claude writes the script itself.

Show the prompt
Add a burned-in paid partnership label to input.mp4. Draw a rounded pill (fully rounded ends) filled with black at 150/255 opacity, its top-left corner at 5% across and 5% down the frame. Inside it, a white dot 1.6% of the frame width across, then the words "Paid partnership" in bold white text 4.5% of the frame width tall, both vertically centered; pad the pill by 3% of the frame width left and right and 1.8% top and bottom, with 1.8% of the frame width between the dot and the text. The label is not there at first: at 0.3 seconds it fades in over 0.3 seconds while sliding down 1.5% of the frame height into place (ease out), then stays to the end. Use Python with Pillow to draw it and ffmpeg to put it on the video (don't rely on ffmpeg's drawtext filter), keep the audio, and save it as output.mp4.

Run it without Claude

This is the exact script we tested. Save it as paid-partnership-label.py and run:

python3 paid-partnership-label.py input.mp4 output.mp4
Show the script
#!/usr/bin/env python3
"""Paid partnership label: a dark rounded "Paid partnership" tag fades in at the top left and stays.

Usage: python3 paid-partnership-label.py input.mp4 output.mp4
Needs ffmpeg and Pillow (pip install pillow).
"""
import json
import math
import subprocess
import sys
from pathlib import Path

from PIL import Image, ImageDraw, ImageFont

LABEL = "Paid partnership"  # the disclosure text
START = 0.3                 # second the label appears
FADE = 0.3                  # seconds it takes to fade and slide in
X, Y = 0.05, 0.05           # top-left corner of the tag (0-1 across and down the frame)
TEXT_SIZE = 0.045           # text height as a share of the frame width
FILL = (0, 0, 0, 150)       # tag color and opacity (0-255)
FONTS = ["/System/Library/Fonts/Supplemental/Arial Bold.ttf",     # macOS
         "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf",  # Linux
         "C:/Windows/Fonts/arialbd.ttf"]                          # Windows
FONT_FILE = next((f for f in FONTS if Path(f).exists()), None) or sys.exit("No bold font found: add one to FONTS")


def tag():
    """The pill: white text with a small white dot in front, on a translucent dark rounded box."""
    font = ImageFont.truetype(FONT_FILE, round(w * TEXT_SIZE))
    left, top, right, bottom = font.getbbox(LABEL)
    pad_x, pad_y = round(w * 0.03), round(w * 0.018)
    dot = round(w * 0.016)
    width = pad_x + dot + pad_x * 0.6 + right + pad_x
    height = bottom - top + 2 * pad_y
    img = Image.new("RGBA", (round(width), round(height)))
    draw = ImageDraw.Draw(img)
    draw.rounded_rectangle([0, 0, img.width - 1, img.height - 1], radius=img.height // 2, fill=FILL)
    cy = img.height / 2
    draw.ellipse([pad_x, cy - dot / 2, pad_x + dot, cy + dot / 2], fill="white")
    draw.text((pad_x + dot + pad_x * 0.6, cy), LABEL, font=font, anchor="lm", fill="white")
    return img


def overlay(t):
    img = Image.new("RGBA", (w, h))
    p = min(max((t - START) / FADE, 0), 1)
    if p > 0:
        ease = 1 - (1 - p) ** 3
        faded = label.copy()
        faded.putalpha(label.getchannel("A").point(lambda a: round(a * ease)))
        img.alpha_composite(faded, (round(w * X), round(h * Y - h * 0.015 * (1 - ease))))
    return img


def probe(path):
    info = json.loads(subprocess.check_output(["ffprobe", "-v", "error", "-select_streams", "v:0", "-show_entries",
                                               "stream=width,height,r_frame_rate:format=duration", "-of", "json", path]))
    s = info["streams"][0]
    num, den = s["r_frame_rate"].split("/")
    return s["width"], s["height"], s["r_frame_rate"], float(num) / float(den), float(info["format"]["duration"])


def render(src, out):
    """Draw overlay(t) on every frame of src and save to out, keeping the audio."""
    ff = subprocess.Popen(["ffmpeg", "-y", "-v", "error", "-i", src,
                           "-f", "rawvideo", "-pix_fmt", "rgba", "-s", f"{w}x{h}", "-r", rate, "-i", "-",
                           "-filter_complex", "[0:v][1:v]overlay=shortest=1,format=yuv420p[v]",
                           "-map", "[v]", "-map", "0:a?", "-c:v", "libx264", "-crf", "18", "-c:a", "copy", out],
                          stdin=subprocess.PIPE)
    for i in range(math.ceil(duration * fps)):
        ff.stdin.write(overlay(i / fps).tobytes())
    ff.stdin.close()
    if ff.wait():
        sys.exit("ffmpeg failed")


src, out = sys.argv[1:3]
w, h, rate, fps, duration = probe(src)
label = tag()
render(src, out)

Find 3x winning ads

Recharm cuts your ad footage into tagged, searchable clips: hooks, testimonials, product shots. Find the shots that win, add the effect with Claude, and ship 3x more ad edits.

Start 14-day free trial