Seamless Looper
by @gullish42069
Create seamless looping MP4 videos with smooth crossfade transitions, doubling video length for ambient or background loops without audio.
clawhub install seamless-looperπ About This Skill
name: seamless-looper description: Create seamless looping video files with smooth crossfade transitions at the loop junction. Use when asked to loop a video, make a seamless loop, create ambient video loops, crossfade video loops, or loop background footage. Output is visual-only (no audio). Trigger phrases: "loop video", "seamless loop", "video loop", "crossfade loop", "ambient video", "background loop", "loop MP4".
Seamless Looper
Create seamless looping versions of ambient/background videos with smooth crossfade transitions at the junction.
Limitations: Output is visual-only (no audio). Input must be MP4. Videos under 2 seconds are skipped.
Quick Start
cd ~/.openclaw/skills/seamless-looper
bash scripts/loop.sh [crossfade_seconds]
Example:
bash scripts/loop.sh ~/Videos/ambient ~/Videos/looped 1
.mp4 filesOutput
Looped files saved as in the output directory.
How It Works
1. Takes each .mp4 in source dir
2. Doubles the video (original + original via stream_loop)
3. Applies crossfade at the junction point (fade out tail, fade in head)
4. Outputs β seamless loop of the original duration
Requirements
ffmpeg (with libx264 and overlay filter support)ffprobe (for duration detection)Install on macOS: brew install ffmpeg
Tips
| Use Case | Crossfade | |----------|-----------| | Fast cuts, high motion | 0.5s | | Default ambient | 1s | | Slow fades, nature footage | 2s | | Very slow drift | 3s |
Limitations
.mp4File Structure
seamless-looper/
βββ SKILL.md β you are here
βββ scripts/
β βββ loop.sh β main loop script
βββ references/
βββ tips.md β use cases + crossfade presets
π‘ Examples
cd ~/.openclaw/skills/seamless-looper
bash scripts/loop.sh [crossfade_seconds]
Example:
bash scripts/loop.sh ~/Videos/ambient ~/Videos/looped 1
.mp4 filesπ Tips & Best Practices
| Use Case | Crossfade | |----------|-----------| | Fast cuts, high motion | 0.5s | | Default ambient | 1s | | Slow fades, nature footage | 2s | | Very slow drift | 3s |