The YouTube Downloader is a web-based application that allows users to download YouTube videos and audio in various formats and qualities. It is powered by yt-dlp and FFmpeg and provides an easy-to-use interface for seamless downloading.
- Download YouTube videos in multiple formats (MP4, WebM, MKV)
- Extract audio from videos in various formats (MP3, WAV, M4A, FLAC, OPUS)
- Select between high and medium quality for downloads
- Supports cookies for authenticated downloads
- User-friendly UI built with Gradio
Ensure you have the following installed:
- Python 3.8+
yt-dlpFFmpeggradiotqdmpython-dotenv
- Clone the repository:
git clone https://github.com/your-repo/youtube-downloader.git cd youtube-downloader - Install dependencies:
pip install -r requirements.txt
- Set up the
.envfile (optional for cookies support):echo 'FIREFOX_COOKIES="your_cookie_content"' > .env
Run the application using:
python app.pyThen, open the web interface and enter the YouTube URL, select your preferred format and quality, and download the file.
- YouTube URL: Enter the URL of the video you want to download.
- Format Selection: Choose between "Audio" or "Video".
- Quality Selection: Select "High" or "Medium" quality.
- Audio/Video Format: Choose the desired file format for the download.
- Download Button: Click to start the download process.
- Status Box: Displays progress and status messages.
All downloaded files are saved in the outputs/ directory inside the project folder.
- If the download fails, ensure that
yt-dlpandFFmpegare properly installed. - Check your internet connection.
- If authentication is required, use Firefox cookies by setting up the
.envfile.
This project is licensed under the MIT License.