A web application to convert YouTube videos to MP3 audio files and download/preview them.
YouTube connection may be blocked in some environments. Run this project locally to use the web application..
- Convert YouTube videos into MP3 audio files.
- In-browser audio preview without downloading the file.
- One Click easy download.
- Simple, responsive web interface.
- Backend: Python (
app.py,download.py) - Frontend: HTML templates in
templates/and static assets instatic/
-
Install the FFmpeg binary (required):
-
Ubuntu/Debian
sudo apt update &∓& sudo apt install -y ffmpeg -
Fedora
sudo dnf install -y ffmpeg
-
Arch Linux
sudo pacman -S ffmpeg
-
macOS (Homebrew)
brew install ffmpeg
-
Windows
Install FFmpeg from the official site and make sure
ffmpegis available in your systemPATH.
-
-
Install the required Python dependencies:
pip install -r requirements.txt
-
Start the application server:
python app.py
-
Open your web browser and navigate to the local server address provided in the terminal.
The app is served by Flask, so the main page and assets should be opened through the local server.
- Paste a valid YouTube URL into the input field.
- Click the "Convert" button.
- Wait for the server to process the video.
- Preview the resulting audio in the browser or click "Download MP3" to save the file.