yt-dlp --version
sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED
sudo pip install --user yt-dlp
sudo chmod +x /usr/local/bin/yt-dlp
python3 -m venv .venv
source .venv/bin/activate
nano ~/.bashrc
export PATH="$HOME/.local/bin:$PATH"
source ~/.bashrc
yt-dlp --version
sudo apt install ffmpeg
ffmpeg -version
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install ffmpeg
1.Download FFmpeg:
Go to the FFmpeg official website and download the Windows build.
2.Extract the downloaded ZIP file:
Extract the files to a folder (e.g., C:\ffmpeg).
3.Add FFmpeg to your PATH:
Open System Properties > Advanced > Environment Variables.
Under "System variables," find the Path variable, and click "Edit."
Add the path to the bin folder inside the FFmpeg folder (e.g., C:\ffmpeg\bin).
git clone https://github.com/nahidfarazi/youtube-downloader/
cd youtube-downloader
./yd download "link" -r 1080
./yd audio "link"