yt-dlp -f 'bestvideo[height<=1080]+bestaudio' --merge-output-format mp4 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'

Category: Media & Conversion

yt-dlp -f 'bestvideo[height<=1080]+bestaudio' --merge-output-format mp4 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'

Download up to 1080p as a single MP4

Downloads the best stream up to 1080p plus its audio and merges them into a single MP4. The [height<=1080] filter caps the resolution, and --merge-output-format mp4 forces the container. Use this when you want one clean file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.