Enter the password from step 2.g above and press Enter
Whenever you want to download one video
Copy the following command, replace USERNAME with your Windows username, then copy it again, right-click in Ubuntu to paste it, and press Enter:
cd /mnt/c/Users/USERNAME/Downloads
If you log in to Windows with a Microsoft account, your username is typically the first part (before the @) of your email address.
Type the following command in Ubuntu, replacing “URL” with the address of the webpage that contains the video, and press Enter:
yt-dlp "URL"
The video should now be downloaded to your Downloads folder. Keep the Ubuntu window open until the $ sign reappears (until it is ready for you to type another command).
Whenever you want to download several videos
Open Notepad
Paste all the URLs from YouTube into Notepad, one per line
Save the text file in your Downloads folder with the filename “videos.txt”
Copy the following command, replace USERNAME with your Windows username, then copy it again, right-click in Ubuntu to paste it, and press Enter:
cd /mnt/c/Users/USERNAME/Downloads
If you log in to Windows with a Microsoft account, your username is typically the first part (before the @) of your email address.
Copy the following command, right-click in Ubuntu to paste it, and press Enter:
yt-dlp -i -a videos.txt
The videos should now be downloaded to your Downloads folder. Keep the Ubuntu window open until the $ sign reappears (until it is ready for you to type another command).
FAQ
Requested formats are incompatible for merge
If however you are really keen to get the best quality video and the best quality video audio but only in an mp4 container (thus bypassing the mkv warning and subsequent Matrosk container output from youtube-dl) you can use something like the following: