Skip to content

Instantly share code, notes, and snippets.

@scsskid
Last active June 30, 2021 10:56
Show Gist options
  • Save scsskid/ad3b6b816151e7d7ef10d75c2316c56c to your computer and use it in GitHub Desktop.
Save scsskid/ad3b6b816151e7d7ef10d75c2316c56c to your computer and use it in GitHub Desktop.
[Youtube DL] #bash
# best audio
youtube-dl -f bestaudio[ext=m4a] --embed-thumbnail --add-metadata
# best video and audio
youtube-dl -f best <video link>
# If you encounter any error during the muxing process or an issue with the video quality selection, you can use one of the following commands:
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 <video link>
# optional: --yes-playlist
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 --yes-playlist <playlist link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment