Skip to content

ZJU-REAL/Easel / skills/builtin/clipify

clipify

Verified

从长视频中自动提取精彩片段,切成独立短视频,支持 16:9→9:16 竖版转制和逐字字幕烧录。 当用户说"视频切片""提取精彩片段""长视频切短""切成短视频""高光剪辑""逐字字幕""转竖版短视频"时使用。 和 video-highlights 的区别:clipify 专做英文口播找笑点+动态人脸 pan;video-highlights 更通用(中文/直播皆可),静态转竖版更稳。

FileKindSize
EASEL-META.mdmarkdown623 B
SKILL.mdskill md8.9 KB
assets/preview.pngbinary273.8 KB
scripts/analyze.pyscript2.2 KB
scripts/audio_align.pyscript951 B
scripts/build_ass.pyscript2.6 KB
scripts/build_pan.pyscript524 B

scripts/audio_align.py

View on GitHub
#!/usr/bin/env python3
"""Find time offset of a short clip within a longer source via FFT cross-correlation.

Usage: audio_align.py CLIP_PCM SRC_PCM SRC_WINDOW_OFFSET_S
Both files must be int16 mono PCM at 8000 Hz.
SRC_WINDOW_OFFSET_S is the absolute time of the start of SRC_PCM in the original source.
Stdout: absolute offset (seconds) of CLIP_PCM start within the original source.
"""
import numpy as np, sys

SR = 8000
clip = np.fromfile(sys.argv[1], dtype=np.int16).astype(np.float32)
src = np.fromfile(sys.argv[2], dtype=np.int16).astype(np.float32)
window_off = float(sys.argv[3])

clip = (clip - clip.mean()) / (clip.std() + 1e-9)
src = (src - src.mean()) / (src.std() + 1e-9)

n = len(src) + len(clip)
p = 1
while p < n: p *= 2
S = np.fft.rfft(src, p)
C = np.fft.rfft(clip[::-1], p)
corr = np.fft.irfft(S * C, p)[:n-1]
peak = int(np.argmax(corr))
offset_in_window = (peak - (len(clip) - 1)) / SR
print(f"{window_off + offset_in_window:.3f}")
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall