yt-dlp -S 'res:1080' 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'

Category: Media & Conversion

yt-dlp -S 'res:1080' 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'

Prefer formats up to 1080p

Picks the best format whose resolution is at most 1080p, using the -S sort expression. Unlike -f filters, sorting still considers quality within the limit. res:1080 means prefer 1080p or below.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.