yt-dlp Command Generator for YouTube
Build the exact yt-dlp command for a YouTube video, playlist or channel. Starts on 1080p MP4 with chapters, metadata and sponsors removed.
What makes YouTube different
Above 720p, YouTube publishes video and audio as separate streams. Any command that asks for 1080p or 4K therefore has to request both and merge them, which is why ffmpeg is a hard requirement above 720p and not below it. The preset here already does that.
The other YouTube-specific thing worth knowing is the bot check. When it appears, browser impersonation clears it more often than anything else, and supplying your own cookies handles the rest — age-restricted, members-only and private videos all need a session.
Frequently asked questions
› How do I download YouTube in 1080p or 4K?
Above 720p, YouTube serves video and audio as separate streams, so the command has to ask for both and merge them — which needs ffmpeg. Pick the resolution above and the generator writes the selector and the merge container for you.
› YouTube asks me to confirm I am not a bot.
Add --impersonate chrome, or --cookies-from-browser chrome to reuse your logged-in session. Close the browser first — Chrome locks its cookie database while running.
› How do I get just the audio as MP3?
Switch the output to Audio only and choose MP3. Add cover art and metadata and the file arrives ready for a music library. ffmpeg is required.
› How do I download a whole playlist?
Set playlist handling to the whole playlist. For anything long, add an archive file so a re-run resumes instead of starting over, and keep-going-on-errors so one blocked video does not stop the rest.
› Can I download YouTube subtitles?
Yes — embedded in the video or as a separate .srt. Turn on auto-generated subtitles too, otherwise videos without human captions produce nothing at all.