Download individual YouTube video/audio or entire playlists via the Ubuntu terminal


1. First of all Install yt-dlp in ubuntu terminal bash

sudo apt update
sudo apt install yt-dlp

If it's not found or outdated, use Python:

pip install -U yt-dlp

2. Install FFmpeg (for MP3 conversion)

sudo apt install ffmpeg

3. Download audio of a single video link:
yt-dlp -x --audio-format mp3 "Add video link"

yt-dlp -x --audio-format mp3 "Add video link"

for example
yt-dlp -x --audio-format mp3 "https://youtu.be/GVbg-sblIg4?si=tccCB6nw-PiQwCbB"


4. Download audio of playlist link:
yt-dlp -x --audio-format mp3 "Add playlist link"

yt-dlp -x --audio-format mp3 "Add playlist link"


5. Download videos of playlist link:
yt-dlp -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" "Add playlist link"

yt-dlp -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" "Add playlist link"


6. Download single video link:
yt-dlp "link"

yt-dlp "add video link"


Comments

Post a Comment

Popular posts from this blog

Introduction