From 7435ab9b747ae3b4cd55462db1beec56add8e0ac Mon Sep 17 00:00:00 2001 From: anonymous <> Date: Fri, 2 Feb 2024 14:43:21 -0500 Subject: [PATCH] create/update 'blog - fun with youtube-dl.md' file --- blog - fun with youtube-dl.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/blog - fun with youtube-dl.md b/blog - fun with youtube-dl.md index b69b85d..04f246f 100644 --- a/blog - fun with youtube-dl.md +++ b/blog - fun with youtube-dl.md @@ -1,4 +1,4 @@ -# youtube-dl Tricks +# 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. @@ -6,8 +6,10 @@ youtube-dl is a free and open source download manager for video and audio from Y 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 +### 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 ``` @@ -21,8 +23,13 @@ youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" yt-dlp --extract-audio --audio-format mp3 -o "%(playlist_index)s - %(title)s.%(ext)s" ``` -### Download all parts of a multistream +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"