Download YouTube videos and extract media using yt-dlp. Use when processing YouTube URLs, extracting audio, downloading videos, or working with media URLs from video platforms.
This skill provides guidance for working with yt-dlp for media extraction in the project.
This project uses yt-dlp in app/services/yt_dlp_service.py for processing YouTube URLs. The worker process handles media downloads asynchronously.
yt-dlp --extract-audio --audio-format mp3 --output "%(title)s.%(ext)s" <url>
yt-dlp --format best --output "%(title)s.%(ext)s" <url>
yt-dlp --format "bestvideo[height<=1080]+bestaudio/best[height<=1080]" <url>
The worker processes downloads in worker/processor.py:
storage/downloads/storage/temp/--sleep-interval 5 between downloads--no-playlist unless playlist extraction is intended--socket-timeout 30--no-warnings in production to reduce log noise