🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Seamless Looper

by @gullish42069

Create seamless looping MP4 videos with smooth crossfade transitions, doubling video length for ambient or background loops without audio.

Versionv1.0.1
Downloads550
TERMINAL
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

  • Source dir must contain .mp4 files
  • Output dir created automatically
  • Default crossfade: 1 second
  • Output

    Looped files saved as _looped.mp4 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 _looped.mp4 β€” 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

  • Input must be .mp4
  • Videos <2s duration are skipped
  • No audio looping (visual-only output)
  • Output duration = 2x input duration
  • File 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
    

  • Source dir must contain .mp4 files
  • Output dir created automatically
  • Default crossfade: 1 second
  • πŸ“‹ Tips & Best Practices

    | Use Case | Crossfade | |----------|-----------| | Fast cuts, high motion | 0.5s | | Default ambient | 1s | | Slow fades, nature footage | 2s | | Very slow drift | 3s |