create/update 'blog - yt-dlp.md' file

This commit is contained in:
anonymous
2024-02-02 14:40:37 -05:00
parent 109379a36e
commit 3d8a280966

43
blog - yt-dlp.md Normal file
View File

@@ -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" <URL>
```
## Download full album from YouTube Music
```shell
yt-dlp --extract-audio --audio-format mp3 -o "%(playlist_index)s - %(title)s.%(ext)s" <URL of Playlist>
```
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
yt-dlp -S "res:480" <url>
```
# Reference
* [youtube-dl (original)](https://ytdl-org.github.io/youtube-dl/index.html)
* [yt-dlp](https://github.com/yt-dlp/yt-dlp/#installation)