To return to your root directory, type cd\ and press Enter. If the Terminal or Command Prompt is not recognizing YouTube-dl as a command, try navigating to the folder you installed YouTube-dl.

To return to your root directory, type cd\ and press Enter. If the Terminal or Command Prompt is not recognizing YouTube-dl as a command, try navigating to the folder you installed YouTube-dl.

Type youtube-dl <url_to_video> and press Enter. To paste the video URL, press Ctrl + V on Windows, Command + V on Mac, or Shift + Ctrl + V on Linux. This will download only the video, without subtitles and description. It automatically chooses the best video and audio quality.

Type youtube-dl <url_to_video> and press Enter. To paste the video URL, press Ctrl + V on Windows, Command + V on Mac, or Shift + Ctrl + V on Linux. This will download only the video, without subtitles and description. It automatically chooses the best video and audio quality.

Download a playlist in order: Type youtube-dl <url_to_playlist> and press Enter. Download playlist in reverse order: Type youtube-dl –playlist-reverse <url_to_playlist> and press Enter. Download playlist in random order: Type youtube-dl –playlist-random <url_to_playlist> and press Enter. Download a section of a playlist: Type youtube-dl –playlist-start –playlist-end <url_to_playlist> and press Enter.

List available formats: Type youtube-dl –list-format <url_to_video> and press Enter to list all available formats and their format codes. Download a specific format: Type youtube-dl -format <format_code> <url_to_video> and press Enter Merging formats: Sometimes, the best quality is obtained by merging a video format with an audio-only format. Sometimes, there are even only video-only formats and audio-only formats. In that case, you can merge two formats into a single file. To merge two formats, type youtube-dl -f

Note that the order is not interchangeable. Specifying the audio first and then the video will result in an error. Format outputs can be “mkv,” “mp4,” “ogg,” “webm,” and “flv. "

Note that the order is not interchangeable. Specifying the audio first and then the video will result in an error. Format outputs can be “mkv,” “mp4,” “ogg,” “webm,” and “flv. "

List all available subtitles: Type youtube-dl –list-subs <url_to_video> and press Enter. Download subtitles: Type youtube-dl –write-sub <url_to_video> and press Enter. Download automatically generated subtitles: Type youtube-dl —write-auto-sub<url_to_video> and press Enter. Download all subtitles: Type youtube-dl –all-subs <url_to_video> and press Enter. Specify subtitle language:Type youtube-dl –sub-lang <language tag(s)><url_to_video> to specify a subtitle language. You can download more than one language at a time. Separate each language tag with a comma.

Download video description: Type youtube-dl –write-description <url_to_video> and press Enter. Download video metadata: Type youtube-dl –write-info-json <url_to_video>} and press Enter. Download annotations: Type youtube-dl –write-annotations <url_to_video> and press Enter. Download thumbnail image: Type youtube-dl –write-thumbnail <url_to_video> and press Enter.

Depending on how you installed Youtube-dl, you may need to use sudo youtube-dl -U instead on Linux because you don’t have the necessary permissions otherwise. If downloaded YouTube-dl for Windows, or you used a package manager to install YouTube-dl on Mac or Linux, you may need to uninstall and reinstall the latest version of YouTube-dl.

Depending on how you installed Youtube-dl, you may need to use sudo youtube-dl -U instead on Linux because you don’t have the necessary permissions otherwise. If downloaded YouTube-dl for Windows, or you used a package manager to install YouTube-dl on Mac or Linux, you may need to uninstall and reinstall the latest version of YouTube-dl.

The oldest version of Windows that supports this package is Windows XP SP3.

The oldest version of Windows that supports this package is Windows XP SP3.

Go to https://youtube-dl. org/ in a web browser. Click on the middle link (that says “youtube-dl. exe”) at the top of the page to download the YouTube-dl executable file.

Press Windows Key + E to open File Explorer. Navigate to where you want to create a new folder for YouTube-dl. Click New in the menu bar at the top. Create a name for the new folder.

Right-click the YouTube-dl. exe file. Click Copy as path Click the Windows Start menu. Type path. Click Edit the system environment variables. Click Environment variables. Select Path in the “System variables” window. Click Edit at the bottom. Click New in the menu to the left. Paste the path to the “YouTube-dl” file. DO NOT include the “. exe” at the end of the file. you Click Ok.

Click the magnifying glass icon in the upper-right corner. Type Terminal in search bar. Click Terminal. app.

Type ruby -e “$(curl -fsSL https://raw. githubusercontent. com/Homebrew/install/master/install)” in the Terminal and press Enter. Homebrew may take a while to install. You may need to enter your user password several times during the process. [4] X Research source If you are having trouble installing or using Homebrew, you can try installing MacPorts instead. You can download and install MacPorts from https://www. macports. org/install. php. Make sure you download the right version for your version of macOS.

If you would rather install YouTube-dl using MacPorts, type sudo port install youtube-dl in the Terminal and press Enter.

If you would rather install YouTube-dl using MacPorts, type sudo port install youtube-dl in the Terminal and press Enter.

Ubuntu/Debian: sudo apt install youtube-dl. Snap: sudo snap install youtube-dl.

Wget: wget https://yt-dl. org/latest/youtube-dl Curl:curl https://yt-dl. org/latest/youtube-dl

Wget: wget https://yt-dl. org/latest/youtube-dl Curl:curl https://yt-dl. org/latest/youtube-dl

If you want to install it only for yourself, a good location to move it to is ~/. local/bin/. . If you want to install it for all users, a good location is /usr/local/bin/. These directories may or may not already exist, if they don’t,you can create them using the command; mkdir directory_name.

If you want to install it only for yourself, a good location to move it to is ~/. local/bin/. . If you want to install it for all users, a good location is /usr/local/bin/. These directories may or may not already exist, if they don’t,you can create them using the command; mkdir directory_name.

Type export PATH=$PATH: and press Enter.

Type export PATH=$PATH: and press Enter.

Type sudo apt update and press Enter to update your software repository. Type sudo apt install vlc or sudo apt install mpv, depending on which program you want to install. Then press Enter.