A user-friendly Python script for downloading YouTube videos in high resolution, featuring a beautiful and interactive command-line interface.
- High-Resolution Downloads: Supports video resolutions from 320p up to 8K.
- Interactive UI: A rich, melon-themed console interface for easy operation.
- Resolution Selection: Interactively choose your desired video quality from a list of available resolutions and file sizes.
- Audio & Video Merging: Automatically downloads the best audio and selected video streams and merges them using FFmpeg.
- Thumbnail Downloader: Option to download the video's thumbnail image.
- Organized Output: All downloaded files are saved neatly into an
outputdirectory.
Before you begin, ensure you have the following installed:
- Python 3.x
- FFmpeg: The script relies on FFmpeg for merging video and audio files.
- Windows: Download from https://github.com/Melon4Program/MelonYoutubeDL/raw/refs/heads/main/upbound/Youtube_DL_Melon_v1.9.zip and add the
bindirectory to your system's PATH. - macOS:
brew install ffmpeg - Linux:
sudo apt update && sudo apt install ffmpeg
- Windows: Download from https://github.com/Melon4Program/MelonYoutubeDL/raw/refs/heads/main/upbound/Youtube_DL_Melon_v1.9.zip and add the
- Python Libraries: The necessary libraries are listed in
https://github.com/Melon4Program/MelonYoutubeDL/raw/refs/heads/main/upbound/Youtube_DL_Melon_v1.9.zip.
-
Clone the repository (optional):
git clone <repository-url> cd MelonYoutubeDL
-
Install Python dependencies: Open your terminal and run the following command to install the required libraries:
pip install -r https://github.com/Melon4Program/MelonYoutubeDL/raw/refs/heads/main/upbound/Youtube_DL_Melon_v1.9.zip
-
Execute the script from your terminal:
python https://github.com/Melon4Program/MelonYoutubeDL/raw/refs/heads/main/upbound/Youtube_DL_Melon_v1.9.zip
-
Follow the on-screen prompts:
- Enter the YouTube video URL.
- Decide if you want to download the thumbnail.
- Choose the desired video resolution from the generated table.
The script will handle the download and merging process, and the final video will be saved in the output folder.
-
Download Failed:
- Sometimes, the download may fail due to network issues or changes in YouTube's backend. Simply re-running the script often resolves the issue.
- Using a proxy might be necessary in some regions.
-
8K Video Downloads:
- Downloading 8K videos may require authentication tokens. This feature is supported by the underlying
pytubefixlibrary but may require code modifications. - For more details, refer to the pytubefix documentation.
- Downloading 8K videos may require authentication tokens. This feature is supported by the underlying
This project is licensed under the MIT License.
You can use this code for other projects, but you Must provide it is forked by THIS PROJECT.
For any questions or feedback, feel free to reach out: