YT2MP3 is a WinUI 3 desktop application built using C#. It is built around yt-dlp
to download audio from a YouTube link and ffmpeg
to handle audio type conversions. The app is designed with the Windows 11 Mica theme and is intended to simplify the yt-dlp
experience.
- YouTube Audio Download: Input a YouTube URL and download the audio directly to your local machine.
- Playlist Support: Option to download entire playlists with a single click.
- Destination Selection: Choose where you want to save the downloaded audio files.
- Modern UI: Built using WinUI 3, leveraging the Mica design for a sleek Windows 11 look and feel.
- Visual Studio 2022 with the following workloads installed:
.NET Desktop Development
Desktop Development with C++
(for WinUI)
- yt-dlp: The app uses
yt-dlp
to download YouTube content. The app includes a PowerShell script to install or updateyt-dlp
automatically. - ffmpeg: The app uses
ffmpeg
for high quality audio conversion. The app includes a PowerShell script to installffmpeg
automatically.
-
Clone the Repository:
git clone https://github.com/0zean/YT2MP3.git cd YT2MP3
-
Open the Solution:
- Open
YT2MP3.sln
in Visual Studio 2022.
- Open
-
Build the Project:
- Ensure all dependencies are restored, and build the solution.
-
Install yt-dlp and ffmpeg:
- Run the
InstallUtils.ps1
PowerShell script to install or updateyt-dlp
andffmepg
.
- Run the
-
Run the App:
- Start the application by pressing
F5
in Visual Studio.
- Start the application by pressing
-
Optionally Install the App:
- By right-clicking the
.csproj
file in Visual Studio, you can select "Package and Publish" -> "Create App Packages" to generate an MSIX installer to install the app on your PC.
- By right-clicking the
- Input YouTube URL: Enter the URL of the YouTube video or playlist in the provided input field.
- Select Destination: Choose the folder where you want to save the downloaded audio files.
- Playlist Option: Check the playlist checkbox if the provided URL is a playlist.
- Download: Click the download button to start the process.
- C#
- WinUI 3
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add your feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is licensed under the GLP3 License - see the LICENSE file for details.
- yt-dlp for making the downloading process easy.
- ffmpeg for audio conversion.
- Microsoft for the WinUI 3 platform.
- Installer icons created by riajulislam - Flaticon
If you find this project helpful, please give it a ⭐ on GitHub!