Windows 11/10 · Requires FFmpeg · AV1 / VP9 / H.264
yt-dlp downloads the best available video and audio streams separately and merges them with FFmpeg. Here are the right commands for every scenario.
Commands
All commands require FFmpeg in the same folder as yt-dlp.exe.
yt-dlp -f "bestvideo+bestaudio/best" "URL"
yt-dlp -f "bestvideo[height>=2160]+bestaudio/best" "URL"
yt-dlp -f "bestvideo[height<=1080]+bestaudio/best" "URL"
yt-dlp -f "bestvideo[ext=mp4][vcodec*=h264]+bestaudio[ext=m4a]/best[ext=mp4]" "URL"
yt-dlp -f "bestvideo[vcodec^=av01]/bestvideo[vcodec^=vp9]/bestvideo+bestaudio/best" "URL"
yt-dlp -f "bestvideo[height>=4320]+bestaudio/best" "URL"
Codec guide
YouTube offers multiple codecs for 4K. Here's what each means for you.
FAQ
ffmpeg.exe next to yt-dlp.exe and re-run the command. See the FFmpeg setup guide.yt-dlp -F "URL" to list all available formats for a specific video.yt-dlp -F "URL" (capital F). This lists every available format with ID, resolution, codec, bitrate and file size. You can then use a specific format ID with -f FORMAT_ID+AUDIO_ID.-f "bestvideo[ext=mp4][vcodec*=h264]+bestaudio[ext=m4a]/best[ext=mp4]". Note that H.264 at 4K may not be available for all videos — YouTube's 4K streams are often AV1 or VP9 only.