Or optionally use the following flags to automatically download the best audio and video tracks that are available as a single file: youtube-dl -f best '' The best quality is 22 so use -f 22 instead of -F to download the MP4 video with 1280x720 resolution like this: youtube-dl -f 22 '' P9pzm5b6FFY: Extracting video information P9pzm5b6FFY: Downloading video info webpage
To select the video quality, first use the -F option to list the available formats, here’s an example, youtube-dl -F '' To download a video, you type the URL after the command like so: youtube-dl ''