Skip to content

Instantly share code, notes, and snippets.

@VenkataRaju
Last active November 30, 2017 19:40
Show Gist options
  • Save VenkataRaju/49991bfde4d68f4b11cf2142d7cf3fbe to your computer and use it in GitHub Desktop.
Save VenkataRaju/49991bfde4d68f4b11cf2142d7cf3fbe to your computer and use it in GitHub Desktop.
YoutubeDL Notes
1. To know the formats available
youtube-dl.exe -F "https://www.youtube.com/watch?v=url"
2. Then download specific format
youtube-dl.exe -f 22 "https://www.youtube.com/watch?v=url"
3. youtube-dl.exe -f 137+140 --no-playlist "https://www.youtube.com/watch?v=url"
4. Best video of type mp4 and audio of type m4a
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]'
5. ./youtube-dl -x --audio-format mp3 --audio-quality 128K --embed-thumbnail "https://www.youtube.com/watch?v=url"
-x: extracts audio
6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment