Skip to main content

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

Popular posts from this blog

Introduction

Name: Muhammad Tabassat DOB: 10 june 2004 Muhammad Tabassat

How to Share Your Local WordPress Website with Ngrok on Ubuntu

 How to Share Your Local WordPress Website with Ngrok on Ubuntu Are you running a WordPress website locally using Local WP (formerly Local by Flywheel) and want to access it from another device or share it with a client or friend over the internet? Using ngrok , a powerful tunneling tool, you can expose your local site securely to the world in just a few commands. 🚀 What is Ngrok? ngrok is a tool that creates a secure tunnel from the public internet to your local machine. This is especially useful when: You want to test your local WordPress site on a mobile device You need someone to preview your project remotely You're demoing your work in real time 🧱 Prerequisites A working local WordPress site running in Local WP Ubuntu (tested on Ubuntu 22.04 and similar) Internet connection Terminal access 🔧 Step 1: Install Ngrok on Ubuntu Open your terminal and paste the following command: curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sud...