create/update 'blog - fun with youtube-dl.md' file

This commit is contained in:
anonymous
2024-02-02 14:43:21 -05:00
parent 3d8a280966
commit 7435ab9b74

View File

@@ -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. 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 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 ```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 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" <URL>
yt-dlp --extract-audio --audio-format mp3 -o "%(playlist_index)s - %(title)s.%(ext)s" <URL of Playlist> yt-dlp --extract-audio --audio-format mp3 -o "%(playlist_index)s - %(title)s.%(ext)s" <URL of Playlist>
``` ```
### 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" <URL of playlist>
```
### Download all parts of a multistream
```shell ```shell
yt-dlp -S "res:480" <url> yt-dlp -S "res:480" <url>