Overview
yt-dlp integrates with the SponsorBlock API to automatically skip or mark various segments in YouTube videos, including sponsors, intros, outros, self-promotion, and more.Segment Categories
SponsorBlock recognizes these segment types:Marking Segments
Create chapter markers for sponsor segments without removing them:Custom Chapter Titles
Customize how SponsorBlock chapters appear:start_time: Segment start timeend_time: Segment end timecategory: Category ID (e.g., “sponsor”)categories: List of category IDsname: Category namecategory_names: List of category names
Removing Segments
Permanently remove segments from the downloaded video:1
Remove sponsors only
2
Remove multiple categories
3
Use default removal
Exclude categories
Combining Mark and Remove
You can both mark and remove different categories:Common Use Cases
Clean viewing experience
Music videos
Podcast/long-form content
Educational content
Audio Extraction with SponsorBlock
Remove segments when extracting audio:SponsorBlock API Configuration
Custom API server
https://sponsor.ajay.app
Disable SponsorBlock
Working with Chapters
Split by chapters after removing sponsors
Force keyframes for clean cuts
Playlist Processing
Apply SponsorBlock to entire playlists:Performance Considerations
Marking (Fast)
Removing (Slow)
Advanced Examples
Complete automated workflow
Audio podcast with clean chapters
Minimal file size
Verify Segments
Check what segments are available before downloading:Troubleshooting
No segments found
Segments not removed correctly
API connection issues
SponsorBlock on Other Platforms
Contributing to SponsorBlock
Help improve the SponsorBlock database:- Install the browser extension
- Submit segments while watching videos
- Vote on existing segments
Next Steps
Post-Processing
Other post-processing options
Format Conversion
Converting video formats
Playlists
Process entire playlists
Options Reference
SponsorBlock options reference