From 3d8a28096612caf436ff077940ef621d66e451ad Mon Sep 17 00:00:00 2001 From: anonymous <> Date: Fri, 2 Feb 2024 14:40:37 -0500 Subject: [PATCH] create/update 'blog - yt-dlp.md' file --- blog - yt-dlp.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 blog - yt-dlp.md diff --git a/blog - yt-dlp.md b/blog - yt-dlp.md new file mode 100644 index 0000000..90a49f7 --- /dev/null +++ b/blog - yt-dlp.md @@ -0,0 +1,43 @@ +# youtube-dl/yt-dlp + +> youtube-dl is a free and open source download manager for video and audio from YouTube and over 1,000 other video hosting websites. + +# yt-dlp + +yt-dlp is a [youtube-dl](https://github.com/ytdl-org/youtube-dl) fork based on the now inactive [youtube-dlc](https://github.com/blackjack4494/yt-dlc). The main focus of this project is adding new features and patches while also keeping up to date with the original project + +## Install + +```shell +sudo apt install ffmpeg lame #dependencies that are nice to have +sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && sudo chmod a+rx /usr/local/bin/yt-dlp +``` + +## Extract audio from YouTube video + +```shell +youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" +``` + +## Download full album from YouTube Music + +```shell +yt-dlp --extract-audio --audio-format mp3 -o "%(playlist_index)s - %(title)s.%(ext)s" +``` + +This one grabs the metadata (which includes YouTube Music URL in the comments) and best audio + +```shell +yt-dlp -f "bestaudio" --extract-audio --embed-metadata --audio-format mp3 -o "%(playlist_index)s - %(title)s.%(ext)s" +``` + +## Download all parts of a multistream + +```shell +yt-dlp -S "res:480" +``` + +# Reference + +* [youtube-dl (original)](https://ytdl-org.github.io/youtube-dl/index.html) +* [yt-dlp](https://github.com/yt-dlp/yt-dlp/#installation) \ No newline at end of file