Files
oam/knowledge base/yt-dlp.md
2022-07-14 10:58:15 +02:00

928 B

Yt-dlp

Improved fork of youtube-dl.

TL;DR

To be able to merge multiple formats into one, you will also need to install ffmpeg.

# Install it.
python3 -m pip install -U --user yt-dlp

# List all available formats.
yt-dlp -F AK44wAvv2E4

# See all available information from a video.
yt-dlp -j BaW_jenozKc

# Check what name will be used for the destination.
# Output templates at https://github.com/yt-dlp/yt-dlp#output-template, or use
# '-j' to see the json file with all of them.
yt-dlp --get-filename \
  -o "%(season_number)d.%(episode_number)02d %(episode)s.%(ext)s" \
  https://www.crunchyroll.com/some/good/serie

# Download all videos in a YouTube channel.
yt-dlp -f "bestvideo+bestaudio/best" -ciw \
  -o "%(title)s.%(ext)s" -v https://www.youtube.com/c/pbsspacetime/videos

Further readings