https://www.reddit.com/r/youtubedl/comments/qzqzaz/can_someone_please_post_a_simple_guide_on_making/
►Download YouTube Video (audio + video)
If you want to download the video as it is (with video and audio), you can just run yt-dlp and the YouTube URL of the video, like this:
yt-dlp "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
►Download multiple YouTube Videos (full audio + video)
You can use the above command multiple times, but let’s be honest. Who has time for that?
The better way to do it is to go to YouTube and add the videos you want to download to a playlist. These instructions will help you add a video to a playlist in your YouTube account.
Just be sure to create a new playlist and add the videos to that new playlist, since yt-dlp will download all the videos in the playlist you point it to.
Once you have the playlist populated with the videos you want, go to that playlist and grab the URL. It should look like this:
https://www.youtube.com/playlist?list=PLlaN88a7y2_rosKX2WQt2VjFbjyDQXOkR
Once you have that URL, just use it with yt-dlp like so:
yt-dlp -i "https://www.youtube.com/playlist?list=PLlaN88a7y2_rosKX2WQt2VjFbjyDQXOkR"
►Download YouTube video as MP3
At the command line, type this command, replacing the YouTube URL below with the URL of the song you want to download:
yt-dlp -x --audio-format mp3 "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
►Download YouTube video as MP4
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" -o "%(title)s.%(ext)s" 'YOUTUBE_URL'
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=UkVKyoFzdz0