A simple GUI application for downloading audio from YouTube videos and converting it to various formats. This application uses yt-dlp
for downloading and ffmpeg
for audio conversion.
- Download audio from YouTube videos.
- Convert audio to MP3, WAV or FLAC formats.
- Progress bar showing download and conversion status.
- Dark and light mode toggle.
- GUI-based file and folder selection.
- Multilingual support.
- Python 3.6+
yt-dlp
- Bundled
ffmpeg
andffprobe
for audio processing
-
Clone the repository:
git clone https://github.com/itsneufox/yt_audio_download.git cd yt_audio_download
-
Install Python dependencies:
Create a
requirements.txt
file in your project directory with the following content:yt-dlp
Install the dependencies using pip:
pip install -r requirements.txt
-
Download ffmpeg and ffprobe:
- Download the executables from FFmpeg Official Site and extract them.
-
Include ffmpeg and ffprobe in your project:
- Create a directory in your project folder named
ffmpeg/
and placeffmpeg.exe
andffprobe.exe
inside it.
Example folder structure:
yt_audio_download/ ├── ffmpeg/ │ ├── ffmpeg.exe │ └── ffprobe.exe ├── ico/ │ └── icon.ico ├── app.py ├── requirements.txt └── README.md
- Create a directory in your project folder named
-
Build the application using PyInstaller:
To build the application with or without a terminal window, use the following commands:
-
With Terminal Window:
pyinstaller --clean --onefile --add-data "ico/icon.ico;ico" --add-data "ico/icon.png;ico" --add-data "ffmpeg/ffmpeg.exe;ffmpeg" --add-data "ffmpeg/ffprobe.exe;ffmpeg" --icon="ico/icon.ico" app.py
-
Without Terminal Window:
pyinstaller --clean --onefile --windowed --add-data "ico/icon.ico;ico" --add-data "ico/icon.png;ico" --add-data "ffmpeg/ffmpeg.exe;ffmpeg" --add-data "ffmpeg/ffprobe.exe;ffmpeg" --icon="ico/icon.ico" app.py
This command ensures that
ffmpeg
andffprobe
are included in the executable and sets the application icon. The--windowed
option is used to build a GUI-only application without a terminal window. -
-
Run the application:
-
If you didn't generate an executable run:
python app.py
-
If you generated an executable just run the generated executable.
-
-
Enter the YouTube video link and select the destination folder where you want to save the audio file.
-
Click in any file format to start the download and conversion process.
-
Monitor the progress using the progress bar and status label.
-
Toggle between light and dark modes using the mode button.
-
Switch languages using the language buttons.
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE.txt file for details.
This project is based on the work of guighfunky from the repository baixador_audio_yt.
Be warned that the original code was generated on ChatGPT