Install
openclaw skills install tiktok-clipperAutomatically extracts engaging TikTok clips with hooks and adds styled, synchronized subtitles from long videos using transcription and ffmpeg.
openclaw skills install tiktok-clipperTakes a long-form video, transcribes it, identifies the most engaging segments for TikTok/Reels, clips them with ffmpeg, and adds TikTok-style animated subtitles.
# Transcribe with Whisper (word-level timestamps)
python3 SKILL_DIR/transcribe.py --input VIDEO_PATH --output TRANSCRIPT.json
Uses OpenAI Whisper API with timestamp_granularities=["word","segment"] for precise subtitle timing.
Read the transcript and identify segments that would perform well on TikTok:
Present clips as numbered options with:
User picks which ones to cut.
python3 SKILL_DIR/clip.py --input VIDEO_PATH --start MM:SS --end MM:SS --output CLIP.mp4
python3 SKILL_DIR/subtitles.py --input CLIP.mp4 --transcript TRANSCRIPT.json --start SS --end SS --style STYLE --output FINAL.mp4
All styles use ASS (Advanced SubStation Alpha) for rich formatting via ffmpeg.
If source is horizontal (16:9), auto-crop to 9:16:
All outputs go to /home/ubuntu/clawd/clips/ with naming: {source}-clip{N}-{style}.mp4
ffmpeg (installed)