Quick Start¶
Get started with Loups in minutes!
5-Minute Quickstart¶
Basic Usage¶
Lights Out HB Games¶
For Lights Out HB fastpitch softball games, Loups includes a bundled template:
Expected Output
Any Other Video¶
For other videos, provide your own template:
Save Results to File¶
Save chapters in YouTube-ready format:
The chapters.txt file will contain:
YouTube Integration
Copy the contents of chapters.txt directly into your YouTube video description!
YouTube will automatically create clickable chapter markers.
Common Examples¶
Process with Custom Template¶
Quiet Mode (No Progress Display)¶
Perfect for automation and batch processing:
Enable Logging¶
Debug detection issues with logging:
# Default log location (loups.log)
loups --log video.mp4
# Custom log location
loups --log /path/to/debug.log video.mp4
# Enable debug level logging
loups --log --debug video.mp4
Extract Thumbnails¶
Dedicated Thumbnail Command¶
# Extract thumbnail with default template
loups video.mp4 thumbnail
# Use custom thumbnail template
loups video.mp4 thumbnail --thumbnail-template title_screen.png
# Specify output location
loups video.mp4 thumbnail --thumbnail-output ./thumb.jpg
Extract During Chapter Scan¶
How Thumbnail Extraction Works
- Scans video frames from beginning using SSIM
- Stops at first frame exceeding similarity threshold
- Saves matched frame as JPEG
- Only scans first N seconds (default: 120s)
Important Notes¶
Option Order Matters
Options must come BEFORE the video path:
Thumbnail Command Different
The thumbnail subcommand has different syntax:
The VIDEO comes first, then thumbnail, then options.
Example Workflows¶
YouTube Content Creation¶
# Extract thumbnail
loups game.mp4 thumbnail --thumbnail-output game_thumb.jpg
# Generate chapters
loups -o game_chapters.txt game.mp4
# Upload video to YouTube
# - Use game_thumb.jpg as custom thumbnail
# - Paste game_chapters.txt content into description
Batch Processing Multiple Videos¶
# Process all MP4 files
for video in *.mp4; do
echo "Processing $video..."
loups -q -o "${video%.mp4}_chapters.txt" "$video"
done
Custom Template Workflow¶
# Step 1: Create template from video frame
# (Screenshot the text overlay you want to detect)
# Step 2: Test on short clip
loups -t my_template.png --log test_clip.mp4
# Step 3: Check logs to verify detection
cat loups.log
# Step 4: Process full video
loups -t my_template.png -o chapters.txt full_video.mp4
Testing Tips¶
Test on Short Clips First
Before processing long videos:
- Create a short test clip (1-2 minutes)
- Verify template detection works
- Check OCR accuracy in logs
- Then process full video
Next Steps¶
- CLI Reference - All command options
- Custom Templates - Create templates for your videos
- API Reference - Use Loups programmatically
Common Questions¶
Can I use Loups with any video?
Yes! As long as your video has:
- Consistent text overlays or identifying frames
- Readable text that OCR can extract
- A template image you can create
See Custom Templates for details.
What video formats are supported?
Loups supports any format that OpenCV can read:
- MP4 (recommended)
- AVI
- MOV
- MKV
- And more
If you encounter codec issues, convert to MP4 with H.264 encoding.
How accurate is the OCR?
Accuracy depends on:
- Video quality - Higher resolution = better OCR
- Text clarity - Clear, high-contrast text works best
- Steady frames - Motion blur reduces accuracy
Loups uses confidence-based filtering to ensure quality results.