A command-line tool to download high-quality YouTube videos from single videos, playlists, or channels. This tool utilizes yt-dlp for video downloading and ffmpeg for video merging. It also features a multi-threaded download process with a sleek terminal interface, providing a progress bar and clean user experience.
- Download videos from single video URLs, playlists, or YouTube channels.
- Retrieves the highest quality video and audio streams.
- Merges video and audio to MP4 format using
ffmpeg. - Supports multi-threaded downloading for fast and efficient video downloads.
- Clean and user-friendly interface with progress bars.
- Option to customize the save location for downloaded videos.
- Python 3.6+
yt-dlpffmpegtqdmcoloramapyfiglet
-
Clone the repository:
git clone https://github.com/your-username/youtube-video-downloader.git cd youtube-video-downloader -
Make sure you have
ffmpeginstalled and accessible in your system's PATH. -
Download and install
yt-dlp,colorama,pyfigletandtqdm:pip install yt-dlp colorama pyfiglet tqdm
-
Run the script:
python youtube_video_downloader.py
-
You will be prompted to input:
- The YouTube video, playlist, or channel URL.
- The directory name where the videos will be saved (optional).
-
The program will fetch the video URLs and start downloading them in the highest available quality to the specified directory.
-
Once the download is complete, you'll see a message indicating success.
Video/Playlist/Channel URL: https://www.youtube.com/playlist?list=PLxKrR3VjggMv5oYFeOBtQzPimH8mMlhzI
Directory Name: My_Videos- If downloading a playlist or channel, the program will download videos for all entries.
- Ensure that
ffmpeg.exeis installed and its path is correctly set in the script (FFMPEG_PATH).
This project is licensed under the MIT License - see the LICENSE file for details.