Overview
Post-processing in yt-dlp allows you to automatically manipulate downloaded files through various operations like format conversion, metadata embedding, subtitle processing, and custom commands.Post-Processing Pipeline
Post-processors run in this order:- Pre-process: After video extraction, before format selection
- After filter: After video passes filters
- Video: After format selection, before download
- Before download: Before each video download
- Post-process: After each video download (default)
- After move: After moving to final location
- After video: After processing all formats of a video
- Playlist: At end of playlist
Audio Extraction
Convert videos to audio-only files:Format Conversion
Remuxing
Change container without re-encoding:Re-encoding
Metadata Operations
Embedding metadata
1
Basic metadata
2
Additional metadata
3
Complete embedding
Modifying metadata
Subtitle Processing
Download and convert
Thumbnail Processing
Chapter Operations
Splitting by chapters
Removing chapters
Modifying chapters
SponsorBlock Integration
Remove or mark sponsor segments in YouTube videos:File Fixup
Automatically fix common file issues:Custom Post-Processors
Execute commands
Post-Processor Arguments
Pass custom arguments to ffmpeg and other post-processors:Concatenating Playlists
Merge playlist videos into single file:Plugin Post-Processors
Use custom post-processor plugins:Advanced Workflows
Music downloads
Archival with metadata
Format for devices
Stream processing
Overwrite Behavior
Keeping Intermediate Files
Troubleshooting
Post-processing fails
Metadata not embedding
Thumbnail not embedding
Next Steps
Audio Extraction
Detailed audio extraction guide
Format Conversion
Converting between formats
Metadata Modification
Parse and modify metadata
SponsorBlock
Remove sponsor segments