This guide provides practical examples of how to use Auto Clipper in different scenarios.
# Analyze any YouTube video and create viral clips
./target/release/auto-clipper "https://www.youtube.com/watch?v=dQw4w9WgXcQ"# Extract catchy moments from music videos
./target/release/auto-clipper "https://www.youtube.com/watch?v=kJQP7kiw5Fk"# Create highlight clips from podcast episodes
./target/release/auto-clipper "https://www.youtube.com/watch?v=PODCAST_ID"# Extract key concepts from tutorials
./target/release/auto-clipper "https://www.youtube.com/watch?v=TUTORIAL_ID"# Create highlight reels from gaming videos
./target/release/auto-clipper "https://www.youtube.com/watch?v=GAMING_ID"Create a config.json file:
{
"input_video": "my_video.mp4",
"clips": [
{
"start": "00:00:30",
"end": "00:00:45",
"output": "intro_clip.mp4"
},
{
"start": "00:02:15",
"end": "00:02:40",
"output": "highlight_clip.mp4"
}
]
}Run with configuration:
./target/release/auto-clipper config.json{
"input_video": "presentation.mp4",
"clips": [
{
"start": "00:01:23.500",
"end": "00:01:38.750",
"output": "key_point_1.mp4"
},
{
"start": "00:05:42.200",
"end": "00:06:12.800",
"output": "key_point_2.mp4"
}
]
}{
"input_video": "long_video.mp4",
"clips": [
{
"start": "00:00:10",
"end": "00:00:20",
"output": "teaser_1.mp4"
},
{
"start": "00:01:30",
"end": "00:01:40",
"output": "teaser_2.mp4"
},
{
"start": "00:03:45",
"end": "00:03:55",
"output": "teaser_3.mp4"
},
{
"start": "00:05:20",
"end": "00:05:30",
"output": "teaser_4.mp4"
}
]
}- Record long-form content
- Upload to YouTube (can be unlisted)
- Generate clips with AI
./target/release/auto-clipper "https://www.youtube.com/watch?v=YOUR_VIDEO"- Review and select best clips
- Share on social media platforms
- Create product demo video
- Use AI to identify key selling points
./target/release/auto-clipper "https://www.youtube.com/watch?v=DEMO_VIDEO"- Generate multiple ad variations
- A/B test different clips
- Record lecture or tutorial
- Extract key concepts automatically
./target/release/auto-clipper "https://www.youtube.com/watch?v=LECTURE_ID"- Create study materials
- Share bite-sized learning content
When using AI mode, you'll see output like:
{
"input_video": "video.mp4",
"clips": [
{
"start": "00:00:07",
"end": "00:00:22",
"output": "viral_clip_1.mp4"
},
{
"start": "00:01:15",
"end": "00:01:30",
"output": "viral_clip_2.mp4"
}
]
}What this means:
- Clip 1: 15-second clip from 7s to 22s mark
- Clip 2: 15-second clip from 1m15s to 1m30s mark
- File names: Automatically generated with sequential numbering
AI considers these factors when suggesting clips:
- Engagement potential: Moments likely to capture attention
- Optimal length: 10-30 seconds for social media
- Content density: Information-rich segments
- Visual appeal: Interesting visual elements
- Audio quality: Clear speech or music
Process multiple videos:
#!/bin/bash
# batch_process.sh
videos=(
"https://www.youtube.com/watch?v=VIDEO1"
"https://www.youtube.com/watch?v=VIDEO2"
"https://www.youtube.com/watch?v=VIDEO3"
)
for video in "${videos[@]}"; do
echo "Processing: $video"
./target/release/auto-clipper "$video"
echo "Completed: $video"
echo "---"
done# Create output directory
mkdir -p output/clips
# Move generated clips
mv viral_clip_*.mp4 output/clips/# Generate clips
./target/release/auto-clipper "https://www.youtube.com/watch?v=VIDEO_ID"
# Add watermark to all clips
for clip in viral_clip_*.mp4; do
ffmpeg -i "$clip" -i watermark.png -filter_complex "overlay=10:10" "watermarked_$clip"
done# Generate clips
./target/release/auto-clipper "https://www.youtube.com/watch?v=VIDEO_ID"
# Upload to social media (pseudo-code)
for clip in viral_clip_*.mp4; do
# Upload to Twitter, Instagram, TikTok, etc.
upload_to_social_media "$clip"
done# Generate clips first
./target/release/auto-clipper "https://www.youtube.com/watch?v=VIDEO_ID"
# Convert to vertical format
for clip in viral_clip_*.mp4; do
ffmpeg -i "$clip" -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2" "vertical_$clip"
done# Convert to square format
for clip in viral_clip_*.mp4; do
ffmpeg -i "$clip" -vf "scale=1080:1080:force_original_aspect_ratio=decrease,pad=1080:1080:(ow-iw)/2:(oh-ih)/2" "square_$clip"
done# Optimize for YouTube Shorts (vertical, under 60s)
for clip in viral_clip_*.mp4; do
ffmpeg -i "$clip" -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2" -t 59 "shorts_$clip"
done- Test different video types to see what AI identifies as viral
- Review AI suggestions before publishing
- Combine multiple clips for variety
- Add captions for accessibility
- Focus on product demos and testimonials
- Extract customer success stories
- Create multiple versions for A/B testing
- Optimize for each platform
- Extract key concepts and definitions
- Create study guides from lectures
- Generate quiz content from explanations
- Share bite-sized learning
- Don't use copyrighted content without permission
- Check video quality before processing
- Verify audio sync in output clips
- Test on target platform before mass distribution
# Check clip duration
ffprobe -v quiet -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 viral_clip_1.mp4
# Check video resolution
ffprobe -v quiet -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 viral_clip_1.mp4- Use SSD storage for faster I/O
- Ensure stable internet for downloads
- Close unnecessary applications during processing
- Use release build for production
# Monitor during processing
htop # or top on macOSNext Steps: Learn about Configuration options to customize Auto Clipper for your specific needs.